connectivitylayer/isce/isaaccessextension_dll/inc/misiobjectrouterif.h
changeset 5 8ccc39f9d787
equal deleted inserted replaced
4:510c70acdbf6 5:8ccc39f9d787
       
     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 the License "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: 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef __MISIOBJECTROUTERIF_H__
       
    21 #define __MISIOBJECTROUTERIF_H__
       
    22 
       
    23 class MISIRouterObjectIf;
       
    24 
       
    25 /*
       
    26 * Abstract interface for nameservice and communication manager to use router services.
       
    27 */
       
    28 class MISIObjectRouterIf
       
    29     {
       
    30 
       
    31     public:
       
    32         
       
    33         /*
       
    34         * Sends a message to router.
       
    35         * Responsibility to deallocate the message is transferred router.
       
    36         * @param aMessage, messages reference
       
    37         * @return, KErrNone if succesfull, KErrNotReady if transceiver is not present.
       
    38         */
       
    39         virtual TInt Send( TDes8& aMessage, const TUint8 aObjId ) = 0;
       
    40 
       
    41         /*
       
    42         * Informs router that channel is ready to be open.
       
    43         * If transceiver is not found sets the open pending.
       
    44         * Router shall complete the pending opens when transceiver is ready.
       
    45         * @param aUID, clients UID.
       
    46         * @param aObjId, reference to write clients object id.
       
    47         * @param aCallback, pointer to channel interface.
       
    48         */
       
    49         IMPORT_C static MISIObjectRouterIf* Connect( const TInt32 aUID, TUint8& aObjId, MISIRouterObjectIf* aCallback );        
       
    50 
       
    51     };
       
    52 
       
    53 #endif /* __MISIOBJECTROUTERIF_H__ */