activityfw/activityserviceplugin/activitydatastorage.h
changeset 66 32469d7d46ff
parent 61 8e5041d13c84
equal deleted inserted replaced
61:8e5041d13c84 66:32469d7d46ff
     9 * Initial Contributors:
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    10 * Nokia Corporation - initial contribution.
    11 *
    11 *
    12 * Contributors:
    12 * Contributors:
    13 *
    13 *
    14 * Description: 
    14 * Description:
    15 *
    15 *
    16 */
    16 */
    17 #ifndef ACTIVITYDATASTORAGE_H
    17 #ifndef ACTIVITYDATASTORAGE_H
    18 #define ACTIVITYDATASTORAGE_H
    18 #define ACTIVITYDATASTORAGE_H
    19 
    19 
    20 #include <QVariant>
    20 #include <QVariant>
    21 #include <QString>
    21 #include <QString>
    22 
    22 
    23 class ActivityDataStorage 
    23 class ActivityDataStorage
    24 {
    24 {
    25   
    25 
    26 public:
    26 public:
    27     ActivityDataStorage();
    27     ActivityDataStorage();
    28     ~ActivityDataStorage();
    28     ~ActivityDataStorage();
    29   
    29 
    30 public:
    30 public:
    31     bool addActivity(const QString &activityId, const QVariant &data);
    31     bool addActivity(const QString &activityId, const QVariant &data);
    32     bool removeActivity(const QString &activityId);
    32     bool removeActivity(const QString &activityId);
    33     bool updateActivity(const QString &activityId, const QVariant &data);
    33     bool updateActivity(const QString &activityId, const QVariant &data);
    34     QVariant activityData(const QString &activityId) const;
    34     QVariant activityData(const QString &activityId) const;
    35   
    35 
    36 private:
    36 private:
    37     bool checkTables();
    37     bool checkTables();
    38     void recreateTables();
    38     void recreateTables();
    39     
    39 
    40 };
    40 };
    41 
    41 
    42 #endif // ACTIVITYDATASTORAGE_H
    42 #endif // ACTIVITYDATASTORAGE_H