systemswstubs/wiredbearerreference/src/AdaptationMessage.cpp
changeset 43 e71858845f73
parent 40 b7e5ed8c1342
child 46 e1758cbb96ac
equal deleted inserted replaced
40:b7e5ed8c1342 43:e71858845f73
     1 /*
       
     2 * Copyright (c) 2002-2004 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:  The implementation of TAdaptationMessage example clas.s
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 // INCLUDE FILES
       
    21 #include "AdaptationMessage.h"
       
    22 
       
    23 // EXTERNAL DATA STRUCTURES
       
    24 
       
    25 // EXTERNAL FUNCTION PROTOTYPES
       
    26 
       
    27 // CONSTANTS
       
    28 
       
    29 // MACROS
       
    30 
       
    31 // LOCAL CONSTANTS AND MACROS
       
    32 
       
    33 // MODULE DATA STRUCTURES
       
    34 
       
    35 // LOCAL FUNCTION PROTOTYPES
       
    36 
       
    37 // FORWARD DECLARATIONS
       
    38 
       
    39 // ============================= LOCAL FUNCTIONS ===============================
       
    40 
       
    41 // ============================ MEMBER FUNCTIONS ===============================
       
    42 
       
    43 // -----------------------------------------------------------------------------
       
    44 // TSASMessage::TSASMessage
       
    45 // C++ default constructor can NOT contain any code, that
       
    46 // might leave.
       
    47 // -----------------------------------------------------------------------------
       
    48 //
       
    49 TAdaptationMessage::TAdaptationMessage( const TUint32 aGroupId, const TUint32 aMessageId, TDesC8& aData )
       
    50     : iGroupId( aGroupId ),
       
    51     iMessageId( aMessageId ),    
       
    52     iData( aData )
       
    53     {
       
    54     }
       
    55 
       
    56 // -----------------------------------------------------------------------------
       
    57 // TSASMessage::GroupId()
       
    58 // -----------------------------------------------------------------------------
       
    59 //
       
    60 TUint32 TAdaptationMessage::GroupId()
       
    61     {
       
    62 
       
    63     return iGroupId;
       
    64 
       
    65     }
       
    66 
       
    67 // -----------------------------------------------------------------------------
       
    68 // TSASMessage::MessageId()
       
    69 // -----------------------------------------------------------------------------
       
    70 //
       
    71 TUint32 TAdaptationMessage::MessageId()
       
    72     {
       
    73 
       
    74     return iMessageId;
       
    75 
       
    76     }
       
    77 
       
    78 // -----------------------------------------------------------------------------
       
    79 // TSASMessage::Data()
       
    80 // -----------------------------------------------------------------------------
       
    81 //
       
    82 TDesC8& TAdaptationMessage::Data()
       
    83     {
       
    84 
       
    85     return iData;
       
    86 
       
    87     }
       
    88 
       
    89 // ========================== OTHER EXPORTED FUNCTIONS =========================
       
    90 
       
    91 //  End of File