Changeset View
Changeset View
Standalone View
Standalone View
src/core-impl/collections/ipodcollection/jobs/IpodCopyTracksJob.h
Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Line(s) | 35 | public: | |||
---|---|---|---|---|---|
44 | 44 | | |||
45 | /** | 45 | /** | ||
46 | * @param goingToRemoveSources whether this is in fact a move operation | 46 | * @param goingToRemoveSources whether this is in fact a move operation | ||
47 | */ | 47 | */ | ||
48 | IpodCopyTracksJob( const QMap<Meta::TrackPtr,QUrl> &sources, | 48 | IpodCopyTracksJob( const QMap<Meta::TrackPtr,QUrl> &sources, | ||
49 | const QPointer<IpodCollection> &collection, | 49 | const QPointer<IpodCollection> &collection, | ||
50 | const Transcoding::Configuration &configuration, | 50 | const Transcoding::Configuration &configuration, | ||
51 | bool goingToRemoveSources ); | 51 | bool goingToRemoveSources ); | ||
52 | void run(ThreadWeaver::JobPointer self = QSharedPointer<ThreadWeaver::Job>(), ThreadWeaver::Thread *thread = 0) Q_DECL_OVERRIDE; | 52 | void run(ThreadWeaver::JobPointer self = QSharedPointer<ThreadWeaver::Job>(), ThreadWeaver::Thread *thread = 0) override; | ||
53 | 53 | | |||
54 | public Q_SLOTS: | 54 | public Q_SLOTS: | ||
55 | void abort(); | 55 | void abort(); | ||
56 | 56 | | |||
57 | Q_SIGNALS: | 57 | Q_SIGNALS: | ||
58 | // a hack to create QueryMaken in a thread with event loop: | 58 | // a hack to create QueryMaken in a thread with event loop: | ||
59 | void startDuplicateTrackSearch( const Meta::TrackPtr &track ); | 59 | void startDuplicateTrackSearch( const Meta::TrackPtr &track ); | ||
60 | 60 | | |||
▲ Show 20 Lines • Show All 50 Lines • ▼ Show 20 Line(s) | 103 | private: | |||
111 | QSemaphore m_searchingForDuplicates; | 111 | QSemaphore m_searchingForDuplicates; | ||
112 | Meta::TrackPtr m_duplicateTrack; | 112 | Meta::TrackPtr m_duplicateTrack; | ||
113 | bool m_aborted; | 113 | bool m_aborted; | ||
114 | bool m_goingToRemoveSources; | 114 | bool m_goingToRemoveSources; | ||
115 | QSet<QString> m_notPlayableFormats; | 115 | QSet<QString> m_notPlayableFormats; | ||
116 | QSet<QString> m_copyErrors; | 116 | QSet<QString> m_copyErrors; | ||
117 | 117 | | |||
118 | protected: | 118 | protected: | ||
119 | void defaultBegin(const ThreadWeaver::JobPointer& job, ThreadWeaver::Thread *thread) Q_DECL_OVERRIDE; | 119 | void defaultBegin(const ThreadWeaver::JobPointer& job, ThreadWeaver::Thread *thread) override; | ||
120 | void defaultEnd(const ThreadWeaver::JobPointer& job, ThreadWeaver::Thread *thread) Q_DECL_OVERRIDE; | 120 | void defaultEnd(const ThreadWeaver::JobPointer& job, ThreadWeaver::Thread *thread) override; | ||
121 | 121 | | |||
122 | }; | 122 | }; | ||
123 | 123 | | |||
124 | #endif // COPYTRACKSJOB_H | 124 | #endif // COPYTRACKSJOB_H |