22 #include "hsactivitydbclientinterface.h" |
22 #include "hsactivitydbclientinterface.h" |
23 |
23 |
24 /** |
24 /** |
25 * Class implemets server functionality for S60 enviroment |
25 * Class implemets server functionality for S60 enviroment |
26 */ |
26 */ |
27 class HsActivityServerPrivate : public CServer2 |
27 class HsActivityServerPrivate : public CServer2 |
28 { |
28 { |
29 public: |
29 public: |
30 /** |
30 /** |
31 * Constructor |
31 * Constructor |
32 */ |
32 */ |
33 HsActivityServerPrivate(HsActivityDbClientInterface& storage); |
33 HsActivityServerPrivate(HsActivityDbClientInterface &storage); |
34 |
34 |
35 /** |
35 /** |
36 * Destructor |
36 * Destructor |
37 */ |
37 */ |
38 ~HsActivityServerPrivate(); |
38 ~HsActivityServerPrivate(); |
39 |
39 |
40 /** |
40 /** |
41 * Function establish server and initialize listening proces |
41 * Function establish server and initialize listening proces |
42 * @return true on succees, false otherwise |
42 * @return true on succees, false otherwise |
43 */ |
43 */ |
44 bool start(); |
44 bool start(); |
45 |
45 |
46 /** |
46 /** |
47 * Function look for active application session and complete pending message |
47 * Function look for active application session and complete pending message |
48 */ |
48 */ |
49 void notifyL(int applicationId, const QString& activityName); |
49 void notifyL(int applicationId, const QString &activityName); |
50 |
50 |
51 /** |
51 /** |
52 * Cancel notification |
52 * Cancel notification |
53 */ |
53 */ |
54 void cancelNotify(int applicationId); |
54 void cancelNotify(int applicationId); |
55 |
55 |
56 /** |
56 /** |
57 * Function add item to pending messages |
57 * Function add item to pending messages |
58 */ |
58 */ |
59 void waitNotification(int applicationId, const RMessage2& msg); |
59 void waitNotification(int applicationId, const RMessage2 &msg); |
60 private: |
60 private: |
61 /** |
61 /** |
62 * Function create new client session to handle its request |
62 * Function create new client session to handle its request |
63 * @param version - client implementation version |
63 * @param version - client implementation version |
64 * @param message - request message |
64 * @param message - request message |
65 */ |
65 */ |
66 CSession2* NewSessionL(const TVersion& version,const RMessage2& message)const; |
66 CSession2 *NewSessionL(const TVersion &version,const RMessage2 &message)const; |
67 |
67 |
68 private: |
68 private: |
69 /** |
69 /** |
70 * Reference to initialized storage client |
70 * Reference to initialized storage client |
71 */ |
71 */ |
72 HsActivityDbClientInterface& mStorage; |
72 HsActivityDbClientInterface &mStorage; |
73 |
73 |
74 QHash<int,RMessage2> mPendingMessage; |
74 QHash<int,RMessage2> mPendingMessage; |
75 }; |
75 }; |
76 |
76 |
77 #endif //HSACTIVITYSERVERPRIVATE_H |
77 #endif //HSACTIVITYSERVERPRIVATE_H |