wlanutilities/wlanqtutilities/base/inc/wlanqtutilsiap.h
changeset 31 e8f4211554fb
parent 19 10810c91db26
child 39 7b3e49e4608a
equal deleted inserted replaced
30:ab513c8439db 31:e8f4211554fb
     1 /*
     1 /*
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2009-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 "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".
    10 * Nokia Corporation - initial contribution.
    10 * Nokia Corporation - initial contribution.
    11 *
    11 *
    12 * Contributors:
    12 * Contributors:
    13 *
    13 *
    14 * Description:
    14 * Description:
    15 * This is a header file for WlanQtUtilsIap class.
    15 * WLAN IAP (Internet Access Point, known network) class.
    16 */
    16 */
    17 
    17 
    18 #ifndef WLANQTUTILSIAP_H
    18 #ifndef WLANQTUTILSIAP_H
    19 #define WLANQTUTILSIAP_H
    19 #define WLANQTUTILSIAP_H
    20 
    20 
    21 #include <QObject>
    21 // System includes
    22 #include "wlanqtutilscommon.h"
       
    23 
    22 
    24 class QString;
    23 #include <QScopedPointer>
    25 
    24 
    26 class WLANQTUTILITIESDLL_EXPORT WlanQtUtilsIap : public QObject
    25 // User includes
       
    26 
       
    27 #include "wlanqtutilsap.h"
       
    28 
       
    29 // Forward declarations
       
    30 
       
    31 class WlanQtUtilsIapPrivate;
       
    32 
       
    33 // External data types
       
    34 
       
    35 // Constants
       
    36 
       
    37 //! Library interface export macro
       
    38 #ifdef BUILD_WLANQTUTILITIES_DLL
       
    39 #define WLANQTUTILSIAP_EXPORT Q_DECL_EXPORT
       
    40 #else
       
    41 #define WLANQTUTILSIAP_EXPORT Q_DECL_IMPORT
       
    42 #endif
       
    43 
       
    44 // Class declaration
       
    45 
       
    46 class WLANQTUTILSIAP_EXPORT WlanQtUtilsIap : public WlanQtUtilsAp
    27 {
    47 {
    28 
    48     
    29 public:
    49 public:
    30 
    50 
       
    51     // Data types
       
    52     
       
    53     /*!
       
    54         Configuration IDs that can be read and set in this class (via
       
    55         functions declared in the parent class). Values under 100 are
       
    56         reserved for the parent class.
       
    57         
       
    58         Remember to update traces/trace.properties file when modifying
       
    59         this enum (tracing is also the cause for fixing the enum values).
       
    60         
       
    61         Values available for IAPs:
       
    62         - ConfIdIapId
       
    63         - ConfIdName
       
    64         - ConfIdNetworkId
       
    65         - WlanQtUtilsAp::ConfIdSsid
       
    66         - WlanQtUtilsAp::ConfIdSignalStrength
       
    67         - WlanQtUtilsAp::ConfIdSecurityMode
       
    68         - WlanQtUtilsAp::ConfIdWpaPskUse
       
    69      */
       
    70     enum ConfId {
       
    71         //! int: IAP ID
       
    72         ConfIdIapId = 100,
       
    73         //! QString: Name
       
    74         ConfIdName = 101,
       
    75         //! int: Network ID
       
    76         ConfIdNetworkId = 102
       
    77     };
       
    78     
    31     WlanQtUtilsIap();
    79     WlanQtUtilsIap();
    32     WlanQtUtilsIap(
    80 
    33         int id,
       
    34         int netId,
       
    35         QString name,
       
    36         WlanQtUtilsBearerType bearerType);
       
    37     virtual ~WlanQtUtilsIap();
    81     virtual ~WlanQtUtilsIap();
    38 
    82 
    39     int id() const;
    83 signals:
    40     int networkId() const;
    84 
    41     QString name() const;
    85 public slots:
    42     WlanQtUtilsBearerType bearerType() const;
    86 
    43     WlanQtUtilsConnectionStatus connectionStatus() const;
    87 protected:
    44     
    88 
    45     void setId(int id);
    89 protected slots:
    46     void setNetworkId(int NetId);
       
    47     void setName(QString name);
       
    48     void setBearerType(WlanQtUtilsBearerType bearerType);
       
    49     void setConnectionStatus(WlanQtUtilsConnectionStatus connectionStatus);
       
    50 
    90 
    51 private:
    91 private:
    52     int id_;
    92 
    53     int netId_;
    93     Q_DISABLE_COPY(WlanQtUtilsIap)
    54     QString name_;
    94 
    55     WlanQtUtilsBearerType bearerType_;
    95 private slots:
    56     WlanQtUtilsConnectionStatus connectionStatus_;
    96 
    57     // TODO: SNAP ID list
    97 private: // data
       
    98 
       
    99     QScopedPointer<WlanQtUtilsIapPrivate> d_ptr; //!< Private implementation
       
   100 
       
   101     // Friend classes
    58 };
   102 };
    59 
   103 
    60 #endif /* WLANQTUTILSIAP_H */
   104 #endif // WLANQTUTILSIAP_H