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 TASYMessage example class |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 // INCLUDE FILES |
|
21 #include "ASYmessage.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 TASYMessage::TASYMessage( 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 // This function returns the group id of the SAS message |
|
59 // ----------------------------------------------------------------------------- |
|
60 // |
|
61 TUint32 TASYMessage::GroupId() |
|
62 { |
|
63 |
|
64 return iGroupId; |
|
65 |
|
66 } |
|
67 |
|
68 // ----------------------------------------------------------------------------- |
|
69 // TSASMessage::MessageId() |
|
70 // This function returns the message id of the SAS message |
|
71 // ----------------------------------------------------------------------------- |
|
72 // |
|
73 TUint32 TASYMessage::MessageId() |
|
74 { |
|
75 |
|
76 return iMessageId; |
|
77 |
|
78 } |
|
79 |
|
80 // ----------------------------------------------------------------------------- |
|
81 // TSASMessage::Data() |
|
82 // This function returns the transaction id of the SAS message |
|
83 // ----------------------------------------------------------------------------- |
|
84 // |
|
85 TDesC8& TASYMessage::Data() |
|
86 { |
|
87 |
|
88 return iData; |
|
89 |
|
90 } |
|
91 |
|
92 // ========================== OTHER EXPORTED FUNCTIONS ========================= |
|
93 |
|
94 // End of File |
|