equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
22 // INCLUDES |
22 // INCLUDES |
23 #include <e32std.h> |
23 #include <e32std.h> |
24 #include <e32base.h> |
24 #include <e32base.h> |
25 #include <cchclientserver.h> |
25 #include <cchclientserver.h> |
26 #include "cchwakeupeventobserver.h" |
26 #include "cchwakeupeventobserver.h" |
|
27 #include "cchconnmonhandlernotifier.h" |
27 |
28 |
28 // CONSTANTS |
29 // CONSTANTS |
29 |
30 |
30 // Security Policy |
31 // Security Policy |
31 const TUint KCCHRangeCount = 2; |
32 const TUint KCCHRangeCount = 2; |
86 * The server of CCH services. |
87 * The server of CCH services. |
87 * @lib cchserver.exe |
88 * @lib cchserver.exe |
88 * @since S60 3.2 |
89 * @since S60 3.2 |
89 */ |
90 */ |
90 NONSHARABLE_CLASS( CCCHServerBase ) : public CPolicyServer, |
91 NONSHARABLE_CLASS( CCCHServerBase ) : public CPolicyServer, |
91 public MCchWakeUpEventObserver |
92 public MCchWakeUpEventObserver, |
|
93 public MCCHConnMonHandlerNotifier |
92 { |
94 { |
93 |
95 |
94 public: // Constructors and destructor |
96 public: // Constructors and destructor |
95 |
97 |
96 /** |
98 /** |
233 * (From MCchWakeUpEventObserver) Creates a new session for a client. |
235 * (From MCchWakeUpEventObserver) Creates a new session for a client. |
234 * |
236 * |
235 * Switch server to monitoring mode |
237 * Switch server to monitoring mode |
236 */ |
238 */ |
237 void WakeUp(); |
239 void WakeUp(); |
238 |
240 |
|
241 private: // From MCCHConnMonHandlerNotifier |
|
242 |
|
243 void NetworkScanningCompletedL( const TConnMonSNAPInfo& aSNAPs, TInt aError ); |
|
244 |
|
245 void SNAPsAvailabilityChanged( TInt aError ); |
|
246 |
239 private: |
247 private: |
240 |
248 |
241 /** |
249 /** |
242 * C++ default constructor. |
250 * C++ default constructor. |
243 */ |
251 */ |
267 |
275 |
268 /** |
276 /** |
269 * Release all dynamic memory allocations and other resources |
277 * Release all dynamic memory allocations and other resources |
270 */ |
278 */ |
271 void ReleaseAllResources(); |
279 void ReleaseAllResources(); |
272 |
280 |
|
281 /** |
|
282 * Starts service |
|
283 */ |
|
284 void ServiceStartupL(); |
|
285 |
273 template <class T>T& ConstructObject( CCCHServerBase* aThis, T*& aObject ); |
286 template <class T>T& ConstructObject( CCCHServerBase* aThis, T*& aObject ); |
274 template <class T>T& ConstructObject( T*& aObject ); |
287 template <class T>T& ConstructObject( T*& aObject ); |
275 |
288 |
276 |
289 |
277 private: // data |
290 private: // data |