activityfw/activityserviceplugin/inc/afactivitystorage_p.h
changeset 107 b34d53f6acdf
equal deleted inserted replaced
106:e78d6e055a5b 107:b34d53f6acdf
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 #ifndef AFACTIVITYSTORAGE_P_H
       
    18 #define AFACTIVITYSTORAGE_P_H
       
    19 
       
    20 #include <QString>
       
    21 #include <QStringList>
       
    22 #include <QVariant>
       
    23 #include <QSharedPointer>
       
    24 
       
    25 #include "afstorageproxy.h"
       
    26 
       
    27 class AfActivityStoragePrivate
       
    28 {
       
    29 
       
    30 public:
       
    31     AfActivityStoragePrivate(const QSharedPointer<AfStorageProxy> &connection);
       
    32 
       
    33 public:
       
    34     bool saveActivity(const QString &activityId, const QVariant &activityData, const QVariantHash &metadata);
       
    35     bool removeActivity(const QString &activityId);
       
    36 
       
    37     QStringList allActivities() const;
       
    38 
       
    39     QVariant activityData(const QString &activityId) const;
       
    40     QVariantHash activityMetaData(const QString &activityId) const;
       
    41 
       
    42 private: // helper methods
       
    43     static int applicationId();
       
    44     
       
    45 private:
       
    46     QSharedPointer<AfStorageProxy> mConnection;
       
    47     
       
    48 };
       
    49 
       
    50 #endif // AFACTIVITYSTORAGE_P_H