hti/HtiServicePlugins/HtiIpProxyServicePlugin/IPProxyEngine/Inc/MAbstractConnection.h
branchRCL_3
changeset 59 8ad140f3dd41
parent 0 a03f92240627
equal deleted inserted replaced
49:7fdc9a71d314 59:8ad140f3dd41
       
     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:  Host connection interface
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef MABSTRACTCONNETION_H
       
    21 #define MABSTRACTCONNETION_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32def.h>
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 class MSocket;
       
    28 class MHostConnection;
       
    29 
       
    30 // CLASS DECLARATION
       
    31 
       
    32 /**
       
    33 *  Host connection interface
       
    34 */
       
    35 NONSHARABLE_CLASS( MAbstractConnection )
       
    36     {
       
    37 
       
    38     public: // Abstract functions
       
    39 
       
    40         /**
       
    41         * Get pointer to current socket instance.
       
    42         * @return Pointer to current RSocket object. The ownership always
       
    43         *  remains in the class which derives from this interface.
       
    44         */
       
    45         virtual MSocket* GetSocket() = 0;
       
    46 
       
    47         /**
       
    48         * Get pointer to current host connection instance.
       
    49         * @return Pointer to current RSocket object. The ownership always
       
    50         *  remains in the class which derives from this interface.
       
    51         */
       
    52         virtual MHostConnection* GetHostConnection() = 0;
       
    53     };
       
    54 
       
    55 #endif      // MABSTRACTCONNETION_H
       
    56 
       
    57 // End of File