Changeset View
Changeset View
Standalone View
Standalone View
src/services/jamendo/JamendoXmlParser.h
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Line(s) | 39 | public: | |||
---|---|---|---|---|---|
43 | * @param fileName The file to parse | 43 | * @param fileName The file to parse | ||
44 | */ | 44 | */ | ||
45 | explicit JamendoXmlParser( const QString &fileName ); | 45 | explicit JamendoXmlParser( const QString &fileName ); | ||
46 | 46 | | |||
47 | /** | 47 | /** | ||
48 | * The function that starts the actual work. Inherited from ThreadWeaver::Job | 48 | * The function that starts the actual work. Inherited from ThreadWeaver::Job | ||
49 | * Note the work is performed in a separate thread | 49 | * Note the work is performed in a separate thread | ||
50 | */ | 50 | */ | ||
51 | void run(ThreadWeaver::JobPointer self = QSharedPointer<ThreadWeaver::Job>(), ThreadWeaver::Thread *thread = 0) Q_DECL_OVERRIDE; | 51 | void run(ThreadWeaver::JobPointer self = QSharedPointer<ThreadWeaver::Job>(), ThreadWeaver::Thread *thread = 0) override; | ||
52 | 52 | | |||
53 | /** | 53 | /** | ||
54 | * Destructor | 54 | * Destructor | ||
55 | */ | 55 | */ | ||
56 | ~JamendoXmlParser(); | 56 | ~JamendoXmlParser(); | ||
57 | 57 | | |||
58 | /** | 58 | /** | ||
59 | * Reads, and starts parsing, file. Should not be used directly. | 59 | * Reads, and starts parsing, file. Should not be used directly. | ||
▲ Show 20 Lines • Show All 56 Lines • ▼ Show 20 Line(s) | 87 | private: | |||
116 | int n_numberOfTransactions; | 116 | int n_numberOfTransactions; | ||
117 | int n_maxNumberOfTransactions; | 117 | int n_maxNumberOfTransactions; | ||
118 | QHash< int, QString > m_id3GenreHash; | 118 | QHash< int, QString > m_id3GenreHash; | ||
119 | QMap<int, int> m_albumArtistMap; | 119 | QMap<int, int> m_albumArtistMap; | ||
120 | 120 | | |||
121 | bool m_aborted; | 121 | bool m_aborted; | ||
122 | 122 | | |||
123 | protected: | 123 | protected: | ||
124 | void defaultBegin(const ThreadWeaver::JobPointer& job, ThreadWeaver::Thread *thread) Q_DECL_OVERRIDE; | 124 | void defaultBegin(const ThreadWeaver::JobPointer& job, ThreadWeaver::Thread *thread) override; | ||
125 | void defaultEnd(const ThreadWeaver::JobPointer& job, ThreadWeaver::Thread *thread) Q_DECL_OVERRIDE; | 125 | void defaultEnd(const ThreadWeaver::JobPointer& job, ThreadWeaver::Thread *thread) override; | ||
126 | }; | 126 | }; | ||
127 | 127 | | |||
128 | #endif | 128 | #endif |