diff -r 301aeb18ae47 -r b47b808de481 wlanutilities/wlanentryplugin/inc/wlanstatusinfo.h --- a/wlanutilities/wlanentryplugin/inc/wlanstatusinfo.h Fri Sep 17 08:35:49 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,106 +0,0 @@ -/* -* Copyright (c) 2009 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" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* WLAN Status Info wrapper for WLAN entry plugin. -*/ - -#ifndef WLANSTATUSINFO_H -#define WLANSTATUSINFO_H - -// System includes - -#include - -// User includes - -// Forward declarations - -class WlanQtUtils; -class XQSettingsManager; - -// External data types - -// Constants - -// Class declaration - -class WlanStatusInfo : public QObject -{ - Q_OBJECT - -public: - - // Data types - - /*! - * WLAN Status value. - */ - enum { - //! WLAN is configured OFF. - WlanStatusOff = 0, - //! No WLAN connections. - WlanStatusIdle, - //! WLAN IAP is connected. - WlanStatusConnected, - }; - - explicit WlanStatusInfo(QObject *parent = 0); - - ~WlanStatusInfo(); - - int status() const; - - QString statusText() const; - -signals: - - /** - * Signal that informs that the WLAN status has changed. - */ - void statusUpdated(); - -public slots: - -protected: - -protected slots: - -private: - - Q_DISABLE_COPY(WlanStatusInfo) - - bool isWlanOn() const; - -private slots: - - void updateStatus(); - -private: // data - - //! WlanQtUtils instance. - WlanQtUtils *mWlanQtUtils; - - //! Settings manager for platform settings reading, writing & status changes. - XQSettingsManager *mSettingsManager; - - //! WLAN status text. - QString mStatusText; - - //! WLAN status value WlanStatus*. - int mStatus; - - // Friend classes -}; - -#endif // WLANSTATUSINFO_H