videoplayerapp/videoplayerengine/tsrc/testvideoplayerengine/stub/src/afactivitystorage.cpp
equal
deleted
inserted
replaced
|
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: stub AfActivityStorage |
|
15 * |
|
16 */ |
|
17 |
|
18 // Version : %version: 2 % |
|
19 |
|
20 #include "afactivitystorage.h" |
|
21 |
|
22 QVariant AfActivityStorage::mDataToReturn = QVariant(); |
|
23 |
|
24 int AfActivityStorage::mActivityCount = 0; |
|
25 |
|
26 QString AfActivityStorage::mLastHandledActivity = QString(); |
|
27 |
|
28 AfActivityStorage::AfActivityStorage() |
|
29 { |
|
30 } |
|
31 |
|
32 AfActivityStorage::~AfActivityStorage() |
|
33 { |
|
34 } |
|
35 |
|
36 bool AfActivityStorage::saveActivity(const QString &activityId, const QVariant &activityData, const QVariantHash &metadata) |
|
37 { |
|
38 Q_UNUSED(activityData); |
|
39 Q_UNUSED(metadata); |
|
40 mLastHandledActivity = activityId; |
|
41 mActivityCount++; |
|
42 } |
|
43 |
|
44 QVariant AfActivityStorage::activityData(const QString &activityId) const |
|
45 { |
|
46 Q_UNUSED(activityId); |
|
47 return mDataToReturn; |
|
48 } |
|
49 |
|
50 bool AfActivityStorage::removeActivity(const QString &activityId) |
|
51 { |
|
52 mLastHandledActivity = activityId; |
|
53 mActivityCount--; |
|
54 return true; |
|
55 } |
|
56 |
|
57 |