1 /* |
|
2 * Copyright (c) 2008-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 * This class implements a non-native test SIF plug-in |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 /** |
|
21 @file |
|
22 //@internalComponent |
|
23 */ |
|
24 |
|
25 #ifndef TESTNONNATIVEPLUGIN_H |
|
26 #define TESTNONNATIVEPLUGIN_H |
|
27 |
|
28 #include <usif/sif/sifplugin.h> |
|
29 #include <usif/scr/screntries.h> |
|
30 #include <e32base.h> |
|
31 #include <e32std.h> |
|
32 |
|
33 namespace Usif |
|
34 { |
|
35 |
|
36 NONSHARABLE_CLASS(CTestNonNativePlugin) : public CSifPlugin |
|
37 { |
|
38 public: |
|
39 static CTestNonNativePlugin* NewL(); |
|
40 ~CTestNonNativePlugin(); |
|
41 |
|
42 // MSIFPlugin interface |
|
43 void GetComponentInfo(const TDesC& aFileName, const TSecurityContext& aSecurityContext, |
|
44 CComponentInfo& aComponentInfo, TRequestStatus& aStatus); |
|
45 |
|
46 void GetComponentInfo(RFile& aFileHandle, const TSecurityContext& aSecurityContext, |
|
47 CComponentInfo& aComponentInfo, TRequestStatus& aStatus); |
|
48 |
|
49 void Install(const TDesC& aFileName, const TSecurityContext& aSecurityContext, |
|
50 const COpaqueNamedParams& aInputParams, COpaqueNamedParams& aOutputParams, |
|
51 TRequestStatus& aStatus); |
|
52 |
|
53 void Install(RFile& aFileHandle, const TSecurityContext& aSecurityContext, |
|
54 const COpaqueNamedParams& aInputParams, COpaqueNamedParams& aOutputParams, |
|
55 TRequestStatus& aStatus); |
|
56 |
|
57 virtual void Uninstall(TComponentId aComponentId, const TSecurityContext& aSecurityContext, |
|
58 const COpaqueNamedParams& aInputParams, COpaqueNamedParams& aOutputParams, |
|
59 TRequestStatus& aStatus); |
|
60 |
|
61 virtual void Activate(TComponentId aComponentId, const TSecurityContext& aSecurityContext, |
|
62 TRequestStatus& aStatus); |
|
63 |
|
64 virtual void Deactivate(TComponentId aComponentId, const TSecurityContext& aSecurityContext, |
|
65 TRequestStatus& aStatus); |
|
66 |
|
67 void CancelOperation(); |
|
68 private: |
|
69 CTestNonNativePlugin() {} |
|
70 void ConstructL(); |
|
71 CTestNonNativePlugin(const CTestNonNativePlugin &); |
|
72 CTestNonNativePlugin & operator =(const CTestNonNativePlugin &); |
|
73 }; |
|
74 } // end namespace Usif |
|
75 |
|
76 #endif // TESTNONNATIVEPLUGIN_H |
|