Changeset View
Changeset View
Standalone View
Standalone View
src/scanner/AbstractDirectoryWatcher.h
Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Line(s) | |||||
53 | class AMAROK_EXPORT AbstractDirectoryWatcher : public QObject, public ThreadWeaver::Job | 53 | class AMAROK_EXPORT AbstractDirectoryWatcher : public QObject, public ThreadWeaver::Job | ||
54 | { | 54 | { | ||
55 | Q_OBJECT | 55 | Q_OBJECT | ||
56 | 56 | | |||
57 | public: | 57 | public: | ||
58 | AbstractDirectoryWatcher(); | 58 | AbstractDirectoryWatcher(); | ||
59 | 59 | | |||
60 | void run(ThreadWeaver::JobPointer self = QSharedPointer<ThreadWeaver::Job>(), ThreadWeaver::Thread *thread = 0) override; | 60 | void run(ThreadWeaver::JobPointer self = QSharedPointer<ThreadWeaver::Job>(), ThreadWeaver::Thread *thread = 0) override; | ||
61 | void abort(); | 61 | void requestAbort() override; | ||
62 | 62 | | |||
63 | /** Pauses the emitting of the scan signal */ | 63 | /** Pauses the emitting of the scan signal */ | ||
64 | void setBlockScanning( bool block ); | 64 | void setBlockScanning( bool block ); | ||
65 | 65 | | |||
66 | Q_SIGNALS: | 66 | Q_SIGNALS: | ||
67 | /** Requests the scanner to do an incremental scan. | 67 | /** Requests the scanner to do an incremental scan. | ||
68 | * The incremental scan will check for new files or sub-folders. | 68 | * The incremental scan will check for new files or sub-folders. | ||
69 | * @param directory The directory to scan or and empty string if every | 69 | * @param directory The directory to scan or and empty string if every | ||
Show All 39 Lines |