|
1 /* |
|
2 * Copyright (c) 2010 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 "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: Header file of the CSisxSifPlugin class. CSisxSifPlugin |
|
15 * implements ECom SIF::CSifPlugin interface for native |
|
16 * SISX installation. |
|
17 * |
|
18 */ |
|
19 |
|
20 #ifndef C_SISXSIFPLUGIN_H |
|
21 #define C_SISXSIFPLUGIN_H |
|
22 |
|
23 #include <usif/sif/sifplugin.h> // CSifPlugin |
|
24 |
|
25 namespace Usif |
|
26 { |
|
27 class CSisxSifPluginActiveImpl; |
|
28 |
|
29 |
|
30 /** |
|
31 * SISX SIF plugin |
|
32 * Universal Software Install Framework (USIF) plugin for native SISX |
|
33 * installation. CSisxSifPlugin is an ECom plugin that provides native |
|
34 * SISX install/uninstall functionality for USIF. |
|
35 */ |
|
36 class CSisxSifPlugin : public CSifPlugin |
|
37 { |
|
38 public: // constructors and destructor |
|
39 static CSisxSifPlugin* NewL(); |
|
40 ~CSisxSifPlugin(); |
|
41 |
|
42 public: // from CSifPlugin |
|
43 void GetComponentInfo( const TDesC& aFileName, const TSecurityContext& aSecurityContext, |
|
44 CComponentInfo& aComponentInfo, TRequestStatus& aStatus ); |
|
45 void GetComponentInfo( RFile& aFileHandle, const TSecurityContext& aSecurityContext, |
|
46 CComponentInfo& aComponentInfo, TRequestStatus& aStatus ); |
|
47 void Install( const TDesC& aFileName, const TSecurityContext& aSecurityContext, |
|
48 const COpaqueNamedParams& aArguments, COpaqueNamedParams& aResults, |
|
49 TRequestStatus& aStatus ); |
|
50 void Install( RFile& aFileHandle, const TSecurityContext& aSecurityContext, |
|
51 const COpaqueNamedParams& aArguments, COpaqueNamedParams& aResults, |
|
52 TRequestStatus& aStatus ); |
|
53 void Uninstall( TComponentId aComponentId, const TSecurityContext& aSecurityContext, |
|
54 const COpaqueNamedParams& aArguments, COpaqueNamedParams& aResults, |
|
55 TRequestStatus& aStatus ); |
|
56 void Activate( TComponentId aComponentId, const TSecurityContext& aSecurityContext, |
|
57 TRequestStatus& aStatus ); |
|
58 void Deactivate( TComponentId aComponentId, const TSecurityContext& aSecurityContext, |
|
59 TRequestStatus& aStatus ); |
|
60 void CancelOperation(); |
|
61 |
|
62 private: // new functions |
|
63 CSisxSifPlugin(); |
|
64 void ConstructL(); |
|
65 |
|
66 private: // data |
|
67 CSisxSifPluginActiveImpl* iImpl; |
|
68 }; |
|
69 } |
|
70 |
|
71 #endif // C_SISXSIFPLUGIN_H |
|
72 |