wlanutilities/wlanqtutilities/wrapper/inc/wlanqtutilsconmonwrapperinfo_symbian.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 * Private implementation of wrapper for Symbian Connection Monitor
       
    16 * library's connection info interface.
       
    17 */
       
    18 
       
    19 #ifndef WLANQTUTILSCONMONWRAPPERINFO_SYMBIAN_H
       
    20 #define WLANQTUTILSCONMONWRAPPERINFO_SYMBIAN_H
       
    21 
       
    22 // System includes
       
    23 
       
    24 #include <rconnmon.h>
       
    25 
       
    26 // User includes
       
    27 
       
    28 #include "wlanqtutils.h"
       
    29 
       
    30 // Forward declarations
       
    31 
       
    32 class WlanQtUtilsConnection;
       
    33 class WlanQtUtilsConMonWrapper;
       
    34 
       
    35 // External data types
       
    36 
       
    37 // Constants
       
    38 
       
    39 // Class declaration
       
    40 
       
    41 class WlanQtUtilsConMonWrapperInfo : public MConnectionMonitorObserver
       
    42 {
       
    43 public:
       
    44     
       
    45     // Data types
       
    46 
       
    47     WlanQtUtilsConMonWrapperInfo(WlanQtUtilsConMonWrapper *wrapper);
       
    48 
       
    49     ~WlanQtUtilsConMonWrapperInfo();
       
    50 
       
    51     WlanQtUtilsConnection *ActiveConnection();
       
    52 
       
    53     WlanQtUtilsConnection *ConnectionInfo(uint connectionId);
       
    54 
       
    55 protected:
       
    56 
       
    57 private:
       
    58     
       
    59     TBool ConnectionInfoDetails(WlanQtUtilsConnection *connection);
       
    60 
       
    61     void EventL(const CConnMonEventBase& connMonEvent);
       
    62 
       
    63     WlanQtUtils::ConnStatus ConnMonConnStatusMap(TInt connStatus);
       
    64 
       
    65     TBool IsWlanConnection(TUint connectionId);
       
    66 
       
    67 private: // data
       
    68     
       
    69     // Owned data
       
    70 
       
    71     RConnectionMonitor iMonitor; //!< Handle to Connection Monitor Server
       
    72 
       
    73     TRequestStatus iStatus; //!< Request status
       
    74 
       
    75     //! ID of the connection we are currently monitoring
       
    76     TUint iMonitoringConnection;
       
    77 
       
    78     // Not owned data
       
    79     
       
    80     //! Public implementation to report progress to
       
    81     WlanQtUtilsConMonWrapper *q_ptr;
       
    82 
       
    83     // Friend classes
       
    84 
       
    85     // TestWlanQtUtils is defined as a friend class in order to be able to
       
    86     // call event handlers of wrappers.
       
    87     friend class TestWlanQtUtils;
       
    88 };
       
    89 
       
    90 #endif // WLANQTUTILSCONMONWRAPPERINFO_SYMBIAN_H