|
1 /** @file |
|
2 * Copyright (c) 2005-2006 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: CUpnpConnectionManager |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef C_CUPNPCONNMANAGER_H |
|
19 #define C_CUPNPCONNMANAGER_H |
|
20 |
|
21 #include <e32base.h> |
|
22 #include "upnpconnmanagercommon.h" |
|
23 #include <upnpsymbianserverbase.h> |
|
24 |
|
25 class CUpnpConnManagerEngine; |
|
26 |
|
27 /** |
|
28 * Connection Manager Server |
|
29 * @since S60 5.0 |
|
30 */ |
|
31 class CUpnpConnectionManager : public CUpnpSymbianServerBase |
|
32 { |
|
33 public : // New methods |
|
34 /** |
|
35 * Create a CUpnpConnectionManager object using two phase construction, |
|
36 * and return a pointer to the created object, leaving a pointer to the |
|
37 * object on the cleanup stack |
|
38 * @result pointer to created CUpnpConnectionManager object |
|
39 */ |
|
40 static CUpnpSymbianServerBase* NewLC(); |
|
41 |
|
42 /** |
|
43 * Destroy the object and release all memory objects |
|
44 */ |
|
45 ~CUpnpConnectionManager(); |
|
46 |
|
47 private: // from CUpnpSymbianServerBase |
|
48 |
|
49 const TDesC& ServerName() const; |
|
50 |
|
51 private: // New methods |
|
52 |
|
53 /** |
|
54 * Perform the first phase of two phase construction |
|
55 */ |
|
56 CUpnpConnectionManager(); |
|
57 |
|
58 /** |
|
59 * Perform the second phase construction of a CUpnpConnectionManager object |
|
60 */ |
|
61 void ConstructL(); |
|
62 |
|
63 private: // From CUpnpSymbianServer |
|
64 |
|
65 /** |
|
66 * Create a time server session, and return a pointer to the created object |
|
67 * @result pointer to new session |
|
68 */ |
|
69 CSession2* NewSessionL( const RMessage2& aMessage ) const; |
|
70 |
|
71 /** |
|
72 * Returns version that is supported by this server. |
|
73 */ |
|
74 virtual TVersion SupportedVersion() const; |
|
75 |
|
76 /** |
|
77 * Process any errors |
|
78 * @param aError the leave code reported. |
|
79 * @result return KErrNone if leave is handled |
|
80 */ |
|
81 TInt RunError( TInt aError ); |
|
82 |
|
83 private: |
|
84 |
|
85 /* @var iEngine Engine of the server */ |
|
86 CUpnpConnManagerEngine* iEngine; |
|
87 |
|
88 }; |
|
89 |
|
90 |
|
91 #endif // C_CUPNPCONNMANAGER_H |