wlanutilities/wlansniffer/wlansnifferkeepalive/inc/wsfkeepaliveconnmondisc.h
branchRCL_3
changeset 24 63be7eb3fc78
equal deleted inserted replaced
23:b852595f5cbe 24:63be7eb3fc78
       
     1 /*
       
     2  * Copyright (c) 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  * Connection Monitor disconnect interface implementation.
       
    16  */
       
    17 
       
    18 #ifndef WSFKEEPALIVECONNMONDISC_H
       
    19 #define WSFKEEPALIVECONNMONDISC_H
       
    20 
       
    21 // System includes
       
    22  
       
    23 #include <e32base.h>
       
    24 
       
    25 // User includes
       
    26 
       
    27 // Forward declarations
       
    28 
       
    29 class RConnectionMonitor;
       
    30 
       
    31 // External data types
       
    32 
       
    33 // Global function prototypes
       
    34  
       
    35 // Constants
       
    36 
       
    37 // Class declaration
       
    38 
       
    39 /**
       
    40  *  Connection Monitor disconnect interface implementation.
       
    41  *  
       
    42  *  This class uses the Connection Monitor interface to disconnect
       
    43  *  connections regardless of the amount of users for the connection.
       
    44  */
       
    45 class CWsfKeepaliveConnMonDisc : public CBase
       
    46     {
       
    47     // Friend classes:
       
    48 
       
    49 public:
       
    50 
       
    51     // Data types
       
    52 
       
    53     /** Constructors */
       
    54     
       
    55     /**
       
    56      * Two-phased constructor.
       
    57      * 
       
    58      * @return New object allocated from heap
       
    59      */
       
    60     static CWsfKeepaliveConnMonDisc* NewL();
       
    61     
       
    62     /**> Destructor */
       
    63     virtual ~CWsfKeepaliveConnMonDisc();
       
    64 
       
    65 public:
       
    66 
       
    67     /**
       
    68      * Disconnects the given connection regardless of the amount of
       
    69      * users for the connection.
       
    70      * 
       
    71      * @param aConnectionId ID of the connection to disconnect
       
    72      */
       
    73     void Disconnect( TUint aConnectionId );
       
    74 
       
    75 protected:
       
    76     
       
    77 private:
       
    78 
       
    79     CWsfKeepaliveConnMonDisc();
       
    80 
       
    81     void ConstructL();
       
    82     
       
    83 private: // Data
       
    84 
       
    85     /**
       
    86      * Handle to Connection Monitor Server
       
    87      */
       
    88     RConnectionMonitor iMonitor;
       
    89     };
       
    90 
       
    91 #endif // WSFKEEPALIVECONNMONDISC_H