|
1 /* |
|
2 * Copyright (c) 2010 Kanrikogaku Kenkyusho, Ltd. |
|
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 * Kanrikogaku Kenkyusho, Ltd. - Initial contribution |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * {Description of the file} |
|
16 * |
|
17 */ |
|
18 |
|
19 // Protection against nested includes |
|
20 #ifndef _DIRECTPRINTUIPLUGINMGR_H_ |
|
21 #define _DIRECTPRINTUIPLUGINMGR_H_ |
|
22 |
|
23 // System includes |
|
24 #include <e32base.h> |
|
25 #include <implementationproxy.h> |
|
26 |
|
27 // Forward declarations |
|
28 class CDirectPrintModel; |
|
29 class CDirectPrintUiPlugin; |
|
30 |
|
31 // Class declaration |
|
32 /** |
|
33 * UiPrugin manager class |
|
34 * more_complete_description |
|
35 */ |
|
36 class CDirectPrintUiPluginMgr : public CBase |
|
37 { |
|
38 public: |
|
39 /** Constructors */ |
|
40 static CDirectPrintUiPluginMgr* NewL(CDirectPrintModel& aModel); |
|
41 static CDirectPrintUiPluginMgr* NewLC(CDirectPrintModel& aModel); |
|
42 /** Destructor */ |
|
43 ~CDirectPrintUiPluginMgr(); |
|
44 |
|
45 public: |
|
46 /** |
|
47 * Load plugin object. |
|
48 * |
|
49 * @param aUid The Uid of plugin. |
|
50 */ |
|
51 void LoadPluginL(TUid aUid); |
|
52 /** |
|
53 * Load plugin object. |
|
54 * |
|
55 * @param aKey default_data string. |
|
56 */ |
|
57 void LoadPluginL(const TDesC8& aKey); |
|
58 /** |
|
59 * Get current plugin object. |
|
60 * |
|
61 * @return Pointer to plugin object. |
|
62 */ |
|
63 CDirectPrintUiPlugin* CurrentPluginL(); |
|
64 |
|
65 protected: |
|
66 CDirectPrintUiPluginMgr(CDirectPrintModel& aModel); |
|
67 void ConstructL(); |
|
68 |
|
69 private: |
|
70 /** Reference to model class. */ |
|
71 CDirectPrintModel& iModel; |
|
72 /** Pointer to plugin. */ |
|
73 CDirectPrintUiPlugin* iPlugin; |
|
74 /** Uid of current plugin. */ |
|
75 TUid iCurrentPluginUid; |
|
76 }; |
|
77 |
|
78 #endif // _DIRECTPRINTUIPLUGINMGR_H_ |