--- a/wlanutilities/wlanqtutilities/base/inc/wlanqtutilsiap.h Fri May 14 10:30:51 2010 +0300
+++ b/wlanutilities/wlanqtutilities/base/inc/wlanqtutilsiap.h Mon May 24 21:11:39 2010 +0300
@@ -1,5 +1,5 @@
/*
-* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+* Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
@@ -12,49 +12,93 @@
* Contributors:
*
* Description:
-* This is a header file for WlanQtUtilsIap class.
+* WLAN IAP (Internet Access Point, known network) class.
*/
#ifndef WLANQTUTILSIAP_H
#define WLANQTUTILSIAP_H
-#include <QObject>
-#include "wlanqtutilscommon.h"
+// System includes
+
+#include <QScopedPointer>
+
+// User includes
+
+#include "wlanqtutilsap.h"
+
+// Forward declarations
+
+class WlanQtUtilsIapPrivate;
+
+// External data types
-class QString;
+// Constants
-class WLANQTUTILITIESDLL_EXPORT WlanQtUtilsIap : public QObject
+//! Library interface export macro
+#ifdef BUILD_WLANQTUTILITIES_DLL
+#define WLANQTUTILSIAP_EXPORT Q_DECL_EXPORT
+#else
+#define WLANQTUTILSIAP_EXPORT Q_DECL_IMPORT
+#endif
+
+// Class declaration
+
+class WLANQTUTILSIAP_EXPORT WlanQtUtilsIap : public WlanQtUtilsAp
{
-
+
public:
+ // Data types
+
+ /*!
+ Configuration IDs that can be read and set in this class (via
+ functions declared in the parent class). Values under 100 are
+ reserved for the parent class.
+
+ Remember to update traces/trace.properties file when modifying
+ this enum (tracing is also the cause for fixing the enum values).
+
+ Values available for IAPs:
+ - ConfIdIapId
+ - ConfIdName
+ - ConfIdNetworkId
+ - WlanQtUtilsAp::ConfIdSsid
+ - WlanQtUtilsAp::ConfIdSignalStrength
+ - WlanQtUtilsAp::ConfIdSecurityMode
+ - WlanQtUtilsAp::ConfIdWpaPskUse
+ */
+ enum ConfId {
+ //! int: IAP ID
+ ConfIdIapId = 100,
+ //! QString: Name
+ ConfIdName = 101,
+ //! int: Network ID
+ ConfIdNetworkId = 102
+ };
+
WlanQtUtilsIap();
- WlanQtUtilsIap(
- int id,
- int netId,
- QString name,
- WlanQtUtilsBearerType bearerType);
+
virtual ~WlanQtUtilsIap();
- int id() const;
- int networkId() const;
- QString name() const;
- WlanQtUtilsBearerType bearerType() const;
- WlanQtUtilsConnectionStatus connectionStatus() const;
-
- void setId(int id);
- void setNetworkId(int NetId);
- void setName(QString name);
- void setBearerType(WlanQtUtilsBearerType bearerType);
- void setConnectionStatus(WlanQtUtilsConnectionStatus connectionStatus);
+signals:
+
+public slots:
+
+protected:
+
+protected slots:
private:
- int id_;
- int netId_;
- QString name_;
- WlanQtUtilsBearerType bearerType_;
- WlanQtUtilsConnectionStatus connectionStatus_;
- // TODO: SNAP ID list
+
+ Q_DISABLE_COPY(WlanQtUtilsIap)
+
+private slots:
+
+private: // data
+
+ QScopedPointer<WlanQtUtilsIapPrivate> d_ptr; //!< Private implementation
+
+ // Friend classes
};
-#endif /* WLANQTUTILSIAP_H */
+#endif // WLANQTUTILSIAP_H