messagingapp/msgnotifications/msgindicatorplugin/inc/msgindicatorplugin.h
changeset 25 84d9eb65b26f
parent 23 238255e8b033
child 27 e4592d119491
equal deleted inserted replaced
23:238255e8b033 25:84d9eb65b26f
    27 
    27 
    28 /**
    28 /**
    29  * Message indicator plugin class. 
    29  * Message indicator plugin class. 
    30  * Main class of message indicator plugin. 
    30  * Main class of message indicator plugin. 
    31  */
    31  */
    32 class MsgIndicatorPlugin : public QObject, public HbIndicatorPluginInterface
    32 class MsgIndicatorPlugin: public QObject, public HbIndicatorPluginInterface
    33 {
    33 {
    34     Q_OBJECT
    34 Q_OBJECT
    35     Q_INTERFACES(HbIndicatorPluginInterface)
    35 Q_INTERFACES(HbIndicatorPluginInterface)
    36 
    36 
    37 public:
    37 public:
    38     /**
    38     /**
    39      * Constructor
    39      * Constructor
    40      */
    40      */
    57                                const HbSecurityInfo *securityInfo) const;   
    57                                const HbSecurityInfo *securityInfo) const;   
    58     /**
    58     /**
    59      * @see HbIndicatorPluginInterface
    59      * @see HbIndicatorPluginInterface
    60      */
    60      */
    61     HbIndicatorInterface* createIndicator(const QString &indicatorType);
    61     HbIndicatorInterface* createIndicator(const QString &indicatorType);
    62     
    62 
    63     /**
    63     /**
    64      * @see HbIndicatorPluginInterface
    64      * @see HbIndicatorPluginInterface
    65      */
    65      */
    66     int error() const;
    66     int error() const;
    67     
    67 
       
    68     /**
       
    69      * Returns the indices of plugin types.
       
    70      * @param indicatorType QString the type of indicator
       
    71      * @return int the indicator type as an index.
       
    72      */
       
    73     int typeIndex(const QString &indicatorType) const;
       
    74 
    68 private:
    75 private:
    69     Q_DISABLE_COPY(MsgIndicatorPlugin)
    76     Q_DISABLE_COPY(MsgIndicatorPlugin)
    70     
    77     
    71     /**
    78     /**
    72      * Error value
    79      * Error value
    79      */
    86      */
    80     QStringList mIndicatorTypes;
    87     QStringList mIndicatorTypes;
    81 };
    88 };
    82 
    89 
    83 #endif // MSGINDICATORPLUGIN_H
    90 #endif // MSGINDICATORPLUGIN_H
    84