wlanutilities/wlanqtutilities/base/src/wlanqtutilsiap.cpp
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 #include <QString>
       
    19 #include "wlanqtutilsiap.h"
       
    20 
       
    21 WlanQtUtilsIap::WlanQtUtilsIap() : 
       
    22     id_(0),
       
    23     netId_(0),
       
    24     name_(""),
       
    25     bearerType_(WlanQtUtilsBearerTypeNone),
       
    26     connectionStatus_(WlanQtUtilsConnectionStatusNone)
       
    27 {
       
    28 
       
    29 }
       
    30 
       
    31 WlanQtUtilsIap::WlanQtUtilsIap(
       
    32     int id,
       
    33     int netId,
       
    34     QString name,
       
    35     WlanQtUtilsBearerType bearerType) :
       
    36     id_(id), netId_(netId), name_(name), bearerType_(bearerType), connectionStatus_(WlanQtUtilsConnectionStatusNone)
       
    37 {
       
    38 }
       
    39 
       
    40 WlanQtUtilsIap::~WlanQtUtilsIap()
       
    41 {
       
    42 }
       
    43 
       
    44 int WlanQtUtilsIap::id() const
       
    45 {
       
    46     return id_;
       
    47 }
       
    48 
       
    49 int WlanQtUtilsIap::networkId() const
       
    50 {
       
    51     return netId_;
       
    52 }
       
    53 
       
    54 QString WlanQtUtilsIap::name() const
       
    55 {
       
    56     return name_;
       
    57 }
       
    58 
       
    59 WlanQtUtilsBearerType WlanQtUtilsIap::bearerType() const
       
    60 {
       
    61     return bearerType_;
       
    62 }
       
    63 
       
    64 WlanQtUtilsConnectionStatus WlanQtUtilsIap::connectionStatus() const
       
    65 {
       
    66     return connectionStatus_;
       
    67 }
       
    68 
       
    69 void WlanQtUtilsIap::setId(int id)
       
    70 {
       
    71     id_ = id;
       
    72 }
       
    73 
       
    74 void WlanQtUtilsIap::setNetworkId(int netId)
       
    75 {
       
    76     netId_ = netId;
       
    77 }
       
    78 
       
    79 void WlanQtUtilsIap::setName(QString name)
       
    80 {
       
    81     name_ = name;
       
    82 }
       
    83 
       
    84 void WlanQtUtilsIap::setBearerType(WlanQtUtilsBearerType bearerType)
       
    85 {
       
    86     bearerType_ = bearerType;
       
    87 }
       
    88 
       
    89 void WlanQtUtilsIap::setConnectionStatus(WlanQtUtilsConnectionStatus connectionStatus)
       
    90 {
       
    91     connectionStatus_ = connectionStatus;
       
    92 }