Changeset View
Changeset View
Standalone View
Standalone View
src/core-impl/collections/ipodcollection/jobs/IpodDeleteTracksJob.h
Show All 24 Lines | |||||
25 | 25 | | |||
26 | class IpodDeleteTracksJob : public QObject, public ThreadWeaver::Job | 26 | class IpodDeleteTracksJob : public QObject, public ThreadWeaver::Job | ||
27 | { | 27 | { | ||
28 | Q_OBJECT | 28 | Q_OBJECT | ||
29 | 29 | | |||
30 | public: | 30 | public: | ||
31 | explicit IpodDeleteTracksJob( const Meta::TrackList &sources, | 31 | explicit IpodDeleteTracksJob( const Meta::TrackList &sources, | ||
32 | const QPointer<IpodCollection> &collection ); | 32 | const QPointer<IpodCollection> &collection ); | ||
33 | void run(ThreadWeaver::JobPointer self = QSharedPointer<ThreadWeaver::Job>(), ThreadWeaver::Thread *thread = 0) Q_DECL_OVERRIDE; | 33 | void run(ThreadWeaver::JobPointer self = QSharedPointer<ThreadWeaver::Job>(), ThreadWeaver::Thread *thread = 0) override; | ||
34 | 34 | | |||
35 | Q_SIGNALS: | 35 | Q_SIGNALS: | ||
36 | // signals for progress operation: | 36 | // signals for progress operation: | ||
37 | void incrementProgress(); | 37 | void incrementProgress(); | ||
38 | void endProgressOperation( QObject *obj ); | 38 | void endProgressOperation( QObject *obj ); | ||
39 | void totalSteps( int steps ); // not used, defined to keep QObject::conect warning quiet | 39 | void totalSteps( int steps ); // not used, defined to keep QObject::conect warning quiet | ||
40 | 40 | | |||
41 | /** This signal is emitted when this job is being processed by a thread. */ | 41 | /** This signal is emitted when this job is being processed by a thread. */ | ||
42 | void started(ThreadWeaver::JobPointer); | 42 | void started(ThreadWeaver::JobPointer); | ||
43 | /** This signal is emitted when the job has been finished (no matter if it succeeded or not). */ | 43 | /** This signal is emitted when the job has been finished (no matter if it succeeded or not). */ | ||
44 | void done(ThreadWeaver::JobPointer); | 44 | void done(ThreadWeaver::JobPointer); | ||
45 | /** This job has failed. | 45 | /** This job has failed. | ||
46 | * This signal is emitted when success() returns false after the job is executed. */ | 46 | * This signal is emitted when success() returns false after the job is executed. */ | ||
47 | void failed(ThreadWeaver::JobPointer); | 47 | void failed(ThreadWeaver::JobPointer); | ||
48 | 48 | | |||
49 | protected: | 49 | protected: | ||
50 | void defaultBegin(const ThreadWeaver::JobPointer& job, ThreadWeaver::Thread *thread) Q_DECL_OVERRIDE; | 50 | void defaultBegin(const ThreadWeaver::JobPointer& job, ThreadWeaver::Thread *thread) override; | ||
51 | void defaultEnd(const ThreadWeaver::JobPointer& job, ThreadWeaver::Thread *thread) Q_DECL_OVERRIDE; | 51 | void defaultEnd(const ThreadWeaver::JobPointer& job, ThreadWeaver::Thread *thread) override; | ||
52 | 52 | | |||
53 | private: | 53 | private: | ||
54 | Meta::TrackList m_sources; | 54 | Meta::TrackList m_sources; | ||
55 | QPointer<IpodCollection> m_coll; | 55 | QPointer<IpodCollection> m_coll; | ||
56 | }; | 56 | }; | ||
57 | 57 | | |||
58 | #endif // IPODDELETETRACKSJOB_H | 58 | #endif // IPODDELETETRACKSJOB_H |