|
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 AFACTIVATION_P_H |
|
18 #define AFACTIVATION_P_H |
|
19 |
|
20 #include "afactivities_global.h" |
|
21 |
|
22 #include <QObject> |
|
23 #include <QString> |
|
24 #include <QStringList> |
|
25 #include <QVariantHash> |
|
26 #include <QSharedPointer> |
|
27 |
|
28 #include "afstorageproxy.h" |
|
29 |
|
30 class AfActivationPrivate : public QObject |
|
31 { |
|
32 Q_OBJECT |
|
33 |
|
34 public: |
|
35 AfActivationPrivate(const QSharedPointer<AfStorageProxy> &connection, QObject *parent = 0); |
|
36 |
|
37 public: |
|
38 QVariantHash parameters() const; |
|
39 Af::ActivationReason reason() const; |
|
40 QString name() const; |
|
41 |
|
42 signals: |
|
43 void activated(Af::ActivationReason reason, QString name, QVariantHash parameters); |
|
44 |
|
45 private slots: |
|
46 void handleActivityRequest(const QString &activityId); |
|
47 void bringToForeground(); |
|
48 |
|
49 private: |
|
50 QVariantHash mParameters; |
|
51 Af::ActivationReason mReason; |
|
52 QString mName; |
|
53 |
|
54 private: |
|
55 QSharedPointer<AfStorageProxy> mConnection; |
|
56 |
|
57 }; |
|
58 |
|
59 #endif // AFACTIVATION_P_H |