|
1 /* |
|
2 * Copyright (c) 2007 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: Client side class to hold conversation change observer |
|
15 * request received for specific client conversation |
|
16 * |
|
17 */ |
|
18 |
|
19 #ifndef __C_CS_CONVERSATION_CHANGE_OBSERVER_H__ |
|
20 #define __C_CS_CONVERSATION_CHANGE_OBSERVER_H__ |
|
21 |
|
22 // SYSTEM INCLUDES |
|
23 |
|
24 //USER INCLUDES |
|
25 #include <ccsdefs.h> |
|
26 |
|
27 // FORWARD CLASS |
|
28 class CCsClientConversation; |
|
29 class MCsConversationChangeObserver; |
|
30 |
|
31 // CLASS DECLARATION |
|
32 /** |
|
33 * This is a client side class to hold the conversation change observer |
|
34 * request |
|
35 * @since S60 v5.0 |
|
36 */ |
|
37 class CCsConversationChangeObserver: public CBase |
|
38 { |
|
39 public: |
|
40 |
|
41 /** |
|
42 * Two phase construction |
|
43 * @return Instance of CCsConversationChangeObserver |
|
44 */ |
|
45 static CCsConversationChangeObserver* NewL(); |
|
46 |
|
47 /** |
|
48 * Destructor |
|
49 */ |
|
50 ~CCsConversationChangeObserver(); |
|
51 |
|
52 public: |
|
53 |
|
54 /** |
|
55 * ClientConversation |
|
56 * Provides the client conversation |
|
57 * @return pointer to client conversation |
|
58 */ |
|
59 CCsClientConversation* ClientConversation() const; |
|
60 |
|
61 /** |
|
62 * SetClientConversationL |
|
63 * Sets the client conversation of this object |
|
64 * @param aConversation The client conversation |
|
65 */ |
|
66 void SetClientConversationL(const CCsClientConversation& aConversation); |
|
67 |
|
68 /** |
|
69 * ConversationChangeObserver |
|
70 * Provides the client conversation |
|
71 * @return pointer to ConversationChangeObserver |
|
72 */ |
|
73 MCsConversationChangeObserver* ConversationChangeObserver() const; |
|
74 |
|
75 /** |
|
76 * SetConversationChangeObserverL |
|
77 * Sets the Conversation Change Observer of this object |
|
78 * @param aObserver The Conversation Change Observer |
|
79 */ |
|
80 void SetConversationChangeObserverL(MCsConversationChangeObserver* aObserver); |
|
81 |
|
82 private: // functions |
|
83 |
|
84 /** |
|
85 * Default Constructor |
|
86 */ |
|
87 CCsConversationChangeObserver(); |
|
88 |
|
89 /** |
|
90 * Second phase constructor |
|
91 */ |
|
92 void ConstructL(); |
|
93 |
|
94 private: // data members |
|
95 |
|
96 /** |
|
97 * iClientConversation |
|
98 * Client Conversation received from application |
|
99 * Own. |
|
100 */ |
|
101 CCsClientConversation* iClientConversation; |
|
102 |
|
103 /** |
|
104 * iObserver |
|
105 * Conversation change observer object received from application |
|
106 * NotOwned. |
|
107 */ |
|
108 MCsConversationChangeObserver* iObserver; |
|
109 }; |
|
110 |
|
111 #endif // __C_CS_CONVERSATION_CHANGE_OBSERVER_H__ |