Changeset View
Changeset View
Standalone View
Standalone View
src/core-impl/collections/ipodcollection/jobs/IpodWriteDatabaseJob.h
Show All 27 Lines | |||||
28 | * the caller of it. | 28 | * the caller of it. | ||
29 | */ | 29 | */ | ||
30 | class IpodWriteDatabaseJob : public QObject, public ThreadWeaver::Job | 30 | class IpodWriteDatabaseJob : public QObject, public ThreadWeaver::Job | ||
31 | { | 31 | { | ||
32 | Q_OBJECT | 32 | Q_OBJECT | ||
33 | 33 | | |||
34 | public: | 34 | public: | ||
35 | explicit IpodWriteDatabaseJob( IpodCollection *collection ); | 35 | explicit IpodWriteDatabaseJob( IpodCollection *collection ); | ||
36 | void run(ThreadWeaver::JobPointer self = QSharedPointer<ThreadWeaver::Job>(), ThreadWeaver::Thread *thread = 0) Q_DECL_OVERRIDE; | 36 | void run(ThreadWeaver::JobPointer self = QSharedPointer<ThreadWeaver::Job>(), ThreadWeaver::Thread *thread = 0) override; | ||
37 | 37 | | |||
38 | Q_SIGNALS: | 38 | Q_SIGNALS: | ||
39 | /** This signal is emitted when this job is being processed by a thread. */ | 39 | /** This signal is emitted when this job is being processed by a thread. */ | ||
40 | void started(ThreadWeaver::JobPointer); | 40 | void started(ThreadWeaver::JobPointer); | ||
41 | /** This signal is emitted when the job has been finished (no matter if it succeeded or not). */ | 41 | /** This signal is emitted when the job has been finished (no matter if it succeeded or not). */ | ||
42 | void done(ThreadWeaver::JobPointer); | 42 | void done(ThreadWeaver::JobPointer); | ||
43 | /** This job has failed. | 43 | /** This job has failed. | ||
44 | * This signal is emitted when success() returns false after the job is executed. */ | 44 | * This signal is emitted when success() returns false after the job is executed. */ | ||
45 | void failed(ThreadWeaver::JobPointer); | 45 | void failed(ThreadWeaver::JobPointer); | ||
46 | 46 | | |||
47 | protected: | 47 | protected: | ||
48 | void defaultBegin(const ThreadWeaver::JobPointer& job, ThreadWeaver::Thread *thread) Q_DECL_OVERRIDE; | 48 | void defaultBegin(const ThreadWeaver::JobPointer& job, ThreadWeaver::Thread *thread) override; | ||
49 | void defaultEnd(const ThreadWeaver::JobPointer& job, ThreadWeaver::Thread *thread) Q_DECL_OVERRIDE; | 49 | void defaultEnd(const ThreadWeaver::JobPointer& job, ThreadWeaver::Thread *thread) override; | ||
50 | 50 | | |||
51 | private: | 51 | private: | ||
52 | IpodCollection *m_coll; | 52 | IpodCollection *m_coll; | ||
53 | }; | 53 | }; | ||
54 | 54 | | |||
55 | #endif // IPODWRITEDATABASEJOB_H | 55 | #endif // IPODWRITEDATABASEJOB_H |