85
|
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 "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: casrvplugin.h
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef CA_SRV_PLUGIN_H_
|
|
19 |
#define CA_SRV_PLUGIN_H_
|
|
20 |
|
|
21 |
#include <e32base.h>
|
|
22 |
#include <ecom/ecom.h>
|
|
23 |
#include "casrvplugindef.h"
|
|
24 |
|
|
25 |
class CCaStorageProxy;
|
|
26 |
class CCaSrvEngUtils;
|
102
|
27 |
namespace Usif{
|
|
28 |
class RSoftwareComponentRegistry;
|
|
29 |
}
|
85
|
30 |
|
|
31 |
struct TPluginParams
|
|
32 |
{
|
|
33 |
CCaStorageProxy* storageProxy;
|
|
34 |
CCaSrvEngUtils* engUtils;
|
102
|
35 |
Usif::RSoftwareComponentRegistry* softwareRegistry;
|
85
|
36 |
};
|
|
37 |
|
|
38 |
/**
|
|
39 |
* CaSrvPlugin is a class representing ECom plugin.
|
|
40 |
* Class has virtual function responsible for executing
|
|
41 |
* command. It can also returns array of all implementations.
|
|
42 |
* Class is deriving by all ECom plugin implementations.
|
|
43 |
*
|
|
44 |
* @since S60 5.0
|
|
45 |
* @ingroup
|
|
46 |
*/
|
|
47 |
NONSHARABLE_CLASS( CCaSrvPlugin ): public CBase
|
|
48 |
{
|
|
49 |
public:
|
|
50 |
/**
|
|
51 |
* Instantiates an object of this type.
|
|
52 |
* @param aUid ECom plugin's UID.
|
|
53 |
* @param aPluginParam The plugin's parameters.
|
|
54 |
* @return Instance of the CaSrvPlugin class.
|
|
55 |
*/
|
|
56 |
static CCaSrvPlugin* NewL( TUid aUid, TPluginParams* aPluginParam );
|
|
57 |
|
|
58 |
/**
|
|
59 |
* Virtual C++ Destructor.
|
|
60 |
*/
|
|
61 |
virtual ~CCaSrvPlugin();
|
|
62 |
|
|
63 |
/**
|
|
64 |
* Request a list of all available implementations which
|
|
65 |
* satisfy this given interface.
|
|
66 |
* @param aImplInfoArray ECom plugin implementations array.
|
|
67 |
*/
|
|
68 |
static void ListAllImplementationsL( RImplInfoPtrArray& aImplInfoArray );
|
|
69 |
|
|
70 |
protected:
|
|
71 |
/**
|
|
72 |
* Default constructor.
|
|
73 |
*/
|
|
74 |
inline CCaSrvPlugin();
|
|
75 |
|
|
76 |
private:
|
|
77 |
|
|
78 |
/**
|
|
79 |
* Unique instance identifier key.
|
|
80 |
*/
|
|
81 |
TUid iDtor_ID_Key;
|
|
82 |
};
|
|
83 |
|
|
84 |
#include "casrvplugin.inl"
|
|
85 |
|
|
86 |
#endif /* CA_SRV_PLUGIN_H_ */
|
|
87 |
|
|
88 |
// End of file
|