lbs/internal/lbstestserver/inc/messageutils.h
branchSymbian2
changeset 1 8758140453c0
child 6 c108117318cb
equal deleted inserted replaced
0:e8c1ea2c6496 1:8758140453c0
       
     1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of the License "Symbian Foundation License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // Definition of utilty class used to write ans read RMessage2 and send panic message 
       
    15 // 
       
    16 //
       
    17 
       
    18 
       
    19 
       
    20 /**
       
    21  @file
       
    22  @internalTechnology
       
    23 */
       
    24 
       
    25 #ifndef __LBSMESSAGEUTILS_H__
       
    26 #define __LBSMESSAGEUTILS_H__
       
    27 
       
    28 #include <e32base.h>
       
    29 
       
    30 /** 
       
    31 @internalTechnology
       
    32 @released
       
    33 
       
    34 Message object handling class, include message writing, reading and send panic message to client.
       
    35  */
       
    36 class MessageUtils
       
    37 	{
       
    38 public:
       
    39 	static TInt Write(const RMessage2& aMessage, const TInt aIndex, const TDesC16& aBuf);
       
    40 	static TInt Write(const RMessage2& aMessage, const TInt aIndex, const TDesC8& aBuf);
       
    41 	static TInt Read(const RMessage2& aMessage, const TInt aIndex, TDes16& aBuf);
       
    42 	static TInt Read(const RMessage2& aMessage, const TInt aIdnex, TDes8& aBuf);
       
    43 	static void PanicClient(const RMessage2&, const TDesC& aCat, const TInt aReason);
       
    44 	};
       
    45 	
       
    46 #endif // __LBSMESSAGEUTILS_H__