mtpfws/mtpfw/transports/transportapi/inc/mmtpconnectionmgr.h
changeset 0 d0791faffa3f
child 1 f8e15b44d440
equal deleted inserted replaced
-1:000000000000 0:d0791faffa3f
       
     1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 /**
       
    17  @file
       
    18  @internalTechnology
       
    19 */
       
    20 
       
    21 #ifndef MMTPCONNECTIONMGR_H
       
    22 #define MMTPCONNECTIONMGR_H
       
    23 
       
    24 #include <e32cmn.h>
       
    25 
       
    26 class MMTPTransportConnection;
       
    27 
       
    28 /** 
       
    29 Defines the MTP connection manager interface
       
    30 @internalTechnology
       
    31   
       
    32 */
       
    33 
       
    34 class MMTPConnectionMgr
       
    35     {
       
    36 public:
       
    37 
       
    38     /**
       
    39     Signals that an MTP transport layer connection has become unavailable.
       
    40     @param aTransportConnection Interface handle of the MTP transport layer 
       
    41     connection instance.
       
    42     */
       
    43     virtual void ConnectionClosed(MMTPTransportConnection& aTransportConnection) = 0;
       
    44     
       
    45     /**
       
    46     Signals that an MTP transport layer connection has become available.
       
    47     @param aTransportConnection Interface handle of the MTP transport layer 
       
    48     connection instance.
       
    49     @leave One of the system wide error codes, if a processing failure occurs.
       
    50     */
       
    51     virtual void ConnectionOpenedL(MMTPTransportConnection& aTransportConnection) = 0;
       
    52     
       
    53     /**
       
    54     Returns the Secure Id of the process that sent the request
       
    55     */
       
    56     virtual TUid ClientSId()=0;
       
    57             
       
    58     };
       
    59 #endif // MMTPCONNECTIONMGR_H