equal
deleted
inserted
replaced
25 QString KAccMode = "AccMode"; |
25 QString KAccMode = "AccMode"; |
26 QString KAccType = "AccType"; |
26 QString KAccType = "AccType"; |
27 |
27 |
28 AccIndicatorPlugin::AccIndicatorPlugin() : |
28 AccIndicatorPlugin::AccIndicatorPlugin() : |
29 HbIndicatorInterface(IndicatorType, |
29 HbIndicatorInterface(IndicatorType, |
30 HbIndicatorInterface::GroupPriorityLow, |
30 HbIndicatorInterface::SettingCategory, |
31 InteractionActivated) |
31 InteractionActivated) |
32 { |
32 { |
33 mIndicatorTypes << "com.nokia.accessory.indicatorplugin/1.0"; |
33 mIndicatorTypes << "com.nokia.accessory.indicatorplugin/1.0"; |
34 } |
34 } |
35 |
35 |
73 // AccIndicatorPlugin::accessAllowed |
73 // AccIndicatorPlugin::accessAllowed |
74 // check for the access rights of the client. As there are no restrictions for |
74 // check for the access rights of the client. As there are no restrictions for |
75 // this plugin it always returns true. |
75 // this plugin it always returns true. |
76 // ---------------------------------------------------------------------------- |
76 // ---------------------------------------------------------------------------- |
77 |
77 |
78 bool AccIndicatorPlugin::accessAllowed(const QString &indicatorType, |
78 bool AccIndicatorPlugin::accessAllowed(const QString &indicatorType,const QVariantMap &securityInfo) const |
79 const HbSecurityInfo *securityInfo) const |
|
80 { |
79 { |
81 Q_UNUSED(indicatorType) |
80 Q_UNUSED(indicatorType) |
82 Q_UNUSED(securityInfo) |
81 Q_UNUSED(securityInfo) |
83 |
82 |
84 return true; |
83 return true; |
127 { |
126 { |
128 QString type(mDisplayName); |
127 QString type(mDisplayName); |
129 return type; |
128 return type; |
130 } |
129 } |
131 //for displaying the icon in indicator. |
130 //for displaying the icon in indicator. |
132 case DecorationNameRole: |
131 case MonoDecorationNameRole: |
133 { |
132 { |
134 QString iconName; |
133 QString iconName; |
135 if(mAccType == KPCWired || mAccType == KPCUSB) |
134 if(mAccType == KPCWired || mAccType == KPCUSB) |
136 { |
135 { |
137 iconName = QString("z:/resource/accindicator/wired_accessory.svg"); |
136 iconName = QString("z:/resource/accindicator/wired_accessory.svg"); |