author | jake |
Mon, 24 May 2010 12:15:02 +0300 | |
branch | v5backport |
changeset 76 | 62d594099fbe |
parent 58 | d017f79b1bb1 |
permissions | -rw-r--r-- |
58
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
1 |
/* |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
2 |
* Copyright (c) 2005-2008 Nokia Corporation and/or its subsidiary(-ies). |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
3 |
* All rights reserved. |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
4 |
* This component and the accompanying materials are made available |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
5 |
* under the terms of "Eclipse Public License v1.0" |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
6 |
* which accompanies this distribution, and is available |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html". |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
8 |
* |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
9 |
* Initial Contributors: |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
10 |
* Nokia Corporation - initial contribution. |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
11 |
* |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
12 |
* Contributors: |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
13 |
* |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
14 |
* Description: Header file for CGSPluginInterface class. |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
15 |
* |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
16 |
*/ |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
17 |
|
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
18 |
|
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
19 |
#ifndef GSPLUGININTERFACE_H |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
20 |
#define GSPLUGININTERFACE_H |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
21 |
|
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
22 |
// System includes |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
23 |
#include <GSFrameworkRsc.rsg> // For default icons |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
24 |
#include <gsfwicon.mbg> |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
25 |
|
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
26 |
#include <aknview.h> |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
27 |
#include <aknViewAppUi.h> |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
28 |
#include <gulicon.h> |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
29 |
#include <AknsUtils.h> |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
30 |
#include <aknViewAppUi.h> |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
31 |
#include <data_caging_path_literals.hrh> |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
32 |
|
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
33 |
// Constant for plugin interface: |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
34 |
const TUid KGSPluginInterfaceUid = { 0x10207236 }; |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
35 |
|
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
36 |
// Constant for listbox icon type: |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
37 |
const TUid KGSIconTypeLbxItem = { 0x10207357 }; |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
38 |
// Constant for listbox settings item icon type: |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
39 |
const TUid KGSIconTypeLbxSettingsItem = { 0x102750C5 }; |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
40 |
// Constant for tab icon type: |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
41 |
const TUid KGSIconTypeTab = { 0x10207358 }; |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
42 |
// Constant for icon in D-Column: |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
43 |
const TUid KGSIconTypeDColumn = { 0x10207359 }; |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
44 |
|
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
45 |
|
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
46 |
// Constant for indexing (iOrder): |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
47 |
const TInt KGSPluginNotIndexed = -1; |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
48 |
|
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
49 |
_LIT( KGSDefaultIconFileName, "Z:Gsfwicon.mbm" ); |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
50 |
|
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
51 |
/** |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
52 |
* This enum is used for defining custom operations types. |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
53 |
*/ |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
54 |
enum TGSCustomOperationType |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
55 |
{ |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
56 |
// This operation type returns current status of the plugin's view. |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
57 |
// If the plugin's view is active, ETrue will be returned, otherwise |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
58 |
// EFalse. Currently supported by GSStandbyPlugin. |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
59 |
EGSCustomOperationViewActive = 1 |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
60 |
}; |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
61 |
|
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
62 |
/** |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
63 |
* Used by GetValue(). These are the keys for retrieving a specific |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
64 |
* value. This enum can be extended to provide other values as well as |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
65 |
* long as the original keys are not changed. |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
66 |
*/ |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
67 |
enum TGSPluginValueKeys |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
68 |
{ |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
69 |
// Value for this key is the localized string to be shown in the second row |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
70 |
// of a listbox item. Plugins providing second row of text should provide |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
71 |
// value for this key. Second row of list item text is used for following |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
72 |
// listbox types: |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
73 |
// - EGSListBoxTypeSingleLarge |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
74 |
// - EGSListBoxTypeDouble2Large. |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
75 |
// For plugins listed in these listbox types, second row value can either |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
76 |
// be defined or left empty. |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
77 |
EGSPluginKeySettingsItemValueString = 1, |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
78 |
// Localized string to be used in case of custom MSK and menu activation |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
79 |
// item. See TGSMenuActivationItems. |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
80 |
EGSCustomMenuActivationText |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
81 |
}; |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
82 |
|
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
83 |
/** |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
84 |
* Used by PluginItemType(). These enumerations define the desired appearance |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
85 |
* of the plugin in a parent plugin's listbox. Please notice that the parent |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
86 |
* listbox type cannot be altered by a child plugin so plugins using these must |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
87 |
* be aware of the parent plugin listbox type. Safest alternative is to leave |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
88 |
* default implementation for ItemType() in which case EGSItemTypeSingleLarge is |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
89 |
* used. This should fit most of the listbox types. Additionall types can be |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
90 |
* implemented and defined as long as the old enumerations will not be changed. |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
91 |
* |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
92 |
* Different type of items are handled differently: |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
93 |
* - In case of CAknView type items, such as EGSItemTypeSingleLarge and |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
94 |
* EGSItemTypeSetting, the plugin's DoActivate() is called when user selects |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
95 |
* the item. |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
96 |
* - In case of items supporting dialogs, such as EGSItemTypeSettingDialog and |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
97 |
* EGSItemTypeSettingIconDialog, HandleSelection() is called instead of |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
98 |
* DoActivate(). |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
99 |
* |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
100 |
* Item types can be described in a matrix: |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
101 |
* X: Normal list tems with large icon, |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
102 |
* settings items, |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
103 |
* settings items with icon |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
104 |
* Y: Items providing CAknView - activated by DoActivate(), |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
105 |
* items providing dialog - activated by HandleSelection() |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
106 |
* |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
107 |
* All combinations of these are not allowed/supported. |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
108 |
*/ |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
109 |
enum TGSListboxItemTypes |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
110 |
{ |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
111 |
// CAknSingleLargeStyleListBox item: |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
112 |
// Caption of the item is a descriptor from GetCaptionL(). |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
113 |
// Icon is from CreateIconL( KGSIconTypeLbxItem ). |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
114 |
EGSItemTypeSingleLarge = 1, // Default |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
115 |
// CAknSettingStyleListBox item providing a CAknView: |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
116 |
// 1st row content is a descriptor from GetCaptionL() |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
117 |
// 2nd row content is a descriptor (can be empty string id needed) from |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
118 |
// GetValue( ..., EGSPluginKeySettingsItemValueString ). |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
119 |
EGSItemTypeSetting, |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
120 |
// CAknSettingStyleListBox item providing a CAknView: |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
121 |
// 1st row content is a descriptor from GetCaptionL() |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
122 |
// 2nd row content is a icon from CreateIconL( KGSIconTypeLbxSettingsItem ) |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
123 |
// GetValue(, EGSPluginKeySettingsItemValueString ). |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
124 |
EGSItemTypeSettingIcon, |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
125 |
// CAknSettingStyleListBox item launching a dialog: |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
126 |
// 1st row content is a descriptor from GetCaptionL() |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
127 |
// 2nd row content is a descriptor (can be empty string id needed) from |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
128 |
// GetValue( ..., EGSPluginKeySettingsItemValueString ). |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
129 |
EGSItemTypeSettingDialog, |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
130 |
// CAknSingleLargeStyleListBox item launching a dialog: |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
131 |
// Caption of the item is a descriptor from GetCaptionL(). |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
132 |
// Icon is from CreateIconL( KGSIconTypeLbxItem ). |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
133 |
EGSItemTypeSingleLargeDialog |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
134 |
}; |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
135 |
|
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
136 |
/** |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
137 |
* These are used to define the type of the menu item which opens the selected |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
138 |
* plugin. By default, parent plugin's menu has 'Open' item for child plugins. |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
139 |
* If parent plugin's menu must have 'Change' instead of 'Open' for activating |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
140 |
* the plugin, use EGSMenuActivationItemChange. This functionality is just for |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
141 |
* the visual aspects for views in GS - requested by UI design. Plugins are |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
142 |
* handled logically similarly regardless this value. |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
143 |
*/ |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
144 |
enum TGSMenuActivationItems |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
145 |
{ |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
146 |
// Default - will use the item defined in menu resource. |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
147 |
EGSMenuActivationItemDefault = 0, |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
148 |
// Menu should contain 'Open' Item. |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
149 |
EGSMenuActivationItemOpen = 1, |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
150 |
// Menu should contain 'Change' item. |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
151 |
EGSMenuActivationItemChange, |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
152 |
// Menu should contain custom text which is defined by GetValue() function: |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
153 |
// GetValue( EGSCustomMenuActivationText, ... ); |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
154 |
// NOTE: When this custom menu item is selected, used menu command ID is |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
155 |
// EGSCmdAppChange. This might be checked in for example plugin's |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
156 |
// HandleCommand(). If text is empy, MSK is empty and there's no |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
157 |
// corresponding item in options menu. |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
158 |
EGSMenuActivationItemCustom |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
159 |
}; |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
160 |
|
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
161 |
/** |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
162 |
* Selection types. Used in HandleSelection(). |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
163 |
*/ |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
164 |
enum TGSSelectionTypes |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
165 |
{ |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
166 |
// User selected the item by pressing selection key. |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
167 |
EGSSelectionBySelectionKey = 1, |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
168 |
// User selected the item by selecting a command from the menu. |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
169 |
EGSSelectionByMenu |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
170 |
}; |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
171 |
|
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
172 |
/** |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
173 |
* Interface class for GS plugin. All GS plugins will implement this class. |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
174 |
* |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
175 |
* The main functionality GS framework will use from CAknView is: |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
176 |
* -DoActivate() |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
177 |
* -DoDeactivate() |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
178 |
* -Id() |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
179 |
* functions. |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
180 |
* |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
181 |
* Id() function must return the value of the plugin implementation UID. This |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
182 |
* means that the main view of the plugin will have the same UID as the plugin |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
183 |
* implementation. This will prevent multiple plugins from having same view |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
184 |
* UIDs as their main view. If plugin has more views, it is plugin's |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
185 |
* responsibility to ensure that the UIDs of the other views are unique. This |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
186 |
* can be done for example reserving a unique UID from Symbian. |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
187 |
* |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
188 |
* Most of the functions have implementation using default values. Override |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
189 |
* functions if different values or implementations are desired. |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
190 |
* |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
191 |
* CGSPluginInterface UID = 0x10207236 |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
192 |
* |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
193 |
* See GSFWViewUIDs.h for plugin UIDs. |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
194 |
* |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
195 |
* Plugin implementation UID will be used when defining the parent view of a |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
196 |
* plugin. If plugin belongs to application settings view, set the |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
197 |
* ApplicationSettingsView plugin implementation Uid as a value in the plugin's |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
198 |
* default_data field in plugin's implementation info resource file. |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
199 |
* |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
200 |
* Needed libraries (at least): |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
201 |
* GSEcomPlugin.lib |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
202 |
* GSFramework.lib |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
203 |
* egul.lib |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
204 |
* aknskins.lib |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
205 |
* efsrv.lib |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
206 |
* |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
207 |
* @lib GSFramework.lib |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
208 |
* @since Series60_3.1 |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
209 |
*/ |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
210 |
class CGSPluginInterface: public CAknView |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
211 |
{ |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
212 |
|
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
213 |
// CGSPluginLoader accesses iOrder which should not be accessed outside. |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
214 |
friend class CGSPluginLoader; |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
215 |
|
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
216 |
public: // Constructors & destructors |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
217 |
|
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
218 |
/** |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
219 |
* Creates new GS plugin having the given UID. |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
220 |
* Uses Leave code KErrNotFound if implementation is not found. |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
221 |
* |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
222 |
* @param aImplementationUid Implementation UID of the plugin to be |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
223 |
* created. |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
224 |
* @param aInitParams Plugin's initialization parameters. Make sure you know |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
225 |
* what the plugin expects as initialization parameters. This |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
226 |
* should be an agreement between the plugin client and the |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
227 |
* plugin. Parameter can be used for example as sharing a common |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
228 |
* data model between multiple plugins. |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
229 |
*/ |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
230 |
IMPORT_C static CGSPluginInterface* NewL( |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
231 |
const TUid aImplementationUid, |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
232 |
TAny* aInitParams ); |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
233 |
|
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
234 |
/** |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
235 |
* Destructor |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
236 |
*/ |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
237 |
IMPORT_C ~CGSPluginInterface(); |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
238 |
|
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
239 |
public: // New |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
240 |
|
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
241 |
/** |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
242 |
* Method for getting caption of this plugin. This should be the |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
243 |
* localized name of the settings view to be shown in parent view. |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
244 |
* |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
245 |
* @param aCaption pointer to Caption variable |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
246 |
*/ |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
247 |
virtual void GetCaptionL( TDes& aCaption ) const = 0; |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
248 |
|
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
249 |
/** |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
250 |
* Function for getting plugin's value for a certain key. |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
251 |
* Override to provide own functionality. |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
252 |
* |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
253 |
* @param aKey Key for the value to be retrieved. |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
254 |
* @parem aValue Value for the given gey in TDes format. |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
255 |
*/ |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
256 |
IMPORT_C virtual void GetValue( const TGSPluginValueKeys aKey, |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
257 |
TDes& aValue ); |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
258 |
|
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
259 |
/** |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
260 |
* This function is called in case plugin is an item in a settings |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
261 |
* listbox and user selects the item. Override this if plugin needs to |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
262 |
* provide functionality for item selection. |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
263 |
* |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
264 |
* Default implementation activates the plugin. |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
265 |
* @param aSelectionType Defines how user selected the plugin. See |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
266 |
* TGSSelectionTypes. |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
267 |
*/ |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
268 |
IMPORT_C virtual void HandleSelection( |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
269 |
const TGSSelectionTypes aSelectionType ); |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
270 |
|
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
271 |
/** |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
272 |
* This defines the appearance of the plugin in a parent plugin listbox. |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
273 |
* Default value is EGSItemTypeSingleLarge. Please notice that the |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
274 |
* parent listbox type cannot be defined by a child plugin so plugins |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
275 |
* using these must be aware of the parent plugin listbox type. |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
276 |
* |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
277 |
* @return Desired listbox presentation and functional type for the |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
278 |
* plugin. |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
279 |
*/ |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
280 |
IMPORT_C virtual TGSListboxItemTypes ItemType(); |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
281 |
|
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
282 |
/** |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
283 |
* This function is only used for child plugins. Defines the dynamic |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
284 |
* menu item that activates this plugin from parent plugin. This menu |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
285 |
* item will override the item defined in resource file. Normally |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
286 |
* 'Open' is used to open the child plugin. Override this to change the |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
287 |
* activation to for example 'Change'. TGSMenuActivationItems defines the |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
288 |
* different possible menu items that can be used to open this plugin. |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
289 |
* |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
290 |
* Note: This also defines MSK. Menu activation item and MSK have |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
291 |
* identical label and behaviour. An exception to this is |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
292 |
* when custom text is empty: in this case MSK is empty but there |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
293 |
* is no item in options menu (no empty item in menu). |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
294 |
* |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
295 |
* @ return Type of the menu item and MSK that should activate this |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
296 |
* child plugin from parent plugin. |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
297 |
*/ |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
298 |
IMPORT_C virtual TGSMenuActivationItems MenuActivationItem(); |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
299 |
|
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
300 |
/** |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
301 |
* Creates a new icon of desired type. Override this to provide custom |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
302 |
* icons. Othervise default icon is used for KGSIconTypeLbxItem. Other |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
303 |
* icons are empty. Ownership of the created icon is transferred to the |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
304 |
* caller. |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
305 |
* NOTE: Return NULL if icon is not to be displayed. |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
306 |
* |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
307 |
* Icon type UIDs (use these defined constants): |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
308 |
* KGSIconTypeLbxItem - ListBox item icon. |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
309 |
* KGSIconTypeLbxSettingsItem - Settings item icon. |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
310 |
* KGSIconTypeTab - Tab icon. |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
311 |
* KGSIconTypeDColumn - Small icon in D-column. |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
312 |
* |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
313 |
* @param aIconType UID Icon type UID of the icon to be created. |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
314 |
* @return Pointer of the icon or NULL. |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
315 |
*/ |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
316 |
IMPORT_C virtual CGulIcon* CreateIconL( const TUid aIconType ); |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
317 |
|
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
318 |
/** |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
319 |
* Method for reading the ID of the plugin provider category. See |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
320 |
* TGSPluginProviderCategory. PluginProviderCategory can be used for |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
321 |
* sorting plugins. |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
322 |
* |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
323 |
* Default value is EGSPluginProvider3rdParty. Override this function |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
324 |
* to change the category. |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
325 |
* |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
326 |
* @return Plugin provider category ID defined by |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
327 |
* TGSPluginProviderCategory |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
328 |
*/ |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
329 |
IMPORT_C virtual TInt PluginProviderCategory() const; |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
330 |
|
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
331 |
/** |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
332 |
* Reserved for future use/plugin's custom functionality. This can be |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
333 |
* overwritten if plugin needs to have custom functionality which cannot |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
334 |
* be fulfilled otherwise. |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
335 |
* |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
336 |
* Use TGSCustomOperationType enumeration as aParam1 to |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
337 |
* define operation type. |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
338 |
*/ |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
339 |
IMPORT_C virtual TAny* CustomOperationL( TAny* aParam1, TAny* aParam2 ); |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
340 |
|
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
341 |
/** |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
342 |
* Method for checking, if plugin should be visible and used in GS FW. |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
343 |
* (for example shown in listbox of the parent view). |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
344 |
* |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
345 |
* On default plugin is visible. Overwrite this function to enable or |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
346 |
* disable your plugin dynamically. |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
347 |
* |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
348 |
* @return ETrue if plugin should be visible in GS. |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
349 |
* @return EFalse if plugin should not be visible in GS. |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
350 |
*/ |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
351 |
IMPORT_C virtual TBool Visible() const; |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
352 |
|
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
353 |
/** |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
354 |
* Resets plugin's selected item index if this is supported. Default |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
355 |
* implementation does nothing. This is needed when navigating from |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
356 |
* child plugin back to parent plugin. In this case child plugin should |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
357 |
* reset selected index in its listbox. |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
358 |
*/ |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
359 |
IMPORT_C virtual void ResetSelectedItemIndex(); |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
360 |
|
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
361 |
/** |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
362 |
* Sets the Index of the plugin in listbox. Used for CGSPluginLoader. Default |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
363 |
* value is KGSPluginNotIndexed which means not ordered. This value is |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
364 |
* read, if defined, from the opaque_data field of the plugin's resource |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
365 |
* definition. Index starts from 0. |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
366 |
*/ |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
367 |
IMPORT_C void SetOrder( TInt aOrder ); |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
368 |
|
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
369 |
/** |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
370 |
* In case plug-in is loaded outside GS application and CGSPluginLoader, |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
371 |
* cleaning up plug-in's ECOM resources must be done manually. |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
372 |
* |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
373 |
* Example: |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
374 |
* CGSPluginInterface* myPlugin = CGSPluginInterface::NewL(...); |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
375 |
* REComSession::DestroyedImplementation( myPlugin->GetEcomDestructorKey() ); |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
376 |
* delete myPlugin; |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
377 |
* |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
378 |
* @return UID of the plug-in instance which can be used to free dependent ECOM resources. |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
379 |
*/ |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
380 |
IMPORT_C TUid GetEcomDestructorKey(); |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
381 |
|
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
382 |
protected: // New |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
383 |
|
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
384 |
/** |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
385 |
* C++ constructor. |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
386 |
*/ |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
387 |
IMPORT_C CGSPluginInterface(); |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
388 |
|
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
389 |
public: // Enumerations |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
390 |
|
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
391 |
/** |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
392 |
* Category of the plugin provider. Provider's type affects the sorting |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
393 |
* of the plugins. Type EGSPluginProvider3rdParty plugins are allowed |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
394 |
* to be loaded only by Applications-plugin. Other categories may exist |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
395 |
* but they should be used only internally. |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
396 |
**/ |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
397 |
enum TGSPluginProviderCategory |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
398 |
{ |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
399 |
EGSPluginProviderOEM = 1, |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
400 |
EGSPluginProviderOperator = 2, |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
401 |
EGSPluginProvider3rdParty = 3 |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
402 |
}; |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
403 |
|
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
404 |
private: // Data |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
405 |
|
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
406 |
// ECOM plugin instance UID. |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
407 |
TUid iDtor_ID_Key; |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
408 |
|
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
409 |
/** |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
410 |
* Index of the plugin in listbox. Used for CGSPluginLoader. Default |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
411 |
* value is KGSPluginNotIndexed which means not ordered. This value is |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
412 |
* read, if defined, from the opaque_data field of the plugin's resource |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
413 |
* definition. Index starts from 0. |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
414 |
*/ |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
415 |
TInt iOrder; |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
416 |
|
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
417 |
}; |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
418 |
|
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
419 |
#endif // GSPLUGININTERFACE_H |
d017f79b1bb1
updated dependencies; compiles again (including all plugins) with winscw_udeb without error
Christian Morlok <symbian.org@christianmorlok.de>
parents:
diff
changeset
|
420 |
//End of file |