|
1 /* |
|
2 * Copyright (c) 2005-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 : CSipCSServer.h |
|
16 * Part of : SIPServerCore |
|
17 * Version : SIP/4.0 |
|
18 * |
|
19 */ |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 /** |
|
25 @internalComponent |
|
26 */ |
|
27 |
|
28 #ifndef CSIPCSSERVER_H |
|
29 #define CSIPCSSERVER_H |
|
30 |
|
31 #include <e32base.h> |
|
32 #include "SipCSServer.pan" |
|
33 #include "sipconnection.h" |
|
34 |
|
35 class CSipServerCore; |
|
36 class MTransactionOwner; |
|
37 |
|
38 |
|
39 class CSipCSServer : public CPolicyServer |
|
40 { |
|
41 public : |
|
42 |
|
43 static CSipCSServer* NewL(CSipServerCore& aServerCore); |
|
44 static CSipCSServer* NewLC(CSipServerCore& aServerCore); |
|
45 ~CSipCSServer(); |
|
46 |
|
47 void ConnectionStateChangedL(TUint32 aIapId, |
|
48 CSIPConnection::TState aState); |
|
49 |
|
50 MTransactionOwner* FindOwner(TUint32 aIapId, const TUid& aUid); |
|
51 |
|
52 protected: // From CActive |
|
53 |
|
54 TInt RunError(TInt aError); |
|
55 |
|
56 protected: // From CServer2 |
|
57 |
|
58 CSession2* NewSessionL(const TVersion &aVersion, |
|
59 const RMessage2& aMessage) const; |
|
60 |
|
61 protected: // From CPolicyServer |
|
62 |
|
63 TCustomResult CustomSecurityCheckL(const RMessage2 &aMsg, |
|
64 TInt &aAction, |
|
65 TSecurityInfo &aMissing); |
|
66 |
|
67 private: // Constructors |
|
68 |
|
69 CSipCSServer(TInt aPriority, CSipServerCore& aServerCore); |
|
70 void ConstructL(); |
|
71 |
|
72 private: // Data |
|
73 |
|
74 CSipServerCore& iServerCore; |
|
75 TSecurityInfo iSecurityInfo; |
|
76 }; |
|
77 |
|
78 #endif // CSIPCSSERVER_H |
|
79 |
|
80 // End of File |