wlanutilities/wlanentryplugin/inc/cpwlanentryplugin.h
changeset 25 001d4d78e350
parent 19 10810c91db26
equal deleted inserted replaced
22:498f36116140 25:001d4d78e350
     1 /*
     1 /*
     2  * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3  * All rights reserved.
     3 * All rights reserved.
     4  * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5  * under the terms of "Eclipse Public License v1.0""
     5 * under the terms of "Eclipse Public License v1.0"
     6  * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7  * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     8  *
     8 *
     9  * Initial Contributors:
     9 * Initial Contributors:
    10  * Nokia Corporation - initial contribution.
    10 * Nokia Corporation - initial contribution.
    11  *
    11 *
    12  * Contributors:
    12 * Contributors:
    13  *
    13 *
    14  * Description:  
    14 * Description: 
    15  *   
    15 * WLAN Entry plugin implementation.
    16  */
    16 */
    17  
    17  
    18 #ifndef	CPWLANENTRYPLUGIN_H
    18 #ifndef	CPWLANENTRYPLUGIN_H
    19 #define	CPWLANENTRYPLUGIN_H
    19 #define	CPWLANENTRYPLUGIN_H
    20 
    20 
    21 
       
    22 // System includes
    21 // System includes
    23 
    22 
    24 #include <QObject>
    23 #include <QObject>
    25 #include <cppluginplatinterface.h>
    24 #include <QSharedPointer>
       
    25 #include <cpplugininterface.h>
    26 
    26 
    27 // User includes
    27 // User includes
    28 
    28 
    29 // Forward declarations
    29 // Forward declarations
    30 
    30 
    31 class QTranslator;
    31 class HbTranslator;
    32 
    32 
    33 // External data types
    33 // External data types
    34 
    34 
    35 // Constants
    35 // Constants
    36 
    36 
    37 // Class declaration
    37 // Class declaration
    38 
    38 
    39 class CpWlanEntryPlugin : public QObject, public CpPluginPlatInterface
    39 class CpWlanEntryPlugin : public QObject, public CpPluginInterface
    40 {
    40 {
    41     Q_OBJECT
    41     Q_OBJECT
    42     Q_INTERFACES(CpPluginPlatInterface)
    42     Q_INTERFACES(CpPluginInterface)
    43     
    43     
    44 public:
    44 public:
    45 
    45 
    46     // Data types
    46     // Data types
    47 
    47 
    48     CpWlanEntryPlugin();
    48     CpWlanEntryPlugin();
    49     
    49     
    50     virtual ~CpWlanEntryPlugin();
    50     virtual ~CpWlanEntryPlugin();
    51     
    51     
    52     virtual CpSettingFormItemData *createSettingFormItemData(CpItemDataHelper &itemDataHelper) const;
    52     virtual QList<CpSettingFormItemData *> createSettingFormItemData(
       
    53         CpItemDataHelper &itemDataHelper) const;
    53 
    54 
    54 signals:
    55 signals:
    55 
    56 
    56 public slots:
    57 public slots:
    57 
    58 
    65 
    66 
    66 private slots:
    67 private slots:
    67 
    68 
    68 private: // data
    69 private: // data
    69 
    70 
    70     bool mWlanSupported;            // WLAN dynamic ON/OFF configuration
    71     //! WLAN dynamic ON/OFF configuration
    71     QTranslator *mTranslator;       // Translator for text ID's used in this plugin
    72     bool mWlanSupported;
       
    73     //! Translator for text ID's used in this plugin
       
    74     QSharedPointer<HbTranslator> mTranslator;
    72 
    75 
    73     // Friend classes
    76     // Friend classes
    74 
       
    75 };
    77 };
    76 
    78 
    77 #endif	// CPWLANENTRYPLUGIN_H
    79 #endif	// CPWLANENTRYPLUGIN_H