hti/HtiServicePlugins/HtiIpProxyServicePlugin/IPProxyEngine/Inc/MIPProxyEngine.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:  Main interface for IPProxyEngine
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef IPPROXYENGINE_H
       
    21 #define IPPROXYENGINE_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32def.h>
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 class MIPProxyEngineObserver;
       
    28 
       
    29 // CLASS DECLARATION
       
    30 
       
    31 /**
       
    32 *  Main interface for IPProxyEngine.
       
    33 */
       
    34 class MIPProxyEngine
       
    35     {
       
    36     public: // Abstract functions
       
    37         /**
       
    38         * Virtual destructor makes it possible to delete the object via this
       
    39         * interface.
       
    40         */
       
    41         virtual ~MIPProxyEngine() {};
       
    42 
       
    43         /**
       
    44         * Set observer of IPProxyEngine.
       
    45         * @param aObserver Pointer to observer.
       
    46         */
       
    47         virtual void SetObserver( MIPProxyEngineObserver* aObserver ) = 0;
       
    48 
       
    49         /**
       
    50         * Add port to listen.
       
    51         * @param aPort Port to listen.
       
    52         */
       
    53         virtual void AddPeerListeningPortL( TInt aPort ) = 0;
       
    54 
       
    55         /**
       
    56         * Starts listening peers.
       
    57         */
       
    58         virtual void StartListening() = 0;
       
    59 
       
    60         /**
       
    61         * Stops listening peers.
       
    62         */
       
    63         virtual void StopListening() = 0;
       
    64 
       
    65         /**
       
    66         * Disconnects all peers and the host connection.
       
    67         */
       
    68         virtual void DisconnectAllConnections() = 0;
       
    69     };
       
    70 
       
    71 #endif      // IPPROXYENGINE_H
       
    72 
       
    73 // End of File