webservices/wsconnection/inc/seninternalserviceconnectioninterfaces.h
changeset 0 62f9d29f7211
equal deleted inserted replaced
-1:000000000000 0:62f9d29f7211
       
     1 /*
       
     2 * Copyright (c) 2005 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:     In case that Service Consumer (owner of SC instance) needs
       
    15 *                some special, even properietary interface, it can request
       
    16 *                an implementation of such interface by calling
       
    17 *                CSenServiceConnection::InterfaceByUid(UID) and acquire
       
    18 *                on of the M-class interfaces defined in this file.    
       
    19 *
       
    20 */
       
    21 
       
    22 
       
    23 
       
    24 
       
    25 #ifndef M_SEN_INTERNAL_SERVICE_CONNNECTION_INTERFACES_H
       
    26 #define M_SEN_INTERNAL_SERVICE_CONNNECTION_INTERFACES_H
       
    27 
       
    28 // CONST
       
    29 // UIDs for the supported, new *service connection interfaces*:
       
    30 const TUid KSenInterfaceUidInternalServiceConnection = { 0xE760F698 }; // MSenInternalServiceConnection
       
    31 
       
    32 // CLASS DECLARATION
       
    33 /**
       
    34  * Callback interface for service consumers
       
    35  */
       
    36 class MSenInternalServiceConnection
       
    37     {
       
    38     public: 
       
    39         virtual TInt PendingTrasanctionsCount() = 0;
       
    40         /**
       
    41         * Sends information about BLOB transfer progres to hostlet.
       
    42         *
       
    43         * @param aTxnId Transaction ID.
       
    44         * @param aIncoming ETrue if it is incoming BLOB, EFalse if outgoing.
       
    45         * @param aMessage SOAP message for incoming messages with BLOBs.
       
    46         * @param aCid CID of current BLOB.
       
    47         * @param aProgress Count of sent/received BLOB bytes.
       
    48         */
       
    49         virtual TInt SendProgressToHostlet( TInt aTxnId, 
       
    50                                             TBool aIncoming,
       
    51                                             const TDesC8& aMessage, 
       
    52                                             const TDesC8& aCid, 
       
    53                                             TInt aProgress ) = 0;
       
    54         
       
    55     };
       
    56    
       
    57 #endif //  M_SEN_INTERNAL_SERVICE_CONNNECTION_INTERFACES_H