|
1 /* |
|
2 * Copyright (c) 2006-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: Harvester plugin information struct* |
|
15 */ |
|
16 |
|
17 #ifndef __HARVESTERPLUGININFO_H__ |
|
18 #define __HARVESTERPLUGININFO_H__ |
|
19 |
|
20 #include "harvesterplugin.h" |
|
21 |
|
22 class CHarvesterData; |
|
23 |
|
24 class CHarvesterPluginInfo : public CBase |
|
25 { |
|
26 public: |
|
27 virtual ~CHarvesterPluginInfo() |
|
28 { |
|
29 delete iPlugin; |
|
30 iExtensions.ResetAndDestroy(); |
|
31 iExtensions.Close(); |
|
32 iObjectTypes.ResetAndDestroy(); |
|
33 iObjectTypes.Close(); |
|
34 iQueue.ResetAndDestroy(); |
|
35 iQueue.Close(); |
|
36 } |
|
37 |
|
38 CHarvesterPluginInfo() : CBase(), iPlugin( NULL ), iPluginUid( KNullUid ) |
|
39 { |
|
40 } |
|
41 |
|
42 /** @var CHarvesterPlugin Plugin |
|
43 * @brief Pointer to the loaded plugin. */ |
|
44 CHarvesterPlugin* iPlugin; |
|
45 |
|
46 /** @var RPointerArray<TDesC> iExtensions |
|
47 * @brief Supported extensions of the plugin. */ |
|
48 RPointerArray<TDesC> iExtensions; |
|
49 |
|
50 /** @var RPointerArray<TDesC> iObjectTypes |
|
51 * @brief Describes plugin - returned by CImplementationInformation->DataType(). */ |
|
52 RPointerArray<TDesC> iObjectTypes; |
|
53 |
|
54 /** @var TUid iPluginUid; |
|
55 * @brief Harvester plugin UID */ |
|
56 TUid iPluginUid; |
|
57 |
|
58 /** */ |
|
59 RPointerArray<CHarvesterData> iQueue; |
|
60 |
|
61 private: |
|
62 }; |
|
63 |
|
64 #endif |
|
65 |