|
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: CSendingService implementation. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 // INCLUDE FILES |
|
21 #include <e32Base.h> |
|
22 #include <ECom.h> |
|
23 #include <CSendingService.h> |
|
24 #include <CMessageData.h> |
|
25 |
|
26 |
|
27 // ============================ MEMBER FUNCTIONS =============================== |
|
28 |
|
29 // ----------------------------------------------------------------------------- |
|
30 // CSendingService::NewL |
|
31 // Two-phased constructor. |
|
32 // ----------------------------------------------------------------------------- |
|
33 // |
|
34 EXPORT_C CSendingService* CSendingService::NewL( |
|
35 const TUid& aImplementationUid, |
|
36 CCoeEnv& aCoeEnv, |
|
37 CSendUiSingleton& aSingleton ) |
|
38 { |
|
39 // Get the instantiation |
|
40 TSendingServiceParams params( aCoeEnv, aSingleton ); |
|
41 CSendingService* sendingService = |
|
42 REINTERPRET_CAST( |
|
43 CSendingService*, REComSession::CreateImplementationL( |
|
44 aImplementationUid, |
|
45 _FOFF(CSendingService, iDtor_ID_Key), |
|
46 ¶ms ) |
|
47 ); |
|
48 |
|
49 return sendingService; |
|
50 } |
|
51 |
|
52 // ----------------------------------------------------------------------------- |
|
53 // Destructor |
|
54 // ----------------------------------------------------------------------------- |
|
55 // |
|
56 EXPORT_C CSendingService::~CSendingService() |
|
57 { |
|
58 REComSession::DestroyedImplementation(iDtor_ID_Key); |
|
59 } |
|
60 |
|
61 // ----------------------------------------------------------------------------- |
|
62 // C++ constructor |
|
63 // ----------------------------------------------------------------------------- |
|
64 // |
|
65 EXPORT_C CSendingService::CSendingService( CCoeEnv& aCoeEnv, CSendUiSingleton& aSingleton ) |
|
66 : iCoeEnv( aCoeEnv ), |
|
67 iSingleton( aSingleton ) |
|
68 { |
|
69 } |
|
70 |
|
71 // End of File |