Changeset View
Changeset View
Standalone View
Standalone View
src/core-impl/collections/support/jobs/WriteTagsJob.h
Show All 33 Lines | |||||
34 | * done() signal to its deleteLater() slot. | 34 | * done() signal to its deleteLater() slot. | ||
35 | */ | 35 | */ | ||
36 | class AMAROK_EXPORT WriteTagsJob :public QObject, public ThreadWeaver::Job | 36 | class AMAROK_EXPORT WriteTagsJob :public QObject, public ThreadWeaver::Job | ||
37 | { | 37 | { | ||
38 | Q_OBJECT | 38 | Q_OBJECT | ||
39 | 39 | | |||
40 | public: | 40 | public: | ||
41 | WriteTagsJob( const QString &path, const Meta::FieldHash &changes, bool respectConfig = true ); | 41 | WriteTagsJob( const QString &path, const Meta::FieldHash &changes, bool respectConfig = true ); | ||
42 | virtual void run(ThreadWeaver::JobPointer self = QSharedPointer<ThreadWeaver::Job>(), ThreadWeaver::Thread *thread = 0) Q_DECL_OVERRIDE; | 42 | virtual void run(ThreadWeaver::JobPointer self = QSharedPointer<ThreadWeaver::Job>(), ThreadWeaver::Thread *thread = 0) override; | ||
43 | 43 | | |||
44 | protected: | 44 | protected: | ||
45 | void defaultBegin(const ThreadWeaver::JobPointer& job, ThreadWeaver::Thread *thread) Q_DECL_OVERRIDE; | 45 | void defaultBegin(const ThreadWeaver::JobPointer& job, ThreadWeaver::Thread *thread) override; | ||
46 | void defaultEnd(const ThreadWeaver::JobPointer& job, ThreadWeaver::Thread *thread) Q_DECL_OVERRIDE; | 46 | void defaultEnd(const ThreadWeaver::JobPointer& job, ThreadWeaver::Thread *thread) override; | ||
47 | 47 | | |||
48 | Q_SIGNALS: | 48 | Q_SIGNALS: | ||
49 | /** This signal is emitted when this job is being processed by a thread. */ | 49 | /** This signal is emitted when this job is being processed by a thread. */ | ||
50 | void started(ThreadWeaver::JobPointer); | 50 | void started(ThreadWeaver::JobPointer); | ||
51 | /** This signal is emitted when the job has been finished (no matter if it succeeded or not). */ | 51 | /** This signal is emitted when the job has been finished (no matter if it succeeded or not). */ | ||
52 | void done(ThreadWeaver::JobPointer); | 52 | void done(ThreadWeaver::JobPointer); | ||
53 | /** This job has failed. | 53 | /** This job has failed. | ||
54 | * This signal is emitted when success() returns false after the job is executed. */ | 54 | * This signal is emitted when success() returns false after the job is executed. */ | ||
Show All 9 Lines |