wlanutilities/wlanentryplugin/inc/wlanstatusinfo.h
changeset 19 10810c91db26
child 31 e8f4211554fb
equal deleted inserted replaced
3:ff3b37722600 19:10810c91db26
       
     1 /*
       
     2  * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3  * All rights reserved.
       
     4  * This component and the accompanying materials are made available
       
     5  * under the terms of "Eclipse Public License v1.0"
       
     6  * which accompanies this distribution, and is available
       
     7  * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8  *
       
     9  * Initial Contributors:
       
    10  * Nokia Corporation - initial contribution.
       
    11  *
       
    12  * Contributors:
       
    13  *
       
    14  * Description:
       
    15  * 
       
    16  */
       
    17 
       
    18 #ifndef WLANSTATUSINFO_H
       
    19 #define WLANSTATUSINFO_H
       
    20 
       
    21 // System includes
       
    22 
       
    23 #include <QObject>
       
    24 
       
    25 // User includes
       
    26 
       
    27 // Forward declarations
       
    28 
       
    29 class WlanQtUtils;
       
    30 
       
    31 // External data types
       
    32 
       
    33 // Constants
       
    34 
       
    35 // Class declaration
       
    36 
       
    37 class WlanStatusInfo : public QObject
       
    38 {
       
    39     Q_OBJECT
       
    40     
       
    41 public:
       
    42 
       
    43     // Data types
       
    44 
       
    45     /**
       
    46      * WLAN Status value.
       
    47      */
       
    48     enum {
       
    49         /** WLAN is configured OFF. */
       
    50         WlanStatusOff = 0,
       
    51         /** No WLAN connections. */
       
    52         WlanStatusIdle,
       
    53         /** WLAN IAP is connected. */
       
    54         WlanStatusConnected,
       
    55     };
       
    56 
       
    57     explicit WlanStatusInfo(QObject *parent = 0);
       
    58     
       
    59     ~WlanStatusInfo();
       
    60 
       
    61     int status();
       
    62 
       
    63     QString statusText();
       
    64 
       
    65 signals:
       
    66 
       
    67     /**
       
    68      * Signal that informs that the WLAN status has changed.
       
    69      */
       
    70     void statusUpdated();
       
    71 
       
    72 public slots:
       
    73 
       
    74 protected:
       
    75 
       
    76 protected slots:
       
    77 
       
    78 private:
       
    79 
       
    80     Q_DISABLE_COPY(WlanStatusInfo)
       
    81 
       
    82 private slots:
       
    83 
       
    84     void updateStatus();
       
    85 
       
    86 private: // data
       
    87 
       
    88     WlanQtUtils *mWlanQtUtils;      // WlanQtUtils instance.
       
    89     QString mStatusText;            // WLAN status text.
       
    90     int mStatus;                    // WLAN status value WlanStatus*.
       
    91 
       
    92     // Friend classes
       
    93 
       
    94 };
       
    95 
       
    96 #endif // WLANSTATUSINFO_H