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