wlanutilities/wlanwizard/tsrc/stubs/wlanqtutilsap.h
author hgs
Mon, 23 Aug 2010 13:30:09 +0300
changeset 53 bdc64aa9b954
child 58 301aeb18ae47
permissions -rw-r--r--
201033
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
53
hgs
parents:
diff changeset
     1
/*
hgs
parents:
diff changeset
     2
* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
hgs
parents:
diff changeset
     3
* All rights reserved.
hgs
parents:
diff changeset
     4
* This component and the accompanying materials are made available
hgs
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
hgs
parents:
diff changeset
     6
* which accompanies this distribution, and is available
hgs
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
hgs
parents:
diff changeset
     8
*
hgs
parents:
diff changeset
     9
* Initial Contributors:
hgs
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
hgs
parents:
diff changeset
    11
*
hgs
parents:
diff changeset
    12
* Contributors:
hgs
parents:
diff changeset
    13
*
hgs
parents:
diff changeset
    14
* Description:
hgs
parents:
diff changeset
    15
* This is the header file for WlanQtUtilsWlanAp class.
hgs
parents:
diff changeset
    16
*/
hgs
parents:
diff changeset
    17
hgs
parents:
diff changeset
    18
#ifndef STUB_WLANQTUTILSWLANAP_H
hgs
parents:
diff changeset
    19
#define STUB_WLANQTUTILSWLANAP_H
hgs
parents:
diff changeset
    20
hgs
parents:
diff changeset
    21
#include <QObject>
hgs
parents:
diff changeset
    22
#include <QMetaType>
hgs
parents:
diff changeset
    23
#include <QVariant>
hgs
parents:
diff changeset
    24
#include "cmmanagerdefines_shim.h"
hgs
parents:
diff changeset
    25
hgs
parents:
diff changeset
    26
class QString;
hgs
parents:
diff changeset
    27
class WlanQtUtilsApPrivate;
hgs
parents:
diff changeset
    28
hgs
parents:
diff changeset
    29
/**
hgs
parents:
diff changeset
    30
 * This class represents WLAN access point (AP).
hgs
parents:
diff changeset
    31
 */
hgs
parents:
diff changeset
    32
class WlanQtUtilsAp : public QObject
hgs
parents:
diff changeset
    33
{
hgs
parents:
diff changeset
    34
public:
hgs
parents:
diff changeset
    35
    
hgs
parents:
diff changeset
    36
    // Data types
hgs
parents:
diff changeset
    37
    
hgs
parents:
diff changeset
    38
    /*!
hgs
parents:
diff changeset
    39
        Configuration IDs that can be read and set in this class.
hgs
parents:
diff changeset
    40
hgs
parents:
diff changeset
    41
        ConfID's available for scan results:
hgs
parents:
diff changeset
    42
        - ConfIdSsid
hgs
parents:
diff changeset
    43
        - ConfIdBssid
hgs
parents:
diff changeset
    44
        - ConfIdSignalStrength
hgs
parents:
diff changeset
    45
        - ConfIdConnectionMode
hgs
parents:
diff changeset
    46
        - ConfIdSecurityMode
hgs
parents:
diff changeset
    47
        - ConfIdWpaPskUse
hgs
parents:
diff changeset
    48
        - ConfIdWpsSupported
hgs
parents:
diff changeset
    49
hgs
parents:
diff changeset
    50
        ConfID's for IAP creation and updates, these are
hgs
parents:
diff changeset
    51
        mandatory for all security modes: 
hgs
parents:
diff changeset
    52
        - ConfIdSsid
hgs
parents:
diff changeset
    53
        - ConfIdConnectionMode
hgs
parents:
diff changeset
    54
        - ConfIdSecurityMode
hgs
parents:
diff changeset
    55
        - ConfIdWepKey1     (Empty if not used) 
hgs
parents:
diff changeset
    56
        - ConfIdWepKey2     (Empty if not used)
hgs
parents:
diff changeset
    57
        - ConfIdWepKey3     (Empty if not used)
hgs
parents:
diff changeset
    58
        - ConfIdWepKey4     (Empty if not used)
hgs
parents:
diff changeset
    59
        - ConfIdWepDefaultIndex
hgs
parents:
diff changeset
    60
        - ConfIdWpaPskUse
hgs
parents:
diff changeset
    61
        - ConfIdWpaPsk      (Empty if not used)
hgs
parents:
diff changeset
    62
        - ConfIdHidden
hgs
parents:
diff changeset
    63
        - ConfIdWlanScanSSID
hgs
parents:
diff changeset
    64
    */
hgs
parents:
diff changeset
    65
    enum ConfId {
hgs
parents:
diff changeset
    66
        //! QString: WLAN Network Name (SSID)
hgs
parents:
diff changeset
    67
        ConfIdSsid = 0,
hgs
parents:
diff changeset
    68
        //! QByteArray: Basic Service Set Identifier
hgs
parents:
diff changeset
    69
        ConfIdBssid = 1,
hgs
parents:
diff changeset
    70
        //! int: signal strength in RSSI (dBm)
hgs
parents:
diff changeset
    71
        ConfIdSignalStrength = 2,
hgs
parents:
diff changeset
    72
        //! int: (CMManagerShim::WlanNetMode)
hgs
parents:
diff changeset
    73
        ConfIdConnectionMode = 3,
hgs
parents:
diff changeset
    74
        //! int: (CMManagerShim::WlanSecMode)
hgs
parents:
diff changeset
    75
        ConfIdSecurityMode = 4,
hgs
parents:
diff changeset
    76
        //! bool: true - WPA PSK, false - WPA EAP
hgs
parents:
diff changeset
    77
        ConfIdWpaPskUse = 5,
hgs
parents:
diff changeset
    78
        //! QString: Pre-Shared Key for WPA
hgs
parents:
diff changeset
    79
        //! Length: 8-63 - Ascii key
hgs
parents:
diff changeset
    80
        //! Length: 64 - Hex key
hgs
parents:
diff changeset
    81
        ConfIdWpaPsk = 6,
hgs
parents:
diff changeset
    82
        //! QString: WEP Key for index 1:
hgs
parents:
diff changeset
    83
        //! HEX: 
hgs
parents:
diff changeset
    84
        //! - 64 bit: allowed key length = 10
hgs
parents:
diff changeset
    85
        //! - 128 bit: allowed key length = 26
hgs
parents:
diff changeset
    86
        //! 
hgs
parents:
diff changeset
    87
        //! ASCII:
hgs
parents:
diff changeset
    88
        //! - 64 bit: allowed key length = 5   
hgs
parents:
diff changeset
    89
        //! - 128 bit: allowed key length = 13
hgs
parents:
diff changeset
    90
        ConfIdWepKey1 = 7,
hgs
parents:
diff changeset
    91
        //! QString: WEP Key for index 2
hgs
parents:
diff changeset
    92
        ConfIdWepKey2 = 8,
hgs
parents:
diff changeset
    93
        //! QString: WEP Key for index 3
hgs
parents:
diff changeset
    94
        ConfIdWepKey3 = 9,
hgs
parents:
diff changeset
    95
        //! QString: WEP Key for index 4
hgs
parents:
diff changeset
    96
        ConfIdWepKey4 = 10,
hgs
parents:
diff changeset
    97
        //! int: (CMManagerShim::WlanWepKeyIndex): Default WEP Key index
hgs
parents:
diff changeset
    98
        ConfIdWepDefaultIndex = 11,
hgs
parents:
diff changeset
    99
        //! bool: Is WLAN hidden (CMManagerShim::CmHidden).
hgs
parents:
diff changeset
   100
        ConfIdHidden = 12,
hgs
parents:
diff changeset
   101
        //! bool: Does WLAN AP need explicit scanning (CMManagerShim::WlanScanSSID)
hgs
parents:
diff changeset
   102
        ConfIdWlanScanSSID = 13,
hgs
parents:
diff changeset
   103
        //! bool: true - Wifi Protected setup is supported, false - not
hgs
parents:
diff changeset
   104
        ConfIdWpsSupported = 14
hgs
parents:
diff changeset
   105
    };
hgs
parents:
diff changeset
   106
    
hgs
parents:
diff changeset
   107
public:
hgs
parents:
diff changeset
   108
    WlanQtUtilsAp();
hgs
parents:
diff changeset
   109
    WlanQtUtilsAp(const WlanQtUtilsAp &ref);
hgs
parents:
diff changeset
   110
    ~WlanQtUtilsAp();
hgs
parents:
diff changeset
   111
    QVariant value(int identifier) const;
hgs
parents:
diff changeset
   112
    void setValue(int identifier, QVariant value );
hgs
parents:
diff changeset
   113
    bool operator==(const WlanQtUtilsAp & rhs ) const;
hgs
parents:
diff changeset
   114
    
hgs
parents:
diff changeset
   115
    static int compare(
hgs
parents:
diff changeset
   116
        const WlanQtUtilsAp *ap1,
hgs
parents:
diff changeset
   117
        const WlanQtUtilsAp *ap2);
hgs
parents:
diff changeset
   118
hgs
parents:
diff changeset
   119
private:
hgs
parents:
diff changeset
   120
    WlanQtUtilsApPrivate *d_ptr;
hgs
parents:
diff changeset
   121
hgs
parents:
diff changeset
   122
};
hgs
parents:
diff changeset
   123
hgs
parents:
diff changeset
   124
Q_DECLARE_METATYPE(WlanQtUtilsAp)
hgs
parents:
diff changeset
   125
hgs
parents:
diff changeset
   126
#endif /* WLANQTUTILSWLANIAP_H */