99
|
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 AFSTORAGEENTRY_H
|
|
18 |
#define AFSTORAGEENTRY_H
|
|
19 |
|
|
20 |
#include <qvariant.h>
|
|
21 |
#include <qsharedpointer.h>
|
|
22 |
|
|
23 |
class CAfEntry;
|
|
24 |
|
|
25 |
#ifdef ACTIVITY_LIB
|
|
26 |
#define ACTIVITY_EXPORT Q_DECL_EXPORT
|
|
27 |
#else
|
|
28 |
#define ACTIVITY_EXPORT Q_DECL_IMPORT
|
|
29 |
#endif
|
|
30 |
|
|
31 |
class ACTIVITY_EXPORT AfStorageEntry
|
|
32 |
{
|
|
33 |
public:
|
|
34 |
AfStorageEntry(QSharedPointer<CAfEntry> data = QSharedPointer<CAfEntry>(0));
|
|
35 |
|
|
36 |
AfStorageEntry(const AfStorageEntry &templateEntry);
|
|
37 |
|
|
38 |
AfStorageEntry(int appId,
|
|
39 |
const QString &actId = QString(),
|
|
40 |
const QVariant &privateData = QVariant(),
|
|
41 |
const QVariantHash& publicData = QVariantHash());
|
|
42 |
|
|
43 |
const CAfEntry* data() const;
|
|
44 |
|
|
45 |
int flags() const;
|
|
46 |
|
|
47 |
int applicationId() const;
|
|
48 |
|
|
49 |
QString activityId() const;
|
|
50 |
|
|
51 |
QString imageSrc() const;
|
|
52 |
|
|
53 |
QVariantHash publicData() const;
|
|
54 |
|
|
55 |
QVariant privateData() const;
|
|
56 |
|
|
57 |
private:
|
|
58 |
QSharedPointer<CAfEntry> mData;
|
|
59 |
|
|
60 |
};
|
|
61 |
|
|
62 |
#endif //AFSTORAGEENTRY_H
|