|
1 /* |
|
2 * Copyright (c) 2004-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: |
|
15 * Name : CSipCRServer.h |
|
16 * Part of : SIP Client Resolver |
|
17 * Version : 1.0 |
|
18 * |
|
19 */ |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 /** |
|
25 @internalComponent |
|
26 */ |
|
27 |
|
28 #ifndef CSIPCRSERVER_H |
|
29 #define CSIPCRSERVER_H |
|
30 |
|
31 #include <e32base.h> |
|
32 #include "SipCRServer.pan" |
|
33 |
|
34 class CSIPCRITCUtility; |
|
35 class CSIPCRRoutingTable; |
|
36 class CSIPClientResolver; |
|
37 class CSIPCRServerCloseTimer; |
|
38 class CSIPResolvedClient; |
|
39 class CSIPResolvedClient2; |
|
40 |
|
41 class CSIPCRServer : public CPolicyServer |
|
42 { |
|
43 public : |
|
44 |
|
45 static CSIPCRServer* NewL (); |
|
46 static CSIPCRServer* NewLC (); |
|
47 ~CSIPCRServer (); |
|
48 |
|
49 void IncrementSessions (); |
|
50 void DecrementSessions (); |
|
51 CSIPCRITCUtility& ITCUtility (); |
|
52 CSIPCRRoutingTable& RoutingTable (); |
|
53 CSIPClientResolver& ClientResolver (); |
|
54 CSIPResolvedClient* LoadPlugin1LC(const TUid& aClientUid, |
|
55 const TUid& aResolverUid); |
|
56 |
|
57 CSIPResolvedClient2* LoadPlugin2LC(const TUid& aImplementationUid); |
|
58 |
|
59 void RoutingEntryAddedL(const TUid& aUid); |
|
60 |
|
61 protected: // From CActive |
|
62 |
|
63 TInt RunError (TInt aError); |
|
64 |
|
65 private: // From CServer2 |
|
66 |
|
67 CSession2* NewSessionL(const TVersion &aVersion, |
|
68 const RMessage2& aMessage) const; |
|
69 |
|
70 private: // Second phase constructors |
|
71 |
|
72 CSIPCRServer (TInt aPriority); |
|
73 void ConstructL (); |
|
74 |
|
75 private: // Data |
|
76 |
|
77 CSIPCRITCUtility* iItcUtility; |
|
78 CSIPCRRoutingTable* iRoutingTable; |
|
79 CSIPClientResolver* iClientResolver; |
|
80 CSIPCRServerCloseTimer* iCloseTimer; |
|
81 CActiveScheduler* iActiveScheduler; |
|
82 TUint iSessionCount; |
|
83 }; |
|
84 |
|
85 #endif // CSIPCRSERVER_H |
|
86 |
|
87 // End of File |