|
1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #ifndef SSMSWPPOLICYPROXY_H |
|
17 #define SSMSWPPOLICYPROXY_H |
|
18 |
|
19 #include <e32base.h> |
|
20 #include <ssm/ssmswppolicy.h> |
|
21 #include <ssm/ssmswp.h> |
|
22 |
|
23 #include "ssmswppolicycli.h" |
|
24 |
|
25 /** |
|
26 This class is used for connecting and communicating with the ssmswppolicy server. |
|
27 |
|
28 @internalComponent |
|
29 @released |
|
30 */ |
|
31 NONSHARABLE_CLASS (CSsmSwpPolicyCliSession) : public CBase |
|
32 { |
|
33 public: |
|
34 ~CSsmSwpPolicyCliSession(); |
|
35 static CSsmSwpPolicyCliSession* NewL(); |
|
36 |
|
37 void ConnectL(); |
|
38 void Close(); |
|
39 TBool IsConnected(); |
|
40 |
|
41 void CallSetDllHandleAndInitialize(TInt aPolicyHandle, TRequestStatus& aStatus); |
|
42 TInt CallInitializeCancel(); |
|
43 void CallPrepareCommandList(const TSsmSwp& aSwp, TRequestStatus& aStatus); |
|
44 TInt CallPrepareCommandListCancel(); |
|
45 CSsmCommandList* CallCommandList(); |
|
46 void CallHandleCleReturnValue(const TSsmSwp& aSwp, TInt aError, TInt aSeverity, TRequestStatus& aStatus); |
|
47 TInt CallHandleCleReturnValueCancel(); |
|
48 |
|
49 private: |
|
50 CSsmSwpPolicyCliSession(); |
|
51 |
|
52 private: |
|
53 RSsmSwpPolicySession iSsmSwpPolicySession; |
|
54 }; |
|
55 |
|
56 #endif //SSMSWPPOLICYPROXY_H |