activityfw/activityserviceplugin/src/afstorageproxy.cpp
changeset 109 e0aa398e6810
child 116 305818acdca4
equal deleted inserted replaced
104:9b022b1f357c 109:e0aa398e6810
       
     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 
       
    18 #include "afstorageproxy.h"
       
    19 #include "afstorageproxy_p.h"
       
    20 
       
    21 AfStorageProxy::AfStorageProxy(QObject *parent) : QObject (parent), d_ptr(new AfStorageProxyPrivate(this))
       
    22 {    
       
    23 }
       
    24 
       
    25 AfStorageProxy::~AfStorageProxy()
       
    26 {
       
    27     delete d_ptr;
       
    28 }
       
    29 
       
    30 bool AfStorageProxy::addActivity(int applicationId, const QString &activityId, const QVariant &activityData, const QVariantHash &metadata, const QPixmap &screenshot)
       
    31 {
       
    32     return d_ptr->addActivity(applicationId, activityId, activityData, metadata, screenshot);
       
    33 }
       
    34 
       
    35 bool AfStorageProxy::updateActivity(int applicationId, const QString &activityId, const QVariant &activityData, const QVariantHash &metadata, const QPixmap &screenshot)
       
    36 {
       
    37     return d_ptr->updateActivity(applicationId, activityId, activityData, metadata, screenshot);
       
    38 }
       
    39 
       
    40 bool AfStorageProxy::saveActivity(int applicationId, const QString &activityId, const QVariant &activityData, const QVariantHash &metadata, const QPixmap &screenshot)
       
    41 {
       
    42     return d_ptr->saveActivity(applicationId, activityId, activityData, metadata, screenshot);
       
    43 }
       
    44 
       
    45 bool AfStorageProxy::removeActivity(int applicationId, const QString &activityId)
       
    46 {
       
    47     return d_ptr->removeActivity(applicationId, activityId);
       
    48 }
       
    49    
       
    50 bool AfStorageProxy::removeApplicationActivities(int applicationId)
       
    51 {
       
    52     return d_ptr->removeApplicationActivities(applicationId);
       
    53 }
       
    54 
       
    55 bool AfStorageProxy::activities(QList<QVariantHash> &list)
       
    56 {
       
    57     return d_ptr->activities(list);
       
    58 }
       
    59 
       
    60 bool AfStorageProxy::applicationActivities(QStringList &list, int applicationId)
       
    61 {
       
    62     return d_ptr->applicationActivities(list, applicationId);
       
    63 }
       
    64 
       
    65 bool AfStorageProxy::activityData(QVariant &data, int applicationId, const QString &activityId)
       
    66 {
       
    67     return d_ptr->activityData(data, applicationId, activityId);
       
    68 }
       
    69 
       
    70 bool AfStorageProxy::activityMetaData(QVariantHash &metadata, int applicationId, const QString &activityId)
       
    71 {
       
    72     return d_ptr->activityMetaData(metadata, applicationId, activityId);
       
    73 }
       
    74 
       
    75 bool AfStorageProxy::waitActivity()
       
    76 {
       
    77     return d_ptr->waitActivity();
       
    78 }
       
    79     
       
    80 bool AfStorageProxy::launchActivity(int applicationId, const QString &activityUri)
       
    81 {
       
    82     return d_ptr->launchActivity(applicationId, activityUri);
       
    83 }
       
    84 
       
    85 bool AfStorageProxy::getThumbnail(const QSize &size, const QString &imagePath, void *userData)
       
    86 {
       
    87     return d_ptr->getThumbnail(size, imagePath, userData);
       
    88 }
       
    89 
       
    90 bool AfStorageProxy::notifyDataChange()
       
    91 {
       
    92     return d_ptr->notifyDataChange();
       
    93 }