|
1 /* |
|
2 * Copyright (c) 2002-2005 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 |
|
19 #ifndef CACCSRVSUBSETTINGS_H |
|
20 #define CACCSRVSUBSETTINGS_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32base.h> |
|
24 #include "AsyProxyAPI.h" |
|
25 #include "AccSrvSubBase.h" |
|
26 |
|
27 // CONSTANTS |
|
28 |
|
29 // MACROS |
|
30 |
|
31 // DATA TYPES |
|
32 |
|
33 // FUNCTION PROTOTYPES |
|
34 |
|
35 // FORWARD DECLARATIONS |
|
36 class CAccSrvMainSession; |
|
37 |
|
38 // CLASS DECLARATION |
|
39 /** |
|
40 * Sub session class for Accessory Settings. |
|
41 * |
|
42 * @lib AccServer |
|
43 * @since S60 3.1 |
|
44 */ |
|
45 NONSHARABLE_CLASS( CAccSrvSubSettings ) : public CAccSrvSubBase |
|
46 { |
|
47 public: // Constructors and destructor |
|
48 |
|
49 /** |
|
50 * Two-phased constructor. |
|
51 */ |
|
52 static CAccSrvSubSettings* NewL( CASYProxyAPI* aSession, |
|
53 CAccSrvConnectionController* aConnectionController, |
|
54 CAccSrvServerModel* aServerModel ); |
|
55 |
|
56 /** |
|
57 * Destructor. |
|
58 */ |
|
59 ~CAccSrvSubSettings(); |
|
60 |
|
61 public: // New functions |
|
62 |
|
63 public: // Functions from base classes |
|
64 |
|
65 /** |
|
66 * From CAccSrvSubBase |
|
67 * Handles received messages from client. |
|
68 * @since S60 3.1 |
|
69 * @param aMessage Client request. |
|
70 * @return void |
|
71 */ |
|
72 void DispatchMessageL( const RMessage2& aMessage ); |
|
73 |
|
74 protected: // New functions |
|
75 |
|
76 /** |
|
77 * C++ default constructor. |
|
78 */ |
|
79 CAccSrvSubSettings( CASYProxyAPI* aSession, |
|
80 CAccSrvConnectionController* aConnectionController, |
|
81 CAccSrvServerModel* aServerModel ); |
|
82 |
|
83 /** |
|
84 * Symbian 2nd phase constructor. |
|
85 */ |
|
86 void ConstructL(); |
|
87 |
|
88 |
|
89 protected: // Functions from base classes |
|
90 |
|
91 private: // New methods |
|
92 |
|
93 /** |
|
94 * Returns supported HW devices. HW device is an accessory that can't |
|
95 * be detected properly without UI setting. |
|
96 * |
|
97 * @since S60 3.1 |
|
98 * @param aMessage Client request. |
|
99 * @return void |
|
100 */ |
|
101 void GetSupportedHWDevicesL( const RMessage2& aMessage ); |
|
102 |
|
103 /** |
|
104 * Sets HW device. Used to detect accessories that require UI setting. |
|
105 * |
|
106 * @since S60 3.1 |
|
107 * @param aMessage Client request. |
|
108 * @return void |
|
109 */ |
|
110 void SetHWDeviceSettingsL( const RMessage2& aMessage ); |
|
111 |
|
112 /** |
|
113 * Returns HW devices. |
|
114 * |
|
115 * @since S60 3.1 |
|
116 * @param aMessage Client request. |
|
117 * @return void |
|
118 */ |
|
119 void GetHWDeviceSettingsL( const RMessage2& aMessage ); |
|
120 |
|
121 /** |
|
122 * Sets accessory mode related setting. |
|
123 * |
|
124 * @since S60 3.1 |
|
125 * @param aMessage Client request. |
|
126 * @return void |
|
127 */ |
|
128 void SetAccessoryModeSettingL( const RMessage2& aMessage ); |
|
129 |
|
130 /** |
|
131 * Returns accessory mode related setting. |
|
132 * |
|
133 * @since S60 3.1 |
|
134 * @param aMessage Client request. |
|
135 * @return void |
|
136 */ |
|
137 void GetAccessoryModeSettingL( const RMessage2& aMessage ); |
|
138 |
|
139 /** |
|
140 * Sets several accessory mode related settings. |
|
141 * |
|
142 * @since S60 3.1 |
|
143 * @param aMessage Client request. |
|
144 * @return void |
|
145 */ |
|
146 void SetAccessoryModeSettingsL( const RMessage2& aMessage ); |
|
147 |
|
148 /** |
|
149 * Returns several accessory mode related settings. |
|
150 * |
|
151 * @since S60 3.1 |
|
152 * @param aMessage Client request. |
|
153 * @return void |
|
154 */ |
|
155 void GetAccessoryModeSettingsL( const RMessage2& aMessage ); |
|
156 |
|
157 public: // Data |
|
158 |
|
159 protected: // Data |
|
160 |
|
161 private: // Data |
|
162 |
|
163 // Bit mask for device type |
|
164 TUint32 iSettings; |
|
165 |
|
166 public: // Friend classes |
|
167 |
|
168 protected: // Friend classes |
|
169 |
|
170 private: // Friend classes |
|
171 }; |
|
172 |
|
173 #endif // CACCSRVSUBSETTINGS_H |
|
174 |
|
175 // End of File |
|
176 |