107
|
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 "afactivitystorage.h"
|
|
19 |
#include "afactivitystorage_p.h"
|
|
20 |
|
|
21 |
AfActivityStorage::AfActivityStorage(QObject *parent) : QObject(parent), d_ptr(0)
|
|
22 |
{
|
|
23 |
QSharedPointer<AfStorageProxy> connection(new AfStorageProxy());
|
|
24 |
d_ptr.reset(new AfActivityStoragePrivate(connection));
|
|
25 |
}
|
|
26 |
|
|
27 |
AfActivityStorage::~AfActivityStorage()
|
|
28 |
{
|
|
29 |
}
|
|
30 |
|
|
31 |
bool AfActivityStorage::saveActivity(const QString &activityId, const QVariant &activityData, const QVariantHash &metadata)
|
|
32 |
{
|
|
33 |
return d_ptr->saveActivity(activityId, activityData, metadata);
|
|
34 |
}
|
|
35 |
|
|
36 |
bool AfActivityStorage::removeActivity(const QString &activityId)
|
|
37 |
{
|
|
38 |
return d_ptr->removeActivity(activityId);
|
|
39 |
}
|
|
40 |
|
|
41 |
QStringList AfActivityStorage::allActivities() const
|
|
42 |
{
|
|
43 |
return d_ptr->allActivities();
|
|
44 |
}
|
|
45 |
|
|
46 |
QVariant AfActivityStorage::activityData(const QString &activityId) const
|
|
47 |
{
|
|
48 |
return d_ptr->activityData(activityId);
|
|
49 |
}
|
|
50 |
|
|
51 |
QVariantHash AfActivityStorage::activityMetaData(const QString &activityId) const
|
|
52 |
{
|
|
53 |
return d_ptr->activityMetaData(activityId);
|
|
54 |
}
|