diff -r 000000000000 -r 15bf7259bb7c uiacceltk/hitchcock/CommonInc/alfclientserver.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiacceltk/hitchcock/CommonInc/alfclientserver.h Tue Feb 02 07:56:43 2010 +0200 @@ -0,0 +1,55 @@ +/* +* Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: Inline methods related to client server communication +* +*/ + + + +#ifndef ALFCLIENTSERVER_H +#define ALFCLIENTSERVER_H + + +#include +#include "alfpanicreasons.h" + +/** + * Calculates padded length of descriptor. + * + * @since S60 5.0 + * @param aLength length + * @return padded length + */ +inline TInt AlfPaddedLength( TInt aLength ); + +/** + * Defines to which boundary lengths should be padded. + */ +const TInt KAlfClientServerRoundToBoundary = 4; + +/** + * Size of command batch buffer used in client & server side. + */ +const TInt KAlfClientServerDefaultCommandBatchBufferSize = 512; + +/** + * Panics client with specified reason. + * @param aMessage message to panic. + * @param aReason reason to use. + */ +inline void AlfPanicClient( const RMessage2& aMessage, TAlfPanicSrv aReason ); + +#include "alfclientserver.inl" + +#endif // ALFCLIENTSERVER_H