diff -r e71858845f73 -r e1758cbb96ac systemswstubs/wiredbearerreference/inc/AdaptationMessage.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/systemswstubs/wiredbearerreference/inc/AdaptationMessage.h Mon Oct 04 00:04:35 2010 +0300 @@ -0,0 +1,94 @@ +/* +* Copyright (c) 2002-2004 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: Used as an reference implementation. +* +*/ + + + +#ifndef ADAPTATIONMESSAGE_H +#define ADAPTATIONMESSAGE_H + +// INCLUDES +#include +#include "AdaptationMessageDefinitions.h" + +// CONSTANTS + +// MACROS + +// DATA TYPES + +// FUNCTION PROTOTYPES + +// FORWARD DECLARATIONS + +// CLASS DECLARATION +NONSHARABLE_CLASS( TAdaptationMessage ); + +/** +* TASYMessage +* This class declarates the TASYMessage, which is a generic message class example. +* message class. +* +*/ +class TAdaptationMessage + { + public: // Constructors and destructor + + /** + * Constructor. + * @param aGroup Message group. + * @param aID Message ID. + * @param aData Pointer to data. + */ + TAdaptationMessage( const TUint32 aGroupId, const TUint32 aMessageId, + TDesC8& aData ); + + public: // New functions + + /** + * Returns message group + * @return Message group + */ + TUint32 GroupId(); + + /** + * Returns message id + * @return Message id + */ + TUint32 MessageId(); + + /** + * Returns message data + * @return Message data + */ + TDesC8& Data(); + + + private: // Data + // Group id + TUint32 iGroupId; + + // Message id + TUint32 iMessageId; + + // Message data + TDesC8& iData; + + }; + +#endif // ADAPTATIONMESSAGE_H + +// End of File