phoneplugins/phoneindicatorplugin/inc/phoneindicators.h
changeset 46 bc5a64e5bc3c
parent 45 6b911d05207e
child 51 f39ed5e045e0
child 78 baacf668fe89
equal deleted inserted replaced
45:6b911d05207e 46:bc5a64e5bc3c
    21 #include <hbindicatorinterface.h>
    21 #include <hbindicatorinterface.h>
    22 #include <QObject>
    22 #include <QObject>
    23 #include <QString>
    23 #include <QString>
    24 
    24 
    25 
    25 
    26 static const char *IndicatorNameTemplate = "PhoneIndicator_%1";
    26 static const char *IndicatorNameTemplate = "com.nokia.symbian.phoneindicatorplugin_%1";
    27 
    27 
    28 enum Interaction
    28 enum Interaction
    29 {
    29 {
    30     InteractionNone,
    30     InteractionNone,
    31     OpenMissedCallView,
    31     OpenMissedCallView,
    32     SwitchBackToCall,
    32     OpenCallUi,
    33     OpenDiverSettingsView,
    33     OpenDiverSettingsView,
    34     Deactivate
    34     Deactivate
    35 };
    35 };
    36 
    36 
    37 enum PhoneIndicatorTypes
    37 enum PhoneIndicatorTypes
    56 Q_DECLARE_METATYPE(PhoneIndicatorInfo)
    56 Q_DECLARE_METATYPE(PhoneIndicatorInfo)
    57 
    57 
    58 static const int PhoneIndicatorCount = 3;
    58 static const int PhoneIndicatorCount = 3;
    59 static const PhoneIndicatorInfo IndicatorInfos[PhoneIndicatorCount] = {
    59 static const PhoneIndicatorInfo IndicatorInfos[PhoneIndicatorCount] = {
    60     {"qtg_mono_info.svg",   "Missed call", "Name/Number", OpenMissedCallView },
    60     {"qtg_mono_info.svg",   "Missed call", "Name/Number", OpenMissedCallView },
    61     {"qtg_mono_info.svg",   "Active call", " ", SwitchBackToCall },
    61     {"qtg_mono_info.svg",   "Active call", " ", OpenCallUi },
    62     {"qtg_mono_info.svg",    "Active diverts", " ", OpenDiverSettingsView }
    62     {"qtg_mono_info.svg",   "Active diverts", " ", OpenDiverSettingsView }
    63 };
    63 };
    64 
    64 
    65 #endif // PHONEINDICATORS_H
    65 #endif // PHONEINDICATORS_H