uiacceltk/hitchcock/CommonInc/alfclientserver.h
changeset 0 15bf7259bb7c
equal deleted inserted replaced
-1:000000000000 0:15bf7259bb7c
       
     1 /*
       
     2 * Copyright (c) 2007 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:   Inline methods related to client server communication
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef ALFCLIENTSERVER_H
       
    21 #define ALFCLIENTSERVER_H
       
    22 
       
    23 
       
    24 #include <e32std.h>
       
    25 #include "alfpanicreasons.h"
       
    26 
       
    27 /**
       
    28  * Calculates padded length of descriptor.
       
    29  *
       
    30  * @since S60 5.0
       
    31  * @param aLength length
       
    32  * @return padded length
       
    33  */
       
    34 inline TInt AlfPaddedLength( TInt aLength );
       
    35 
       
    36 /**
       
    37  * Defines to which boundary lengths should be padded.
       
    38  */
       
    39 const TInt KAlfClientServerRoundToBoundary = 4;
       
    40 
       
    41 /**
       
    42  * Size of command batch buffer used in client & server side.
       
    43  */
       
    44 const TInt KAlfClientServerDefaultCommandBatchBufferSize = 512;
       
    45 
       
    46 /**
       
    47  * Panics client with specified reason.
       
    48  * @param aMessage message to panic.
       
    49  * @param aReason reason to use.
       
    50  */
       
    51 inline void AlfPanicClient( const RMessage2& aMessage, TAlfPanicSrv aReason );
       
    52 
       
    53 #include "alfclientserver.inl"
       
    54 
       
    55 #endif // ALFCLIENTSERVER_H