equal
deleted
inserted
replaced
9 * Initial Contributors: |
9 * Initial Contributors: |
10 * Nokia Corporation - initial contribution. |
10 * Nokia Corporation - initial contribution. |
11 * |
11 * |
12 * Contributors: |
12 * Contributors: |
13 * |
13 * |
14 * Description: Converts Symbian resources PhoneAction objects. |
14 * Description: Converts Symbian resources QString or HbAction objects. |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 #ifndef PHONERESOURCEADAPTER_H |
18 #ifndef PHONERESOURCEADAPTER_H |
19 #define PHONERESOURCEADAPTER_H |
19 #define PHONERESOURCEADAPTER_H |
20 |
20 |
21 #include <QObject> |
21 #include <QObject> |
22 #include <QMap> |
22 #include <QMap> |
23 #include "phoneaction.h" |
23 #include <xqteluicommandextension.h> |
24 |
24 |
25 #ifdef BUILD_PHONEUIQTVIEWADAPTER |
25 #ifdef BUILD_PHONEUIQTVIEWADAPTER |
26 #define PHONEURESOURCEADAPTER_EXPORT Q_DECL_EXPORT |
26 #define PHONEURESOURCEADAPTER_EXPORT Q_DECL_EXPORT |
27 #else |
27 #else |
28 #define PHONEURESOURCEADAPTER_EXPORT Q_DECL_IMPORT |
28 #define PHONEURESOURCEADAPTER_EXPORT Q_DECL_IMPORT |
58 Returns pointer to buttons controller. |
58 Returns pointer to buttons controller. |
59 */ |
59 */ |
60 PhoneUIQtButtonsController* buttonsController (); |
60 PhoneUIQtButtonsController* buttonsController (); |
61 |
61 |
62 /*! |
62 /*! |
63 \fn QMap<PhoneAction::ActionType, PhoneAction *> PhoneResourceAdapter::convert (int symbianResourceId) |
63 \fn QString PhoneResourceAdapter::convert (int symbianResourceId) |
64 |
64 |
65 This method converts given Symbian resource id to mapping of translated |
65 This method converts given Symbian resource id to mapping of translated |
66 texts, actions etc. |
66 texts, actions etc. |
67 |
67 |
68 Returns map of actions. |
68 Returns map of actions. |
69 */ |
69 */ |
70 QMap<PhoneAction::ActionType, PhoneAction *> convert (int symbianResourceId, ...); |
70 QString convert (int symbianResourceId, ...); |
71 |
71 |
72 /*! |
72 /*! |
73 \fn QString PhoneResourceAdapter::convert (int symbianResourceId) |
73 \fn QString PhoneResourceAdapter::convert (int symbianResourceId) |
74 |
74 |
75 This method converts given Symbian resource id to QString. |
75 This method converts given Symbian resource id to QString. |
113 Returns HbAction list. |
113 Returns HbAction list. |
114 */ |
114 */ |
115 QList<HbAction*> convertToHbActions(int symbianResourceId) const; |
115 QList<HbAction*> convertToHbActions(int symbianResourceId) const; |
116 |
116 |
117 /*! |
117 /*! |
118 \fn QString PhoneResourceAdapter::convertToToolBarCommandList() |
118 \fn QList<XQTelUiCommandExtension::ToolBarCommand> |
|
119 convertToToolBarCommandList() |
119 |
120 |
120 Converts given Symbian command id to tool bar command list. |
121 Converts given Symbian command id to tool bar extension command list. |
121 |
122 |
122 Returns command list. |
123 Returns command list. |
123 */ |
124 */ |
124 QList<PhoneAction::ToolBarItem> convertToToolBarCommandList( |
125 QList<XQTelUiCommandExtension::ToolBarCommand> |
125 int symbianResourceId ) const; |
126 convertToToolBarCommandList( |
126 |
127 int symbianResourceId ) const; |
127 protected: |
128 protected: |
128 |
129 |
129 /*! |
130 /*! |
130 Constructor |
131 Constructor |
131 */ |
132 */ |