File indexing completed on 2025-01-26 05:00:55

0001 /*
0002  *   SPDX-FileCopyrightText: 2011, 2012 Ivan Cukic <ivan.cukic(at)kde.org>
0003  *
0004  *   SPDX-License-Identifier: GPL-2.0-or-later
0005  */
0006 
0007 #pragma once
0008 
0009 // Qt
0010 #include <QString>
0011 
0012 // Utils
0013 #include <utils/d_ptr.h>
0014 
0015 /**
0016  * ResourceScoreCache handles the persistence of the usage ratings for
0017  * the resources.
0018  *
0019  * It contains the logic to update the score of a single resource.
0020  */
0021 class ResourceScoreCache
0022 {
0023 public:
0024     ResourceScoreCache(const QString &activity, const QString &application, const QString &resource);
0025     virtual ~ResourceScoreCache();
0026 
0027     void update();
0028 
0029 private:
0030     D_PTR;
0031     class Queries;
0032 };