connectivitylayer/isce/isirouter_dll/inc/misirouterlinkif.h
changeset 0 63b37f68c1ce
child 9 8486d82aef45
equal deleted inserted replaced
-1:000000000000 0:63b37f68c1ce
       
     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 __ISIROUTERLINKIF_H__
       
    21 #define __ISIROUTERLINKIF_H__
       
    22 
       
    23 #include <e32def.h>                 // For TInt, TAny
       
    24 
       
    25 
       
    26 class MISILinkRouterIf;
       
    27 
       
    28 /*
       
    29 * Abstract interface for router to use link services.
       
    30 */
       
    31 class MISIRouterLinkIf
       
    32     {
       
    33 
       
    34     public:
       
    35 
       
    36         /* 
       
    37         * Allocated memory for new link interface and returns it to caller.
       
    38         * Throws kern fault if not possible to create.
       
    39         * Created interface must be released with MISIRouterLinkIf::Release
       
    40         */
       
    41         static MISIRouterLinkIf* CreateLinkF( MISILinkRouterIf* aRouter,  const TUint8 aMediaId, const TUint8 aTrxId );
       
    42 
       
    43         /*
       
    44         * Releases resources reserved for interface implementation.
       
    45         */
       
    46         virtual void Release() = 0;
       
    47 
       
    48         /*
       
    49         * Sends a ISI message with given priority
       
    50         * @param aMsg, message to be send
       
    51         */
       
    52         virtual TBool Send( TDes8& aMsg ) = 0;
       
    53 
       
    54     };
       
    55 
       
    56 #endif /* __ISIROUTERLINKIF_H__ */