|
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: Server allows registering IAP to be used as default connection |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CMPMDEFAULTCONNSERVER_H |
|
19 #define CMPMDEFAULTCONNSERVER_H |
|
20 |
|
21 #include <e32base.h> |
|
22 |
|
23 #include "mpmserver.h" |
|
24 |
|
25 class CMPMServer; |
|
26 |
|
27 /** |
|
28 * Server allows registering IAP to be used as default connection. |
|
29 * Server allows WLAN Active Idle plug-in to register the started |
|
30 * WLAN IAP as default connection. Only one client is served at the time. |
|
31 * |
|
32 * |
|
33 * @lib MPMServer.exe |
|
34 * @since S60 v3.2 |
|
35 */ |
|
36 class CMPMDefaultConnServer : public CPolicyServer |
|
37 { |
|
38 |
|
39 public: |
|
40 |
|
41 /** |
|
42 * Two-phased constructor. |
|
43 */ |
|
44 static CMPMDefaultConnServer* NewL( CMPMServer* aMPMServer ); |
|
45 |
|
46 /** |
|
47 * Destructor. |
|
48 */ |
|
49 virtual ~CMPMDefaultConnServer(); |
|
50 |
|
51 /** |
|
52 * Creates new session |
|
53 * |
|
54 * @since S60 v3.2 |
|
55 * @return MPMServer object |
|
56 */ |
|
57 CMPMServer* MPMServer(); |
|
58 |
|
59 // from base class CServer2 |
|
60 |
|
61 |
|
62 /** |
|
63 * From CServer2 |
|
64 * Creates new session |
|
65 * |
|
66 * @since S60 v3.2 |
|
67 * @param aVersion Version information |
|
68 * @param aMessage Message, not used here |
|
69 */ |
|
70 CSession2* NewSessionL( const TVersion& aVersion, |
|
71 const RMessage2& aMessage) const; |
|
72 |
|
73 private: |
|
74 |
|
75 CMPMDefaultConnServer( CMPMServer* aMPMServer ); |
|
76 |
|
77 void ConstructL(); |
|
78 |
|
79 |
|
80 private: // data |
|
81 |
|
82 /** |
|
83 * Reference to MPM Server for storing the default IAP. |
|
84 * Not own. |
|
85 */ |
|
86 CMPMServer* iMPMServer; |
|
87 |
|
88 }; |
|
89 |
|
90 #endif // CMPMDEFAULTCONNSERVER_H |