equal
deleted
inserted
replaced
19 #include <e32svr.h> |
19 #include <e32svr.h> |
20 #include <e32math.h> |
20 #include <e32math.h> |
21 |
21 |
22 #include "vpnmanagerserver.h" |
22 #include "vpnmanagerserver.h" |
23 #include "vpnmanagersession.h" |
23 #include "vpnmanagersession.h" |
24 #include "requestdispatcher.h" |
24 #include "vpnapiservant.h" |
25 |
25 |
26 |
26 |
27 const TUint CVpnManagerServer::iVpnManRangeCount = 3; |
27 const TUint CVpnManagerServer::iVpnManRangeCount = 3; |
28 |
28 |
29 const TInt CVpnManagerServer::iVpnManRanges[iVpnManRangeCount] = |
29 const TInt CVpnManagerServer::iVpnManRanges[iVpnManRangeCount] = |
58 { |
58 { |
59 } |
59 } |
60 |
60 |
61 CVpnManagerServer::~CVpnManagerServer() |
61 CVpnManagerServer::~CVpnManagerServer() |
62 { |
62 { |
63 delete iRequestDispatcher; |
63 delete iVpnApiServant; |
64 iFs.Close(); |
64 iFs.Close(); |
65 } |
65 } |
66 |
66 |
67 CVpnManagerServer* CVpnManagerServer::NewL() |
67 CVpnManagerServer* CVpnManagerServer::NewL() |
68 { |
68 { |
81 |
81 |
82 void CVpnManagerServer::ConstructL() |
82 void CVpnManagerServer::ConstructL() |
83 { |
83 { |
84 User::LeaveIfError(iFs.Connect()); |
84 User::LeaveIfError(iFs.Connect()); |
85 User::LeaveIfError(iFs.CreatePrivatePath(EDriveC)); |
85 User::LeaveIfError(iFs.CreatePrivatePath(EDriveC)); |
86 iRequestDispatcher = CRequestDispatcher::NewL(iFs); |
86 iVpnApiServant = CVpnApiServant::NewL(iFs); |
87 StartL(KVpnManagerServer); |
87 StartL(KVpnManagerServer); |
88 } |
88 } |
89 |
89 |
90 CSession2* CVpnManagerServer::NewSessionL( |
90 CSession2* CVpnManagerServer::NewSessionL( |
91 const TVersion &aVersion, |
91 const TVersion &aVersion, |
100 User::Leave(KErrNotSupported); |
100 User::Leave(KErrNotSupported); |
101 } |
101 } |
102 |
102 |
103 // Make new session |
103 // Make new session |
104 return CVpnManagerSession::NewL(*const_cast<CVpnManagerServer*>(this), |
104 return CVpnManagerSession::NewL(*const_cast<CVpnManagerServer*>(this), |
105 *iRequestDispatcher); |
105 *iVpnApiServant); |
106 } |
106 } |
107 |
107 |
108 void CVpnManagerServer::IncrementSessions() |
108 void CVpnManagerServer::IncrementSessions() |
109 { |
109 { |
110 iSessionCount++; |
110 iSessionCount++; |