|
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: Implementation of DM Device Dialogs |
|
15 * This is part of syncmlfw. |
|
16 */ |
|
17 |
|
18 #ifndef __DMDEVDIALOG_SESSION_H__ |
|
19 #define __DMDEVDIALOG_SESSION_H__ |
|
20 |
|
21 #include "dmdevicedialogserver.h" |
|
22 |
|
23 class CDmDeviceDialogSession: public CSession2 |
|
24 { |
|
25 friend class CDmDeviceDialogServer; |
|
26 public: |
|
27 /** |
|
28 * Destructor |
|
29 */ |
|
30 virtual ~CDmDeviceDialogSession(); |
|
31 |
|
32 private: |
|
33 /** |
|
34 * Constructor |
|
35 */ |
|
36 CDmDeviceDialogSession(); |
|
37 |
|
38 /** |
|
39 * Provides DM Device dialog Server reference |
|
40 * @param None. |
|
41 * @return CDmDeviceDialogServer reference |
|
42 */ |
|
43 CDmDeviceDialogServer& Server(); |
|
44 |
|
45 /** |
|
46 * Called by the framework to handle the request |
|
47 * @param aMessage |
|
48 * @return None |
|
49 */ |
|
50 void ServiceL(const RMessage2& aMessage); |
|
51 |
|
52 /** |
|
53 * Called from ServiceL to handle the request |
|
54 * @param aMessage |
|
55 * @return None |
|
56 */ |
|
57 void DispatchMessageL(const RMessage2& aMessage); |
|
58 |
|
59 /** |
|
60 * Called when ServiceL leaves |
|
61 * @param aMessage |
|
62 * @param aError |
|
63 * @return None |
|
64 */ |
|
65 void ServiceError(const RMessage2 &aMessage, TInt aError); |
|
66 |
|
67 /** |
|
68 * Checks whether the session started client is secured or not |
|
69 * @param aMessage |
|
70 * @return TBool |
|
71 */ |
|
72 TBool CheckClientSecureId( const RMessage2 &aMessage ); |
|
73 |
|
74 private: |
|
75 RMessage2 iMessage; |
|
76 }; |
|
77 |
|
78 |
|
79 #endif |