wlanutilities/wlanqtutilities/base/inc/wlanqtutilsactiveconn.h
branchGCC_SURGE
changeset 47 b3d8f88532b7
parent 34 30a5f517c615
parent 46 2fbd1d709fe7
equal deleted inserted replaced
34:30a5f517c615 47:b3d8f88532b7
     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 * This is the header file for WlanQtUtilsActiveConn class.
       
    16 */
       
    17 
       
    18 #ifndef WLANQTUTILSACTIVECONN_H
       
    19 #define WLANQTUTILSACTIVECONN_H
       
    20 
       
    21 #include <QObject>
       
    22 #include "wlanqtutilscommon.h"
       
    23 
       
    24 
       
    25 /**
       
    26  * This class represents an active connection.
       
    27  * TODO: consider deriving own classes for WLAN and Cellular connections.
       
    28  * Still, we can keep the same interface and avoid dynamic_casts.
       
    29  */
       
    30 class WlanQtUtilsActiveConn : public QObject
       
    31 {
       
    32 public:
       
    33 
       
    34     /**
       
    35      * Constructor.
       
    36      */
       
    37     WlanQtUtilsActiveConn();
       
    38 
       
    39     /**
       
    40      * Destructor.
       
    41      */
       
    42     virtual ~WlanQtUtilsActiveConn();
       
    43 
       
    44     /**
       
    45      * Getter.
       
    46      * 
       
    47      * @return Connection ID specific for Connection Monitor Server.
       
    48      */
       
    49     uint connectionId() const;
       
    50 
       
    51     /**
       
    52      * Setter.
       
    53      * 
       
    54      * @param[in] connectionId Connection ID specific for Connection Monitor Server.
       
    55      */
       
    56     void setConnectionId(uint connectionId);
       
    57 
       
    58     /**
       
    59      * Getter.
       
    60      * 
       
    61      * @return IAP ID.
       
    62      */
       
    63     uint iapId() const;
       
    64 
       
    65     /**
       
    66      * Setter.
       
    67      * 
       
    68      * @param[in] iapId IAP ID.
       
    69      */
       
    70     void setIapId(uint iapId);
       
    71 
       
    72     /**
       
    73      * Getter.
       
    74      * 
       
    75      * @return Status of the connection.
       
    76      */
       
    77     WlanQtUtilsConnectionStatus connectionStatus() const;
       
    78 
       
    79     /**
       
    80      * Setter.
       
    81      * 
       
    82      * @param[in] connectionStatus Status of the connection.
       
    83      */
       
    84     void setConnectionStatus(WlanQtUtilsConnectionStatus connectionStatus);
       
    85 
       
    86     /**
       
    87      * Getter.
       
    88      * 
       
    89      * @return Bearer type.
       
    90      */
       
    91     WlanQtUtilsBearerType bearerType() const;
       
    92 
       
    93     /**
       
    94      * Setter.
       
    95      * 
       
    96      * @param[in] bearerType Bearer type.
       
    97      */
       
    98     void setBearerType(WlanQtUtilsBearerType bearerType);
       
    99 
       
   100 private: // Data
       
   101 
       
   102     /** Connection Monitor Server specific connection ID. */
       
   103     uint connectionId_;
       
   104     /** IAP ID. */
       
   105     uint iapId_;
       
   106 
       
   107     /** Connection status. */
       
   108     WlanQtUtilsConnectionStatus connectionStatus_;
       
   109     /** Bearer type. */
       
   110     WlanQtUtilsBearerType bearerType_;
       
   111 };
       
   112 
       
   113 #endif /* WLANQTUTILSACTIVECONN_H */