wlanutilities/wlanqtutilities/base/inc/wlanqtutilsiapsettings.h
branchRCL_3
changeset 24 63be7eb3fc78
equal deleted inserted replaced
23:b852595f5cbe 24:63be7eb3fc78
       
     1 /*
       
     2 * Copyright (c) 2009-2010 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 * WLAN Qt Utilities WLAN IAP settings handling.
       
    16 */
       
    17 
       
    18 #ifndef WLANQTUTILSIAPSETTINGS_H
       
    19 #define WLANQTUTILSIAPSETTINGS_H
       
    20 
       
    21 // System includes
       
    22 
       
    23 #include <QObject>
       
    24 #include <QList>
       
    25 #include <QSharedPointer>
       
    26 #include <cmmanagerdefines_shim.h>
       
    27 
       
    28 // User includes
       
    29 
       
    30 // Forward declarations
       
    31 
       
    32 class CmManagerShim;
       
    33 class CmConnectionMethodShim;
       
    34 class WlanQtUtilsIap;
       
    35 class WlanQtUtilsAp;
       
    36 
       
    37 // External data types
       
    38 
       
    39 // Constants
       
    40 
       
    41 // Class declaration
       
    42 
       
    43 class WlanQtUtilsIapSettings : public QObject
       
    44 {
       
    45     Q_OBJECT
       
    46     
       
    47 public:
       
    48 
       
    49     // Data types
       
    50 
       
    51     explicit WlanQtUtilsIapSettings(QObject *parent = 0);
       
    52     
       
    53     virtual ~WlanQtUtilsIapSettings();
       
    54 
       
    55     void fetchIaps(QList< QSharedPointer<WlanQtUtilsIap> > &iapList) const;
       
    56 
       
    57     QSharedPointer<WlanQtUtilsIap> fetchIap(uint iapId) const;
       
    58     
       
    59     int createIap(const WlanQtUtilsAp *wlanAp);
       
    60     
       
    61     bool updateIap(int iapId, const WlanQtUtilsAp *wlanAp);
       
    62     
       
    63     void deleteIap(int iapId);
       
    64 
       
    65     void moveIapToInternetSnap(int iapId);
       
    66 
       
    67     void setAsHotspotIap(int iapId);
       
    68     
       
    69 signals:
       
    70 
       
    71 public slots:
       
    72 
       
    73 protected:
       
    74 
       
    75 protected slots:
       
    76 
       
    77 private:
       
    78 
       
    79     Q_DISABLE_COPY(WlanQtUtilsIapSettings)
       
    80 
       
    81     void storeSettings(
       
    82         const WlanQtUtilsAp *wlanAp,
       
    83         CmConnectionMethodShim *iap);
       
    84     
       
    85     void storeWepKey(
       
    86         const QString &key,
       
    87         int index,
       
    88         CmConnectionMethodShim *iap);
       
    89 
       
    90     CMManagerShim::ConnectionMethodAttribute mapWepKeyIndexHex(int index);
       
    91 
       
    92     CMManagerShim::ConnectionMethodAttribute mapWepKeyIndexAscii(int index);
       
    93     
       
    94     void traceIap(
       
    95         const WlanQtUtilsAp *ap,
       
    96         int traceType,
       
    97         uint iapId) const;
       
    98 
       
    99 private slots:
       
   100 
       
   101 private: // data
       
   102 
       
   103     CmManagerShim *mCmManager;      //!< CmManager instance
       
   104     
       
   105     // Friend classes
       
   106 };
       
   107 
       
   108 #endif // WLANQTUTILSIAPSETTINGS_H