|
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 CTZSWIPLUGINTESTER_H |
|
17 #define CTZSWIPLUGINTESTER_H |
|
18 |
|
19 #include <e32base.h> // For CActive, link against: euser.lib |
|
20 #include <e32std.h> // For RTimer, link against: euser.lib |
|
21 #include <f32file.h> |
|
22 #include <e32property.h> |
|
23 |
|
24 _LIT(KSwiTzLogDir, "c:\\logs\\Tz\\"); |
|
25 _LIT(KSwiTzLogFile, "c:\\logs\\Tz\\TzSwiObserver.log"); |
|
26 |
|
27 class CCTzSwiPluginTester : public CActive |
|
28 { |
|
29 public: |
|
30 IMPORT_C ~CCTzSwiPluginTester(); |
|
31 IMPORT_C static CCTzSwiPluginTester* NewL(); |
|
32 IMPORT_C static CCTzSwiPluginTester* NewLC(); |
|
33 IMPORT_C TInt InstallSIS(const TDesC& aSisFile); |
|
34 IMPORT_C void InstallSIS(const TDesC& aSisFile, TUint aNotifyType, TRequestStatus& aReqStatus); |
|
35 IMPORT_C TInt UninstallSIS(const TDesC& aApplicationUID, const TDesC& aPackageName, const TDesC& aVendorId); |
|
36 IMPORT_C void UninstallSIS(const TDesC& aApplicationUID, const TDesC& aPackageName, const TDesC& aVendorId, TUint aNotifyType, TRequestStatus& aReqStatus); |
|
37 |
|
38 enum TNotifyType |
|
39 { |
|
40 EPropertyRules = 0, |
|
41 EPropertyNames, |
|
42 EFileLog |
|
43 }; |
|
44 private: |
|
45 CCTzSwiPluginTester(); |
|
46 void ConstructL(); |
|
47 private: |
|
48 // From CActive |
|
49 void RunL(); |
|
50 void DoCancel(); |
|
51 TInt RunError(TInt aError); |
|
52 private: |
|
53 RProperty iPropertyDb; |
|
54 RProperty iPropertyLoc; |
|
55 RFs iFs; |
|
56 TRequestStatus* iReqStatus; |
|
57 TNotifyType iNotifyType; |
|
58 }; // class CCTzSwiPluginTester |
|
59 |
|
60 #endif // CTZSWIPLUGINTESTER_H |