hti/HtiServicePlugins/HtiIpProxyServicePlugin/IPProxyEngine/Inc/MHostConnection.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 MHOSTCONNECTION_H
       
    21 #define MHOSTCONNECTION_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32def.h>
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 class MHostConnectionObserver;
       
    28 class RSocket;
       
    29 
       
    30 // CLASS DECLARATION
       
    31 
       
    32 /**
       
    33 *  Host connection interface
       
    34 */
       
    35 NONSHARABLE_CLASS( MHostConnection )
       
    36     {
       
    37 
       
    38     public: // Abstract functions
       
    39 
       
    40         /**
       
    41         * Starts connecting procedure to host.
       
    42         */
       
    43         virtual void IssueConnectL() = 0;
       
    44 
       
    45         /**
       
    46         * Starts disconnection procedure.
       
    47         */
       
    48         virtual void IssueDisconnect() = 0;
       
    49 
       
    50         /**
       
    51         * Sets observer.
       
    52         * @param aObserver Pointer to observer.
       
    53         */
       
    54         virtual void SetObserver( MHostConnectionObserver* aObserver ) = 0;
       
    55 
       
    56         /**
       
    57         * @return Connection state.
       
    58         */
       
    59         virtual TBool IsConnected() = 0;
       
    60 
       
    61         /**
       
    62         * @return Pointer to current RSocket object. The ownership always
       
    63         * remains in this class.
       
    64         */
       
    65         virtual RSocket* Socket() = 0;
       
    66 
       
    67     };
       
    68 
       
    69 #endif      // MHOSTCONNECTION_H
       
    70 
       
    71 // End of File