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: |
|
15 * Handles saving and opening activites. |
|
16 * |
|
17 */ |
|
18 |
|
19 #ifndef MSGACTIVITYHANDLER_H_ |
|
20 #define MSGACTIVITYHANDLER_H_ |
|
21 |
|
22 #include <QObject> |
|
23 #include <QVariant> |
|
24 |
|
25 class MsgMainWindow; |
|
26 class MsgViewManager; |
|
27 |
|
28 class MsgActivityHandler: public QObject |
|
29 { |
|
30 Q_OBJECT |
|
31 |
|
32 public: |
|
33 /** |
|
34 * Constructor |
|
35 */ |
|
36 MsgActivityHandler( QObject* parent = 0); |
|
37 |
|
38 /** |
|
39 * Destructor. |
|
40 */ |
|
41 ~MsgActivityHandler(); |
|
42 |
|
43 public slots: |
|
44 |
|
45 /** |
|
46 * Saves the current running activity. |
|
47 */ |
|
48 void saveActivity(); |
|
49 |
|
50 /** |
|
51 * Open the activity which is requested. |
|
52 * @param activitry data. |
|
53 */ |
|
54 void handleActivity(const QVariant &activityData); |
|
55 |
|
56 public: |
|
57 /** |
|
58 * Set the message main window pointer. |
|
59 * @param mainWindow message main window. |
|
60 */ |
|
61 void setMainWindow(MsgMainWindow* mainWindow); |
|
62 |
|
63 /** |
|
64 * Clears all saved messaging activities. |
|
65 */ |
|
66 void clearActivities(); |
|
67 |
|
68 private: |
|
69 /** |
|
70 * main window reference not owned. |
|
71 */ |
|
72 MsgMainWindow* mMainWindow; |
|
73 }; |
|
74 |
|
75 #endif /* MSGACTIVITYHANDLER_H_ */ |