systemswstubs/wiredbearerreference/inc/AdaptationMessage.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 14 Jan 2010 07:14:53 +0200
changeset 0 0ce1b5ce9557
permissions -rw-r--r--
Revision: 201001

/*
* 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 <e32std.h>
#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