phonesettings/cpphonesettingsplugins/telephonyplugin/src/cptelephonyplugin.h
branchGCC_SURGE
changeset 51 f39ed5e045e0
parent 30 ebdbd102c78a
parent 46 bc5a64e5bc3c
equal deleted inserted replaced
40:bab96b7ed1a4 51:f39ed5e045e0
    19 #define CPTELEPHONYPLUGIN_H
    19 #define CPTELEPHONYPLUGIN_H
    20 
    20 
    21 #include <QObject>
    21 #include <QObject>
    22 #include <QList>
    22 #include <QList>
    23 #include <cpplugininterface.h>
    23 #include <cpplugininterface.h>
       
    24 #include <cplauncherinterface.h>
    24 #include "cpphonelocalisation.h"
    25 #include "cpphonelocalisation.h"
    25 
    26 
    26 /*!
    27 /*!
    27     \class CpTelephonyPlugin
    28     \class CpTelephonyPlugin
    28     \brief The class CpTelephonyPlugin implements telephony plugin functionality. 
    29     \brief The class CpTelephonyPlugin implements telephony plugin functionality. 
    29  */
    30  */
    30 class CpTelephonyPlugin
    31 class CpTelephonyPlugin
    31         : public QObject,
    32         : public QObject,
    32           public CpPluginInterface
    33           public CpPluginInterface,
       
    34           public CpLauncherInterface
    33 {
    35 {
    34     Q_OBJECT
    36     Q_OBJECT
    35     Q_INTERFACES(CpPluginInterface)
    37     Q_INTERFACES(CpPluginInterface)
       
    38     Q_INTERFACES(CpLauncherInterface)
    36     
    39     
    37 public:
    40 public:
    38  
       
    39     CpTelephonyPlugin();
    41     CpTelephonyPlugin();
    40     ~CpTelephonyPlugin();
    42     ~CpTelephonyPlugin();
    41     
    43     
    42     /*!
    44     /*!
    43      From CpPluginInterface.
    45      From CpPluginInterface.
    44      @see CpPluginInterface.
    46      @see CpPluginInterface.
    45      */
    47      */
    46     QList<CpSettingFormItemData*> createSettingFormItemData(
    48     QList<CpSettingFormItemData*> createSettingFormItemData(
    47             CpItemDataHelper &itemDataHelper) const;
    49             CpItemDataHelper &itemDataHelper) const;
    48     
    50     
       
    51     /*!
       
    52      From CpLauncherInterface.
       
    53      @see CpLauncherInterface.
       
    54      */
       
    55     virtual CpBaseSettingView *createSettingView(const QVariant &hint) const;
       
    56     
    49 private: 
    57 private: 
    50     
    58     
    51     QScopedPointer<CpPhoneLocalisation> m_localisation; 
    59     QScopedPointer<CpPhoneLocalisation> m_localisation; 
    52 };
    60 };
    53 
    61