equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2007 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: esmricalviewer inline methods |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 //<cmail> |
|
20 #include "mruiuids.h" |
|
21 //</cmail> |
|
22 #include <ecom/ecom.h> |
|
23 |
|
24 // ----------------------------------------------------------------------------- |
|
25 // CESMRIcalViewer::NewL |
|
26 // ----------------------------------------------------------------------------- |
|
27 // |
|
28 inline CESMRIcalViewer* CESMRIcalViewer::NewL( |
|
29 MESMRIcalViewerCallback& aCallback ) |
|
30 { |
|
31 const TUid KMRUIImplUid = { KESMRIcalViewerImplementationUid }; |
|
32 |
|
33 TAny* callBack = static_cast<TAny*>( &aCallback ); |
|
34 |
|
35 TAny* ptr = REComSession::CreateImplementationL( |
|
36 KMRUIImplUid, |
|
37 _FOFF(CESMRIcalViewer, iDtor_ID_Key ), |
|
38 callBack ); |
|
39 |
|
40 return reinterpret_cast<CESMRIcalViewer*>(ptr); |
|
41 } |
|
42 |
|
43 // ----------------------------------------------------------------------------- |
|
44 // CESMRIcalViewer::~CESMRIcalViewer |
|
45 // ----------------------------------------------------------------------------- |
|
46 // |
|
47 inline CESMRIcalViewer::~CESMRIcalViewer() |
|
48 { |
|
49 REComSession::DestroyedImplementation( iDtor_ID_Key ); |
|
50 } |
|
51 |
|
52 // EOF |