|
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: sim-dialog plugin implementation |
|
15 * |
|
16 */ |
|
17 |
|
18 // INCLUDE FILES |
|
19 #include <ecom/ECom.h> |
|
20 |
|
21 // ============================ MEMBER FUNCTIONS =============================== |
|
22 |
|
23 // ---------------------------------------------------------------------------- |
|
24 // CSimDlgPlugin::NewL |
|
25 // Two phase construction |
|
26 // ---------------------------------------------------------------------------- |
|
27 inline CSimDlgPlugin* CSimDlgPlugin::NewL( |
|
28 TUid aImpUid, |
|
29 CSmsMtmUi& aSmsMtmUi, |
|
30 CMsvSession& aSession ) |
|
31 { |
|
32 CSimDlgPlugin* self = CSimDlgPlugin::NewLC( aImpUid, aSmsMtmUi, aSession); |
|
33 CleanupStack::Pop(); |
|
34 |
|
35 return self; |
|
36 } |
|
37 |
|
38 // ---------------------------------------------------------------------------- |
|
39 // CSimDlgPlugin::NewLC |
|
40 // Two phase construction |
|
41 // ---------------------------------------------------------------------------- |
|
42 inline CSimDlgPlugin* CSimDlgPlugin::NewLC( |
|
43 TUid aImpUid, |
|
44 CSmsMtmUi& aSmsMtmUi, |
|
45 CMsvSession& aSession) |
|
46 { |
|
47 // Get the instantiation |
|
48 TSimDlgParams params( aSmsMtmUi, aSession ); |
|
49 |
|
50 TAny* implementation = REComSession::CreateImplementationL ( aImpUid, |
|
51 _FOFF ( CSimDlgPlugin, iDtor_ID_Key ), |
|
52 ¶ms); |
|
53 CSimDlgPlugin* self = REINTERPRET_CAST( CSimDlgPlugin*, implementation ); |
|
54 |
|
55 CleanupStack::PushL( self ); |
|
56 |
|
57 return self; |
|
58 } |
|
59 |
|
60 // ---------------------------------------------------------------------------- |
|
61 // CSimDlgPlugin::~CSimDlgPlugin |
|
62 // Destructor |
|
63 // ---------------------------------------------------------------------------- |
|
64 inline CSimDlgPlugin::~CSimDlgPlugin() |
|
65 { |
|
66 REComSession::DestroyedImplementation ( iDtor_ID_Key ); |
|
67 } |
|
68 |
|
69 // End of file |
|
70 |