wlanutilities/wpswizard/inc/wpswizard.h
branchGCC_SURGE
changeset 47 b3d8f88532b7
parent 19 10810c91db26
parent 46 2fbd1d709fe7
equal deleted inserted replaced
34:30a5f517c615 47:b3d8f88532b7
     1 /*
     1 /*
     2  * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
     2  * Copyright (c) 2010 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 the License "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.
    14  * Description: 
    14  * Description: 
    15  *   WPS Wizard API
    15  *   WPS Wizard API
    16  *
    16  *
    17  */
    17  */
    18 
    18 
    19 /*
       
    20  * %version: 1 %
       
    21  */
       
    22 
       
    23 
       
    24 #ifndef WPSWIZARD_H_
    19 #ifndef WPSWIZARD_H_
    25 #define WPSWIZARD_H_
    20 #define WPSWIZARD_H_
    26 
    21 
    27 
    22 
       
    23 // System includes
       
    24 #include <QObject>
    28 
    25 
    29 #include <qobject.h>
    26 // User includes
    30 #include "wlanwizardplugin.h"
    27 #include "wlanwizardplugin.h"
    31 
    28 
       
    29 // Forward declarations
       
    30 class WlanWizardHelper;
       
    31 class WpsWizardPrivate;
       
    32 
       
    33 // External data types
       
    34 // Constants
       
    35 
       
    36 
       
    37 //Export Declaration
    32 #ifdef BUILD_WPS_WIZARD_DLL
    38 #ifdef BUILD_WPS_WIZARD_DLL
    33 #define WPS_WIZARD_EXPORT Q_DECL_EXPORT
    39 #define WPS_WIZARD_EXPORT Q_DECL_EXPORT
    34 #else
    40 #else
    35 #define WPS_WIZARD_EXPORT Q_DECL_IMPORT
    41 #define WPS_WIZARD_EXPORT Q_DECL_IMPORT
    36 #endif
    42 #endif
    37 
    43 
    38 class WlanWizardHelpper;
       
    39 class WpsWizardPrivate;
       
    40 
       
    41 
       
    42 /*!
    44 /*!
    43  * @addtogroup group_
    45  * @addtogroup group_wps_wizard_plugin
    44  * @{
    46  * @{
    45  */
    47  */
    46 
    48 
       
    49 // Class declaration
    47 class WPS_WIZARD_EXPORT WpsWizard: public QObject, public WlanWizardPlugin
    50 class WPS_WIZARD_EXPORT WpsWizard: public QObject, public WlanWizardPlugin
    48 {
    51 {
    49 private:
       
    50     Q_OBJECT
    52     Q_OBJECT
    51     friend class WpsWizardPrivate;
    53    
    52 public:
    54 public:
    53     enum BearerType
    55     
    54     {
    56    explicit WpsWizard( WlanWizardHelper *wizardHelper);
    55         BearerTypeWlan,
       
    56     };
       
    57 public:
       
    58     WpsWizard(
       
    59         WlanWizardHelpper *wizardHelpper,
       
    60         BearerType bearerType, int referenceId);
       
    61     ~WpsWizard();
    57     ~WpsWizard();
    62 
    58 
    63     void storeSettings();
    59 signals:
    64     
       
    65 public: // From WlanWizardPlugin
       
    66     bool summary(WlanWizardPlugin::Summary sum, QString &item, QString &value);
       
    67 
    60 
    68     
    61 public slots:
       
    62 
       
    63 protected:
       
    64 
       
    65 protected slots:
    69 
    66 
    70 private:
    67 private:
       
    68 
    71     Q_DISABLE_COPY(WpsWizard)
    69     Q_DISABLE_COPY(WpsWizard)
    72     WpsWizardPrivate *d_ptr;
    70 
       
    71 private slots:
       
    72 
       
    73 private:   
       
    74 	
       
    75     //data 
       
    76     
       
    77     //! pointer to the private implementation class.
       
    78     QScopedPointer<WpsWizardPrivate> d_ptr;
       
    79     
       
    80     friend class WpsWizardPrivate;
       
    81     friend class TestWlanWizardContext;
    73 };
    82 };
    74 
    83 
    75 /*! @} */
       
    76 
       
    77 
       
    78 
       
    79 
       
    80 #endif /* WPSWIZARD_H_ */
    84 #endif /* WPSWIZARD_H_ */