wlanutilities/wlanqtutilities/base/inc/wlanqtutilsiapsettings.h
changeset 31 e8f4211554fb
child 39 7b3e49e4608a
equal deleted inserted replaced
30:ab513c8439db 31:e8f4211554fb
       
     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 
       
    27 // User includes
       
    28 
       
    29 // Forward declarations
       
    30 
       
    31 class CmManagerShim;
       
    32 class CmConnectionMethodShim;
       
    33 class WlanQtUtilsIap;
       
    34 class WlanQtUtilsAp;
       
    35 
       
    36 // External data types
       
    37 
       
    38 // Constants
       
    39 
       
    40 // Class declaration
       
    41 
       
    42 class WlanQtUtilsIapSettings : public QObject
       
    43 {
       
    44     Q_OBJECT
       
    45     
       
    46 public:
       
    47 
       
    48     // Data types
       
    49 
       
    50     explicit WlanQtUtilsIapSettings(QObject *parent = 0);
       
    51     
       
    52     virtual ~WlanQtUtilsIapSettings();
       
    53 
       
    54     void fetchIaps(QList< QSharedPointer<WlanQtUtilsIap> > &iapList) const;
       
    55 
       
    56     QSharedPointer<WlanQtUtilsIap> fetchIap(int iapId) const;
       
    57     
       
    58     int createIap(const WlanQtUtilsAp *wlanAp);
       
    59     
       
    60     bool updateIap(int iapId, const WlanQtUtilsAp *wlanAp);
       
    61     
       
    62     void deleteIap(int iapId);
       
    63 
       
    64     void moveIapToInternetSnap(int iapId);
       
    65     
       
    66 signals:
       
    67 
       
    68 public slots:
       
    69 
       
    70 protected:
       
    71 
       
    72 protected slots:
       
    73 
       
    74 private:
       
    75 
       
    76     Q_DISABLE_COPY(WlanQtUtilsIapSettings)
       
    77 
       
    78     void storeSettings(
       
    79         const WlanQtUtilsAp *wlanAp,
       
    80         CmConnectionMethodShim *iap);
       
    81     
       
    82     void storeWepKey(
       
    83         const QString &key,
       
    84         int index,
       
    85         CmConnectionMethodShim *iap);
       
    86 
       
    87 private slots:
       
    88 
       
    89 private: // data
       
    90 
       
    91     CmManagerShim *mCmManager;      //!< CmManager instance
       
    92     
       
    93     // Friend classes
       
    94 };
       
    95 
       
    96 #endif // WLANQTUTILSIAPSETTINGS_H