|
1 /* |
|
2 * Copyright (c) 2009 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: Implementation of CCDSYMessagesServiceLogic class |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 // INCLUDE FILES |
|
22 #include "CDSYMessagesServiceLogic.h" |
|
23 #include "commondsy_debug.h" |
|
24 |
|
25 |
|
26 |
|
27 // EXTERNAL DATA STRUCTURES |
|
28 // EXTERNAL FUNCTION PROTOTYPES |
|
29 // CONSTANTS |
|
30 // MACROS |
|
31 // LOCAL CONSTANTS AND MACROS |
|
32 // MODULE DATA STRUCTURES |
|
33 // LOCAL FUNCTION PROTOTYPES |
|
34 // FORWARD DECLARATIONS |
|
35 |
|
36 |
|
37 |
|
38 // ============================= LOCAL FUNCTIONS =============================== |
|
39 |
|
40 |
|
41 |
|
42 // ============================ MEMBER FUNCTIONS =============================== |
|
43 |
|
44 |
|
45 |
|
46 // ----------------------------------------------------------------------------- |
|
47 // CCDSYMessagesServiceLogic::CCDSYMessagesServiceLogic |
|
48 // ----------------------------------------------------------------------------- |
|
49 CCDSYMessagesServiceLogic::CCDSYMessagesServiceLogic( const TUint32 aMessageGroup, const TUint32 aMessageID, const TUint32 aMessageTransactionID, const TBool aDynamicRegistration, MCDSYServiceLogic* aCDSYServiceLogic ) |
|
50 : iMessageGroup( aMessageGroup ) |
|
51 , iMessageID( aMessageID ) |
|
52 , iMessageTransactionID( aMessageTransactionID ) |
|
53 , iDynamicRegistration( aDynamicRegistration ) |
|
54 , iCDSYServiceLogic( aCDSYServiceLogic ) |
|
55 { |
|
56 COM_TRACE_4( "CDSY - CCDSYMessagesServiceLogic::CCDSYMessagesServiceLogic(0x%x, 0x%x, 0x%x, 0x%x)", aMessageGroup, aMessageID, aMessageTransactionID, aDynamicRegistration ); |
|
57 COM_TRACE_1( "CDSY - CCDSYMessagesServiceLogic::CCDSYMessagesServiceLogic(0x%x)", aCDSYServiceLogic ); |
|
58 |
|
59 COM_TRACE_( "CDSY - CCDSYMessagesServiceLogic::CCDSYMessagesServiceLogic - return void" ); |
|
60 } |
|
61 |
|
62 |
|
63 |
|
64 // ----------------------------------------------------------------------------- |
|
65 // CCDSYMessagesServiceLogic::~CCDSYMessagesServiceLogic |
|
66 // ----------------------------------------------------------------------------- |
|
67 CCDSYMessagesServiceLogic::~CCDSYMessagesServiceLogic() |
|
68 { |
|
69 COM_TRACE_( "CDSY - CCDSYMessagesServiceLogic::~CCDSYMessagesServiceLogic()" ); |
|
70 |
|
71 iCDSYServiceLogic = NULL; |
|
72 |
|
73 COM_TRACE_( "CDSY - CCDSYMessagesServiceLogic::~CCDSYMessagesServiceLogic - return void" ); |
|
74 } |
|
75 |
|
76 |
|
77 |
|
78 // ----------------------------------------------------------------------------- |
|
79 // CCDSYMessagesServiceLogic::NewL |
|
80 // ----------------------------------------------------------------------------- |
|
81 CCDSYMessagesServiceLogic* CCDSYMessagesServiceLogic::NewL( const TUint32 aMessageGroup, const TUint32 aMessageID, MCDSYServiceLogic* aCDSYServiceLogic ) |
|
82 { |
|
83 COM_TRACE_3( "CDSY - CCDSYMessagesServiceLogic::NewL(0x%x, 0x%x, 0x%x)", aMessageGroup, aMessageID, aCDSYServiceLogic ); |
|
84 |
|
85 CCDSYMessagesServiceLogic* messagesServiceLogic = new ( ELeave ) CCDSYMessagesServiceLogic( aMessageGroup, aMessageID, 0, EFalse, aCDSYServiceLogic ); |
|
86 |
|
87 COM_TRACE_1( "CDSY - CCDSYMessagesServiceLogic::NewL - return 0x%x", messagesServiceLogic ); |
|
88 return messagesServiceLogic; |
|
89 } |
|
90 |
|
91 |
|
92 |
|
93 // ----------------------------------------------------------------------------- |
|
94 // CCDSYMessagesServiceLogic::NewL |
|
95 // ----------------------------------------------------------------------------- |
|
96 CCDSYMessagesServiceLogic* CCDSYMessagesServiceLogic::NewL( const TUint32 aMessageGroup, const TUint32 aMessageID, const TUint32 aMessageTransactionID, MCDSYServiceLogic* aCDSYServiceLogic ) |
|
97 { |
|
98 COM_TRACE_4( "CDSY - CCDSYMessagesServiceLogic::NewL(0x%x, 0x%x, 0x%x, 0x%x)", aMessageGroup, aMessageID, aMessageTransactionID, aCDSYServiceLogic ); |
|
99 |
|
100 CCDSYMessagesServiceLogic* messagesServiceLogic = new ( ELeave ) CCDSYMessagesServiceLogic( aMessageGroup, aMessageID, aMessageTransactionID, ETrue, aCDSYServiceLogic ); |
|
101 |
|
102 COM_TRACE_1( "CDSY - CCDSYMessagesServiceLogic::NewL - return 0x%x", messagesServiceLogic ); |
|
103 return messagesServiceLogic; |
|
104 } |
|
105 |