wlanutilities/wlanqtutilities/base/src/wlanqtutilsconnection.cpp
branchRCL_3
changeset 25 f28ada11abbf
parent 24 63be7eb3fc78
equal deleted inserted replaced
24:63be7eb3fc78 25:f28ada11abbf
     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 connection status handler.
       
    16 */
       
    17 
       
    18 // System includes
       
    19 
       
    20 // User includes
       
    21 
       
    22 #include "wlanqtutilsconnection.h"
       
    23 
       
    24 /*!
       
    25     \class WlanQtUtilsConnection
       
    26     \brief WLAN connection status handler for WLAN Qt Utilities.
       
    27 */
       
    28 
       
    29 // External function prototypes
       
    30 
       
    31 // Local constants
       
    32 
       
    33 // ======== LOCAL FUNCTIONS ========
       
    34 
       
    35 // ======== MEMBER FUNCTIONS ========
       
    36 
       
    37 /*!
       
    38     Constructor. 
       
    39 */
       
    40 
       
    41 WlanQtUtilsConnection::WlanQtUtilsConnection() :
       
    42     mConnectionId(0),
       
    43     mIapId(0),
       
    44     mConnectionStatus(WlanQtUtils::ConnStatusNone)
       
    45 {
       
    46 }
       
    47 
       
    48 /*!
       
    49     Destructor. 
       
    50 */
       
    51 
       
    52 WlanQtUtilsConnection::~WlanQtUtilsConnection()
       
    53 {
       
    54 }
       
    55 
       
    56 /*!
       
    57     Connection ID getter.
       
    58 
       
    59     @return Connection ID specific for Connection Monitor Server.
       
    60 */
       
    61 
       
    62 uint WlanQtUtilsConnection::connectionId() const
       
    63 {
       
    64     return mConnectionId;
       
    65 }
       
    66 
       
    67 /*!
       
    68     Connection ID setter.
       
    69 
       
    70     @param [in] connectionId Connection Monitor Server Connection ID.
       
    71 */
       
    72 
       
    73 void WlanQtUtilsConnection::setConnectionId(uint connectionId)
       
    74 {
       
    75     mConnectionId = connectionId;
       
    76 }
       
    77 
       
    78 /*!
       
    79     IAP ID getter.
       
    80 
       
    81     @return IAP ID.
       
    82 */
       
    83 
       
    84 uint WlanQtUtilsConnection::iapId() const
       
    85 {
       
    86     return mIapId;
       
    87 }
       
    88 
       
    89 /*!
       
    90     IAP ID setter.
       
    91 
       
    92     @param [in] iapId IAP ID.
       
    93 */
       
    94 
       
    95 void WlanQtUtilsConnection::setIapId(uint iapId)
       
    96 {
       
    97     mIapId = iapId;
       
    98 }
       
    99 
       
   100 /*!
       
   101     Connection status getter.
       
   102 
       
   103     @return Status of the connection.
       
   104 */
       
   105 
       
   106 WlanQtUtils::ConnStatus WlanQtUtilsConnection::connectionStatus() const
       
   107 {
       
   108     return mConnectionStatus;
       
   109 }
       
   110 
       
   111 /*!
       
   112     Connection status setter.
       
   113 
       
   114     @param [in] connectionStatus Status of the connection.
       
   115 */
       
   116 
       
   117 void WlanQtUtilsConnection::setConnectionStatus(
       
   118     WlanQtUtils::ConnStatus connectionStatus)
       
   119 {
       
   120     mConnectionStatus = connectionStatus;
       
   121 }