Changeset View
Changeset View
Standalone View
Standalone View
src/service/plugins/sqlite/ResourceScoreMaintainer.h
Show All 14 Lines | |||||
15 | * License along with this program; if not, write to the | 15 | * License along with this program; if not, write to the | ||
16 | * Free Software Foundation, Inc., | 16 | * Free Software Foundation, Inc., | ||
17 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | 17 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
18 | */ | 18 | */ | ||
19 | 19 | | |||
20 | #ifndef PLUGINS_SQLITE_RESOURCE_SCORE_MAINTAINER_H | 20 | #ifndef PLUGINS_SQLITE_RESOURCE_SCORE_MAINTAINER_H | ||
21 | #define PLUGINS_SQLITE_RESOURCE_SCORE_MAINTAINER_H | 21 | #define PLUGINS_SQLITE_RESOURCE_SCORE_MAINTAINER_H | ||
22 | 22 | | |||
23 | #include <QObject> | ||||
24 | | ||||
23 | // Utils | 25 | // Utils | ||
24 | #include <utils/d_ptr.h> | 26 | #include <utils/d_ptr.h> | ||
25 | 27 | | |||
26 | class ResourceScoreMaintainerPrivate; | 28 | class ResourceScoreMaintainerPrivate; | ||
27 | class QString; | 29 | class QString; | ||
28 | 30 | | |||
29 | /** | 31 | /** | ||
30 | * ResourceScoreMaintainer represents a queue of resource processing requests. | 32 | * ResourceScoreMaintainer represents a queue of resource processing requests. | ||
31 | */ | 33 | */ | ||
32 | class ResourceScoreMaintainer { | 34 | class ResourceScoreMaintainer: public QObject { | ||
33 | public: | 35 | public: | ||
34 | static ResourceScoreMaintainer *self(); | 36 | static ResourceScoreMaintainer *self(); | ||
35 | 37 | | |||
36 | virtual ~ResourceScoreMaintainer(); | 38 | virtual ~ResourceScoreMaintainer(); | ||
37 | 39 | | |||
38 | void processResource(const QString &resource, const QString &application); | 40 | void processResource(const QString &resource, const QString &application); | ||
39 | 41 | | |||
40 | private: | 42 | private: | ||
41 | ResourceScoreMaintainer(); | 43 | ResourceScoreMaintainer(); | ||
42 | 44 | | |||
43 | D_PTR; | 45 | D_PTR; | ||
44 | }; | 46 | }; | ||
45 | 47 | | |||
46 | #endif // PLUGINS_SQLITE_RESOURCE_SCORE_MAINTAINER_H | 48 | #endif // PLUGINS_SQLITE_RESOURCE_SCORE_MAINTAINER_H |