|
1 /* |
|
2 * Copyright (c) 2008 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: handler for saving and deleting flash messages |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef FLASH_MSG_NOTIFIER_H |
|
19 #define FLASH_MSG_NOTIFIER_H |
|
20 |
|
21 // INCLUDE FILES |
|
22 #include <msvapi.h> |
|
23 |
|
24 // FORWARD DECLARATIONS |
|
25 class CMsvSession; |
|
26 class MMsvSessionObserver; |
|
27 class FlashMsgNotifier; |
|
28 class CCSRequestHandler; |
|
29 |
|
30 /** |
|
31 * @class MsgStoreHandler |
|
32 * handler for saving and deleting flash messages |
|
33 */ |
|
34 class FlashMsgNotifierPrivate: public CBase, public MMsvSessionObserver |
|
35 { |
|
36 public: |
|
37 |
|
38 /** |
|
39 * Constructor. |
|
40 */ |
|
41 explicit FlashMsgNotifierPrivate(FlashMsgNotifier* notifier); |
|
42 |
|
43 /** |
|
44 * Destructor |
|
45 */ |
|
46 virtual ~FlashMsgNotifierPrivate(); |
|
47 |
|
48 /** |
|
49 * DeleteMessage |
|
50 * @param aMsgId TMsvId |
|
51 */ |
|
52 void DeleteMessage(TMsvId aMsgId); |
|
53 |
|
54 /** |
|
55 * SaveMessageL |
|
56 * @param aMsgId TMsvId |
|
57 */ |
|
58 void SaveMessageL(TMsvId aMsgId); |
|
59 |
|
60 /** |
|
61 * GetConversationIdFromAddressL |
|
62 * @param aContactAddress |
|
63 * @return conversationId |
|
64 */ |
|
65 TInt GetConversationIdFromAddressL(TDesC& aContactAddress); |
|
66 |
|
67 public: |
|
68 |
|
69 /** |
|
70 * From MMsvSessionObserver. HandleSessionEventL. |
|
71 */ |
|
72 void HandleSessionEventL(TMsvSessionEvent aEvent, TAny* aArg1, TAny* aArg2, TAny* aArg3); |
|
73 |
|
74 private: |
|
75 /** |
|
76 * Initializes the MsgStoreHandler class. |
|
77 */ |
|
78 void InitL(); |
|
79 |
|
80 private: |
|
81 /** |
|
82 * Owned. Msv Session |
|
83 */ |
|
84 CMsvSession* iMsvSession; |
|
85 |
|
86 /** |
|
87 * Conversation server client |
|
88 * Owned |
|
89 */ |
|
90 CCSRequestHandler* iRequestHandler; |
|
91 |
|
92 /** |
|
93 * Not Owned. Message notifier. |
|
94 */ |
|
95 FlashMsgNotifier* iNotifier; |
|
96 |
|
97 }; |
|
98 |
|
99 #endif // FLASH_MSG_NOTIFIER_H |
|
100 // EOF |