1 #ifndef MUSICABSTRACTQUERYREQUEST_H
2 #define MUSICABSTRACTQUERYREQUEST_H
46 : m_songName(info.m_songName),
47 m_artistName(info.m_artistName),
48 m_albumName(info.m_albumName),
49 m_duration(info.m_duration)
141 virtual void startToSearch(
const QString &value) = 0;
145 virtual void startToSearchByID(
const QString &value);
178 inline void setItems(
const TTK::MusicSongInformationList &items) { m_items = items; }
182 inline const TTK::MusicSongInformationList&
items()
const {
return m_items; }
186 inline bool isEmpty()
const {
return m_items.isEmpty(); }
208 QString serverToString()
const;
216 bool fetchUrlPathSize(TTK::MusicSongPropertyList *props,
const QString &duration)
const;
226 #endif // MUSICABSTRACTQUERYREQUEST_H
MusicResultInfoItem(const TTK::MusicSongInformation &info)
#define TTK_MODULE_EXPORT
QString queryValue() const
The class of the search result data item.
The class of the music song property.
static constexpr const char * QUERY_KG_INTERFACE
QueryMode queryMode() const
The class of the abstract download page query request.
virtual void downLoadFinished()
TTK::MusicSongInformationList m_items
static constexpr const char * QUERY_WY_INTERFACE
void setQueryType(QueryType type)
#define TTK_DECLARE_MODULE(Class)
QueryType queryType() const
static constexpr const char * QUERY_KW_INTERFACE
MusicResultInfoItem(const TTK::MusicSongInformation &info, const QString &type)
void setQueryMode(QueryMode mode)
The class of the search result info item.
void setItems(const TTK::MusicSongInformationList &items)
TTK_DECLARE_LIST(MusicResultDataItem)
QString queryServer() const
The class of the abstract query download data from net.
const TTK::MusicSongInformationList & items() const