equal
deleted
inserted
replaced
19 #ifndef MSGACTIVITYHANDLER_H_ |
19 #ifndef MSGACTIVITYHANDLER_H_ |
20 #define MSGACTIVITYHANDLER_H_ |
20 #define MSGACTIVITYHANDLER_H_ |
21 |
21 |
22 #include <QObject> |
22 #include <QObject> |
23 #include <QVariant> |
23 #include <QVariant> |
|
24 #include <afactivities_global.h> |
24 |
25 |
25 class MsgMainWindow; |
26 class MsgMainWindow; |
26 class MsgViewManager; |
27 class MsgViewManager; |
27 class AfActivityStorage; |
28 class AfActivityStorage; |
|
29 class AfActivation; |
|
30 |
|
31 // Activity Names |
|
32 const QString ListViewActivityName("MsgConversationsList"); |
|
33 const QString EditorActivityName("MsgCreate"); |
28 |
34 |
29 class MsgActivityHandler: public QObject |
35 class MsgActivityHandler: public QObject |
30 { |
36 { |
31 Q_OBJECT |
37 Q_OBJECT |
32 |
38 |
45 |
51 |
46 /** |
52 /** |
47 * Saves the current running activity. |
53 * Saves the current running activity. |
48 */ |
54 */ |
49 void saveActivity(); |
55 void saveActivity(); |
50 |
56 |
|
57 signals: |
|
58 |
|
59 /** |
|
60 * Reemit activated signal from AfActivation |
|
61 */ |
|
62 void activated(Af::ActivationReason reason, |
|
63 QString name, |
|
64 QVariantHash parameters); |
|
65 |
51 public: |
66 public: |
52 /** |
67 /** |
53 * Set the message main window pointer. |
68 * Set the message main window pointer. |
54 * @param mainWindow message main window. |
69 * @param mainWindow message main window. |
55 */ |
70 */ |
71 /** |
86 /** |
72 * This return the Af activity storage instance |
87 * This return the Af activity storage instance |
73 */ |
88 */ |
74 AfActivityStorage* activitiyStorage(); |
89 AfActivityStorage* activitiyStorage(); |
75 |
90 |
|
91 /** |
|
92 * This return the Af activition instance |
|
93 */ |
|
94 AfActivation* activation(); |
|
95 |
76 private: |
96 private: |
77 /** |
97 /** |
78 * main window reference not owned. |
98 * main window reference not owned. |
79 */ |
99 */ |
80 MsgMainWindow *mMainWindow; |
100 MsgMainWindow *mMainWindow; |
82 /** |
102 /** |
83 * App Framework activity service. |
103 * App Framework activity service. |
84 * Own. |
104 * Own. |
85 */ |
105 */ |
86 AfActivityStorage *mActivityStorage; |
106 AfActivityStorage *mActivityStorage; |
|
107 |
|
108 /** |
|
109 * App Framework activation |
|
110 * Own. |
|
111 */ |
|
112 AfActivation *mActivation; |
87 }; |
113 }; |
88 |
114 |
89 #endif /* MSGACTIVITYHANDLER_H_ */ |
115 #endif /* MSGACTIVITYHANDLER_H_ */ |