|
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 * |
|
15 * Description: |
|
16 * The header file of service utils private |
|
17 */ |
|
18 |
|
19 #ifndef FMSERVICEUTILSPRIVATE_H |
|
20 #define FMSERVICEUTILSPRIVATE_H |
|
21 |
|
22 #include <QObject> |
|
23 #include <QVariant> |
|
24 #include <QStringList> |
|
25 #include <QVariantHash> |
|
26 |
|
27 class ShareUi; |
|
28 class AfActivityStorage; |
|
29 class CFmServiceUtilsHandler; |
|
30 |
|
31 |
|
32 /*! |
|
33 \class FmServiceUtilsPrivate |
|
34 \brief The class FmServiceUtilsPrivate provide service utils APIs private wrapper |
|
35 */ |
|
36 class FmServiceUtilsPrivate |
|
37 { |
|
38 public: |
|
39 FmServiceUtilsPrivate(); |
|
40 virtual ~FmServiceUtilsPrivate(); |
|
41 |
|
42 void sendFile( const QStringList &filePath ); |
|
43 void closeApps(); |
|
44 void restartApps(); |
|
45 |
|
46 // activity implement |
|
47 bool saveActivity(const QString &activityId, const QVariant &activityData, const QVariantHash &metadata); |
|
48 bool removeActivity(const QString &activityId); |
|
49 |
|
50 private: |
|
51 ShareUi *shareUi(); |
|
52 AfActivityStorage *activityStorage(); |
|
53 CFmServiceUtilsHandler *serviceUtilsHandler(); |
|
54 |
|
55 private: |
|
56 // used to send files |
|
57 ShareUi *mShareUi; |
|
58 |
|
59 // used for some service utils |
|
60 CFmServiceUtilsHandler *mServiceUtilsHandler; |
|
61 |
|
62 //own used to save activity. |
|
63 AfActivityStorage *mActivityStorage; |
|
64 }; |
|
65 |
|
66 #endif |