|
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 * |
|
16 */ |
|
17 |
|
18 // INCLUDE FILES |
|
19 |
|
20 // SYSTEM INCLUDES |
|
21 #include <rcssession.h> |
|
22 |
|
23 // USER INCLUDES |
|
24 |
|
25 // ---------------------------------------------------------------------------- |
|
26 // StartServer |
|
27 // Starts the server. Used only when the server is implemented as a transient. |
|
28 // ---------------------------------------------------------------------------- |
|
29 TInt StartServer() |
|
30 { |
|
31 return KErrNone; |
|
32 } |
|
33 // ============================== MEMBER FUNCTIONS ============================ |
|
34 |
|
35 // ---------------------------------------------------------------------------- |
|
36 // RCsSession::RCsSession |
|
37 // Constructor |
|
38 // ---------------------------------------------------------------------------- |
|
39 RCsSession::RCsSession() : RSessionBase(), |
|
40 iListResultsBufferPtr (0, 0), |
|
41 iConvResultsBufferPtr (0, 0), |
|
42 iRequestBufferPtr (0, 0), |
|
43 iNotifyResultsBufferPtr (0, 0), |
|
44 iNotifyRequestBufferPtr (0, 0){ |
|
45 } |
|
46 |
|
47 // ---------------------------------------------------------------------------- |
|
48 // RCsSession::Connects to the conversation server |
|
49 // Returns the version number |
|
50 // ---------------------------------------------------------------------------- |
|
51 TInt RCsSession::Connect() |
|
52 { |
|
53 return KErrNone; |
|
54 } |
|
55 |
|
56 // ---------------------------------------------------------------------------- |
|
57 // RCsSession::Version |
|
58 // Returns the version number |
|
59 // ---------------------------------------------------------------------------- |
|
60 TVersion RCsSession::Version() const |
|
61 { |
|
62 TVersion ver(1,2,3); |
|
63 return ver; |
|
64 } |
|
65 |
|
66 // ---------------------------------------------------------------------------- |
|
67 // RCsSession::ShutdownServerL |
|
68 // Shutsdown the CS Server. Synchronous. |
|
69 // ---------------------------------------------------------------------------- |
|
70 void RCsSession::ShutdownServerL() |
|
71 { |
|
72 } |
|
73 |
|
74 // ---------------------------------------------------------------------------- |
|
75 // RCsSession::GetConversationListL |
|
76 // This function sends the request to conversation server |
|
77 // to get Recent Conversation Entry list with display name and contact link |
|
78 // for all stored conversation entry IDs. |
|
79 // ---------------------------------------------------------------------------- |
|
80 void RCsSession::GetConversationListL(TPtr8 /*aResultsBuffer*/, |
|
81 TRequestStatus& /*aStatus*/) |
|
82 { |
|
83 } |
|
84 |
|
85 // ---------------------------------------------------------------------------- |
|
86 // RCsSession::GetConversationUnreadListL |
|
87 // This function sends the request to conversation server |
|
88 // to get Recent unread Conversation Entry list with display name and contact link |
|
89 // for all stored conversation entry IDs. |
|
90 // ---------------------------------------------------------------------------- |
|
91 void RCsSession::GetConversationUnreadListL(TPtr8 /*aOverflow*/, TPtr8 /*aResultsBuffer*/) |
|
92 { |
|
93 } |
|
94 |
|
95 // ---------------------------------------------------------------------------- |
|
96 // RCsSession::GetConversationsL |
|
97 // This function sends the request to conversation server |
|
98 // to get Conversation Entry list for given Conversation Entry ID. |
|
99 // ---------------------------------------------------------------------------- |
|
100 void RCsSession::GetConversationsL(const TDes8& /*aClientConversation*/, |
|
101 TPtr8 /*aResultsBuffer*/, |
|
102 TRequestStatus& /*aStatus*/) |
|
103 { |
|
104 } |
|
105 |
|
106 // ---------------------------------------------------------------------------- |
|
107 // RCsSession::SendNewBufferGetConversationL |
|
108 // This function sends the request to conversation server |
|
109 // to get whole conversation again for the new buffer size |
|
110 // |
|
111 // ---------------------------------------------------------------------------- |
|
112 void RCsSession::SendNewBufferGetConversationL(TPtr8 /*aResultsBuffer*/, |
|
113 TRequestStatus& /*aStatus*/) |
|
114 { |
|
115 } |
|
116 |
|
117 // ---------------------------------------------------------------------------- |
|
118 // RCsSession::GetCachingStatusL |
|
119 // This function sends the request to conversation server |
|
120 // to get caching status. |
|
121 // ---------------------------------------------------------------------------- |
|
122 void RCsSession::GetCachingStatusL(TPtr8 /*aResultsBuffer*/) |
|
123 { |
|
124 } |
|
125 |
|
126 // ---------------------------------------------------------------------------- |
|
127 // RCsSession::GetTotalUnreadCountL |
|
128 // This function sends the request to conversation server |
|
129 // to get caching status. |
|
130 // ---------------------------------------------------------------------------- |
|
131 void RCsSession::GetTotalUnreadCountL(TPtr8 /*aResultsBuffer*/) |
|
132 { |
|
133 } |
|
134 |
|
135 // ---------------------------------------------------------------------------- |
|
136 // RCsSession::SetConversationListChangeObserverL |
|
137 // This function sends the request to conversation server |
|
138 // to set conversation list change observer flag. |
|
139 // ---------------------------------------------------------------------------- |
|
140 void RCsSession::SetConversationListChangeObserverL() |
|
141 { |
|
142 } |
|
143 |
|
144 // ---------------------------------------------------------------------------- |
|
145 // RCsSession::ResetConversationListChangeObserverL |
|
146 // This function sends the request to conversation server |
|
147 // to reset conversation list change observer flag. |
|
148 // ---------------------------------------------------------------------------- |
|
149 void RCsSession::ResetConversationListChangeObserverL() |
|
150 { |
|
151 } |
|
152 |
|
153 // ---------------------------------------------------------------------------- |
|
154 // RCsSession::SetConversationChangeObserverL |
|
155 // This function sends the request to conversation server |
|
156 // to set conversation change observer flag for given |
|
157 // client conversation |
|
158 // ---------------------------------------------------------------------------- |
|
159 void RCsSession::SetConversationChangeObserverL( |
|
160 const TDes8& /*aClientConversation*/) |
|
161 { |
|
162 } |
|
163 |
|
164 // ---------------------------------------------------------------------------- |
|
165 // RCsSession::ResetConversationChangeObserverL |
|
166 // This function sends the request to conversation server |
|
167 // to reset conversation change observer flag for given |
|
168 // client conversation |
|
169 // ---------------------------------------------------------------------------- |
|
170 void RCsSession::ResetConversationChangeObserverL( |
|
171 const TDes8& /*aClientConversation*/) |
|
172 { |
|
173 } |
|
174 |
|
175 // ---------------------------------------------------------------------------- |
|
176 // RCsSession::SetCachingStatusObserverL |
|
177 // This function sends the request to conversation server |
|
178 // to set caching status observer flag. |
|
179 // ---------------------------------------------------------------------------- |
|
180 void RCsSession::SetCachingStatusObserverL() |
|
181 { |
|
182 } |
|
183 |
|
184 // ---------------------------------------------------------------------------- |
|
185 // RCsSession::ResetConversationListChangeObserverL |
|
186 // This function sends the request to conversation server |
|
187 // to reset caching status observer flag. |
|
188 // ---------------------------------------------------------------------------- |
|
189 void RCsSession::ResetCachingStatusObserverL() |
|
190 { |
|
191 } |
|
192 |
|
193 // ---------------------------------------------------------------------------- |
|
194 // RCsSession::RequestChangeEventL |
|
195 // This function sends the request to conversation server |
|
196 // to register for any cache change event. |
|
197 // ---------------------------------------------------------------------------- |
|
198 void RCsSession::RequestChangeEventL(TInt, TPtr8, TPtr8, TRequestStatus&) |
|
199 { |
|
200 } |
|
201 |
|
202 // ---------------------------------------------------------------------------- |
|
203 // RCsSession::RemoveChangeEventL |
|
204 // This function sends the request to conversation server |
|
205 // to deregister for for any cache change event. |
|
206 // ---------------------------------------------------------------------------- |
|
207 void RCsSession::RemoveChangeEventL() |
|
208 { |
|
209 } |
|
210 |
|
211 // ---------------------------------------------------------------------------- |
|
212 // RCsSession::DeleteConversationL |
|
213 // ---------------------------------------------------------------------------- |
|
214 void RCsSession::DeleteConversationL(TInt) |
|
215 { |
|
216 } |
|
217 |
|
218 // ---------------------------------------------------------------------------- |
|
219 // RCsSession::GetConversationIdL |
|
220 // ---------------------------------------------------------------------------- |
|
221 void RCsSession::GetConversationIdL(TInt, TPtr8) |
|
222 { |
|
223 } |
|
224 |
|
225 // ---------------------------------------------------------------------------- |
|
226 // RCsSession::GetConversationIdFromAddressL |
|
227 // ---------------------------------------------------------------------------- |
|
228 void RCsSession::GetConversationIdFromAddressL(TDesC& , TPtr8 ) |
|
229 { |
|
230 } |
|
231 // ---------------------------------------------------------------------------- |
|
232 // RCsSession::MarkConversationReadL |
|
233 // ---------------------------------------------------------------------------- |
|
234 void RCsSession::MarkConversationReadL(TInt) |
|
235 { |
|
236 } |
|
237 |
|
238 // End of File |