Changeset View
Changeset View
Standalone View
Standalone View
src/file/indexerstate.h
Show All 28 Lines | |||||
29 | enum IndexerState { | 29 | enum IndexerState { | ||
30 | Idle, | 30 | Idle, | ||
31 | Suspended, | 31 | Suspended, | ||
32 | FirstRun, | 32 | FirstRun, | ||
33 | NewFiles, | 33 | NewFiles, | ||
34 | ModifiedFiles, | 34 | ModifiedFiles, | ||
35 | XAttrFiles, | 35 | XAttrFiles, | ||
36 | ContentIndexing, | 36 | ContentIndexing, | ||
37 | UnindexedFileCheck | 37 | UnindexedFileCheck, | ||
38 | DeindexingFileCheck | ||||
38 | }; | 39 | }; | ||
39 | 40 | | |||
40 | inline QString stateString(IndexerState state) | 41 | inline QString stateString(IndexerState state) | ||
41 | { | 42 | { | ||
42 | QString status = i18n("Unknown"); | 43 | QString status = i18n("Unknown"); | ||
43 | switch (state) { | 44 | switch (state) { | ||
44 | case Idle: | 45 | case Idle: | ||
45 | status = i18n("Idle"); | 46 | status = i18n("Idle"); | ||
Show All 13 Lines | |||||
59 | case XAttrFiles: | 60 | case XAttrFiles: | ||
60 | status = i18n("Indexing Extended Attributes"); | 61 | status = i18n("Indexing Extended Attributes"); | ||
61 | break; | 62 | break; | ||
62 | case ContentIndexing: | 63 | case ContentIndexing: | ||
63 | status = i18n("Indexing file content"); | 64 | status = i18n("Indexing file content"); | ||
64 | break; | 65 | break; | ||
65 | case UnindexedFileCheck: | 66 | case UnindexedFileCheck: | ||
66 | status = i18n("Checking for unindexed files"); | 67 | status = i18n("Checking for unindexed files"); | ||
68 | break; | ||||
69 | case DeindexingFileCheck: | ||||
70 | status = i18n("Checking for deindexable files"); | ||||
67 | } | 71 | } | ||
68 | return status; | 72 | return status; | ||
69 | } | 73 | } | ||
70 | 74 | | |||
71 | //TODO: check for implicit conversion | 75 | //TODO: check for implicit conversion | ||
72 | inline QString stateString(int state) | 76 | inline QString stateString(int state) | ||
73 | { | 77 | { | ||
74 | return stateString(static_cast<IndexerState>(state)); | 78 | return stateString(static_cast<IndexerState>(state)); | ||
75 | } | 79 | } | ||
76 | 80 | | |||
77 | } | 81 | } | ||
78 | #endif //BALOO_INDEXER_STATE_H | 82 | #endif //BALOO_INDEXER_STATE_H |