Changeset View
Changeset View
Standalone View
Standalone View
src/file/fileindexscheduler.h
Show First 20 Lines • Show All 74 Lines • ▼ Show 20 Line(s) | 53 | public Q_SLOTS: | |||
---|---|---|---|---|---|
75 | void handleFileRemoved(const QString& file); | 75 | void handleFileRemoved(const QString& file); | ||
76 | 76 | | |||
77 | void scheduleIndexing(); | 77 | void scheduleIndexing(); | ||
78 | 78 | | |||
79 | Q_SCRIPTABLE void suspend() { setSuspend(true); } | 79 | Q_SCRIPTABLE void suspend() { setSuspend(true); } | ||
80 | Q_SCRIPTABLE void resume() { setSuspend(false); } | 80 | Q_SCRIPTABLE void resume() { setSuspend(false); } | ||
81 | Q_SCRIPTABLE uint getRemainingTime(); | 81 | Q_SCRIPTABLE uint getRemainingTime(); | ||
82 | Q_SCRIPTABLE void checkUnindexedFiles(); | 82 | Q_SCRIPTABLE void checkUnindexedFiles(); | ||
83 | Q_SCRIPTABLE void purgeDeindexableFiles(); | ||||
michaelh: Nitpick: We're removing db entries not files. Also every file is deindexable. Maybe… | |||||
This is doing the opposite of indexing new files, which is removing unfound files from the index. I think deindex is an appropriate term for this. smithjd: This is doing the opposite of indexing new files, which is removing unfound files from the… | |||||
83 | Q_SCRIPTABLE uint getBatchSize(); | 84 | Q_SCRIPTABLE uint getBatchSize(); | ||
84 | 85 | | |||
85 | private Q_SLOTS: | 86 | private Q_SLOTS: | ||
86 | void powerManagementStatusChanged(bool isOnBattery); | 87 | void powerManagementStatusChanged(bool isOnBattery); | ||
87 | 88 | | |||
88 | private: | 89 | private: | ||
89 | void setSuspend(bool suspend); | 90 | void setSuspend(bool suspend); | ||
90 | 91 | | |||
Show All 10 Lines | |||||
101 | FileContentIndexer* m_contentIndexer; | 102 | FileContentIndexer* m_contentIndexer; | ||
102 | 103 | | |||
103 | PowerStateMonitor m_powerMonitor; | 104 | PowerStateMonitor m_powerMonitor; | ||
104 | 105 | | |||
105 | IndexerState m_indexerState; | 106 | IndexerState m_indexerState; | ||
106 | TimeEstimator m_timeEstimator; | 107 | TimeEstimator m_timeEstimator; | ||
107 | 108 | | |||
108 | bool m_checkUnindexedFiles; | 109 | bool m_checkUnindexedFiles; | ||
110 | bool m_purgeDeindexableFiles; | ||||
michaelh: Same as above | |||||
109 | }; | 111 | }; | ||
110 | 112 | | |||
111 | } | 113 | } | ||
112 | 114 | | |||
113 | #endif // BALOO_FILEINDEXSCHEDULER_H | 115 | #endif // BALOO_FILEINDEXSCHEDULER_H |
Nitpick: We're removing db entries not files. Also every file is deindexable. Maybe 'purgeStaleEntries', 'removeLostEntries' or so would be a better name to describe what's going on.