Changeset View
Changeset View
Standalone View
Standalone View
src/core-impl/meta/proxy/MetaProxyWorker.h
Show All 37 Lines | 37 | public: | |||
---|---|---|---|---|---|
38 | /** | 38 | /** | ||
39 | * If @param provider is null (the default), all providers registered to | 39 | * If @param provider is null (the default), all providers registered to | ||
40 | * CollectionManager are used and a watch for new providers is used. | 40 | * CollectionManager are used and a watch for new providers is used. | ||
41 | * Otherwise the lookup happes just in @param provider and is one-shot. | 41 | * Otherwise the lookup happes just in @param provider and is one-shot. | ||
42 | */ | 42 | */ | ||
43 | explicit Worker( const QUrl &url, Collections::TrackProvider *provider = 0 ); | 43 | explicit Worker( const QUrl &url, Collections::TrackProvider *provider = 0 ); | ||
44 | 44 | | |||
45 | //TrackForUrlWorker virtual methods | 45 | //TrackForUrlWorker virtual methods | ||
46 | virtual void run(ThreadWeaver::JobPointer self = QSharedPointer<ThreadWeaver::Job>(), ThreadWeaver::Thread *thread = 0) Q_DECL_OVERRIDE; | 46 | virtual void run(ThreadWeaver::JobPointer self = QSharedPointer<ThreadWeaver::Job>(), ThreadWeaver::Thread *thread = 0) override; | ||
47 | 47 | | |||
48 | protected: | 48 | protected: | ||
49 | void defaultBegin(const ThreadWeaver::JobPointer& job, ThreadWeaver::Thread *thread) Q_DECL_OVERRIDE; | 49 | void defaultBegin(const ThreadWeaver::JobPointer& job, ThreadWeaver::Thread *thread) override; | ||
50 | void defaultEnd(const ThreadWeaver::JobPointer& job, ThreadWeaver::Thread *thread) Q_DECL_OVERRIDE; | 50 | void defaultEnd(const ThreadWeaver::JobPointer& job, ThreadWeaver::Thread *thread) override; | ||
51 | 51 | | |||
52 | Q_SIGNALS: | 52 | Q_SIGNALS: | ||
53 | void finishedLookup( Meta::TrackPtr track ); | 53 | void finishedLookup( Meta::TrackPtr track ); | ||
54 | /** This signal is emitted when this job is being processed by a thread. */ | 54 | /** This signal is emitted when this job is being processed by a thread. */ | ||
55 | void started(ThreadWeaver::JobPointer); | 55 | void started(ThreadWeaver::JobPointer); | ||
56 | /** This signal is emitted when the job has been finished (no matter if it succeeded or not). */ | 56 | /** This signal is emitted when the job has been finished (no matter if it succeeded or not). */ | ||
57 | void done(ThreadWeaver::JobPointer); | 57 | void done(ThreadWeaver::JobPointer); | ||
58 | /** This job has failed. | 58 | /** This job has failed. | ||
Show All 15 Lines |