activityfw/activityserviceplugin/inc/afclient.h
changeset 102 8b8b34fa9751
child 107 b34d53f6acdf
equal deleted inserted replaced
100:0920c6a9b6c8 102:8b8b34fa9751
       
     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 AFCLIENT_H
       
    18 #define AFCLIENT_H
       
    19 
       
    20 #include <QObject>
       
    21 #include <QVariant>
       
    22 #include <QString>
       
    23 
       
    24 #include <afstorageclient.h>
       
    25 
       
    26 class AfClient : public QObject
       
    27 {
       
    28 
       
    29     Q_OBJECT
       
    30 
       
    31 public:
       
    32     AfClient(const QSharedPointer<AfStorageClient> &serviceProvider,QObject *parent = 0);
       
    33     ~AfClient();
       
    34 
       
    35 public slots:
       
    36     bool addActivity(const QString &activityId, const QVariant &data, const QVariantHash &parameters);
       
    37     bool removeActivity(const QString &activityId);
       
    38     bool updateActivity(const QString &activityId, const QVariant &data, const QVariantHash &parameters);
       
    39     QList<QVariantHash> activities() const;
       
    40     QVariant activityData(const QString &activityId) const;
       
    41     QVariantHash parseCommandLine(const QStringList &commandLineParams) const;
       
    42 
       
    43 private slots:
       
    44     void bringToForeground();
       
    45     
       
    46 signals:
       
    47     void activityRequested(const QString &activityId);
       
    48 
       
    49 private:
       
    50     QSharedPointer<AfStorageClient> mServiceProvider;
       
    51     bool mIsconnected;
       
    52 };
       
    53 
       
    54 #endif // AFCLIENT_H