TTKMusicPlayer
4.1.3.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
TTKModule
TTKCore
musicNetworkKits
image
background
musicabstractdownloadimagerequest.cpp
Go to the documentation of this file.
1
#include "
musicabstractdownloadimagerequest.h
"
2
#include "
musicbackgroundmanager.h
"
3
#include "
musictopareawidget.h
"
4
5
MusicAbstractDownloadImageRequest::MusicAbstractDownloadImageRequest
(
const
QString &
name
,
const
QString &path, QObject *parent)
6
:
MusicAbstractNetwork
(parent),
7
m_remainCount(0),
8
m_index(0),
9
m_counter(0),
10
m_name(name),
11
m_path(path)
12
{
13
14
}
15
16
void
MusicAbstractDownloadImageRequest::deleteAll
()
17
{
18
MusicAbstractNetwork::deleteAll
();
19
deleteLater();
20
}
21
22
void
MusicAbstractDownloadImageRequest::downLoadDataFinished
()
23
{
24
MusicAbstractNetwork::downLoadFinished
();
25
if
(++
m_index
>=
m_counter
)
26
{
27
G_BACKGROUND_PTR
->setArtistName(
m_name
);
28
MusicTopAreaWidget::instance
()->
backgroundThemeDownloadFinished
();
29
deleteAll
();
30
}
31
}
MusicAbstractDownloadImageRequest::downLoadDataFinished
void downLoadDataFinished()
Definition:
musicabstractdownloadimagerequest.cpp:22
TTKAbstractNetwork::deleteAll
virtual void deleteAll()
Definition:
ttkabstractnetwork.cpp:25
musicabstractdownloadimagerequest.h
G_BACKGROUND_PTR
#define G_BACKGROUND_PTR
Definition:
musicbackgroundmanager.h:141
TTKAbstractNetwork::downLoadFinished
virtual void downLoadFinished()
Definition:
ttkabstractnetwork.cpp:35
MusicAbstractDownloadImageRequest::m_counter
int m_counter
Definition:
musicabstractdownloadimagerequest.h:65
MusicAbstractDownloadImageRequest::m_name
QString m_name
Definition:
musicabstractdownloadimagerequest.h:66
MusicAbstractDownloadImageRequest::deleteAll
virtual void deleteAll() overridefinal
Definition:
musicabstractdownloadimagerequest.cpp:16
name
const char * name
Definition:
http_parser.c:458
musictopareawidget.h
musicbackgroundmanager.h
MusicAbstractNetwork
The class of the abstract network.
Definition:
musicabstractnetwork.h:35
MusicAbstractDownloadImageRequest::MusicAbstractDownloadImageRequest
MusicAbstractDownloadImageRequest(const QString &name, const QString &path, QObject *parent=nullptr)
Definition:
musicabstractdownloadimagerequest.cpp:5
MusicTopAreaWidget::backgroundThemeDownloadFinished
void backgroundThemeDownloadFinished()
Definition:
musictopareawidget.cpp:256
MusicAbstractDownloadImageRequest::m_index
int m_index
Definition:
musicabstractdownloadimagerequest.h:65
MusicTopAreaWidget::instance
static MusicTopAreaWidget * instance()
Definition:
musictopareawidget.cpp:43
Generated on Tue Jan 21 2025 21:07:12 for TTKMusicPlayer by
1.8.8