|
1 /* |
|
2 * Copyright (c) 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 the License "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 * |
|
16 */ |
|
17 |
|
18 #ifndef __RSVPSNAPDRIVER_H |
|
19 #define __RSVPSNAPDRIVER_H |
|
20 |
|
21 #include <e32cmn.h> // for RBusLogicalChannel |
|
22 |
|
23 class TCapsSVPSnapDriver |
|
24 { |
|
25 public: |
|
26 TVersion iVersion; |
|
27 }; |
|
28 |
|
29 _LIT(KSVPSnapDriverName,"SVP Snapshot Driver"); |
|
30 _LIT(KSVPSnapDriverLDD, "svpsnapdriver.ldd"); |
|
31 |
|
32 // Version information |
|
33 const TInt KMajorVersionNumber=0; |
|
34 const TInt KMinorVersionNumber=0; |
|
35 const TInt KBuildVersionNumber=1; |
|
36 |
|
37 class RSVPSnapDriver : public RBusLogicalChannel |
|
38 { |
|
39 public: |
|
40 enum TControl |
|
41 { |
|
42 EDummy = 0, |
|
43 ESaveVM, |
|
44 ELoadVM |
|
45 }; |
|
46 |
|
47 public: |
|
48 #ifndef __KERNEL_MODE__ |
|
49 TInt Open(void); |
|
50 TInt SaveVM(const TDesC8& aData); |
|
51 TInt LoadVM(const TDesC8& aData); |
|
52 |
|
53 private: |
|
54 inline TInt DoSVPRequest(TInt aReqNo, TAny * a1) |
|
55 { |
|
56 TRequestStatus status; |
|
57 DoRequest(aReqNo, status, a1); |
|
58 User::WaitForRequest(status); |
|
59 return status.Int(); |
|
60 } |
|
61 #endif |
|
62 }; |
|
63 |
|
64 #endif |