1/*
2 This file is part of the KDE Baloo Project
3 SPDX-FileCopyrightText: 2015 Pinak Ahuja <pinak.ahuja@gmail.com>
4
5 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
6*/
7
8#ifndef BALOO_INDEXER_STATE_H
9#define BALOO_INDEXER_STATE_H
10
11#include <QObject>
12#include <QString>
13
14#include "engine_export.h"
15
16namespace Baloo {
17Q_NAMESPACE_EXPORT(BALOO_ENGINE_EXPORT)
18
19enum IndexerState {
20 Idle,
21 Suspended,
22 FirstRun,
23 NewFiles,
24 ModifiedFiles,
25 XAttrFiles,
26 ContentIndexing,
27 UnindexedFileCheck,
28 StaleIndexEntriesClean,
29 LowPowerIdle,
30 Unavailable,
31 Startup
32};
33Q_ENUM_NS(IndexerState)
34
35BALOO_ENGINE_EXPORT QString stateString(IndexerState state);
36
37//TODO: check for implicit conversion
38BALOO_ENGINE_EXPORT QString stateString(int state);
39
40}
41#endif //BALOO_INDEXER_STATE_H
42

source code of baloo/src/engine/indexerstate.h