equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2002 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: |
|
15 * Phonebook extension factory ECom interface |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef __CPbkExtensionFactory_H__ |
|
21 #define __CPbkExtensionFactory_H__ |
|
22 |
|
23 #include <ecom/ecom.h> |
|
24 #include <MPbkExtensionFactory.h> |
|
25 |
|
26 class CPbkExtensionFactory : public CBase, |
|
27 public MPbkExtensionFactory |
|
28 { |
|
29 public: |
|
30 static CPbkExtensionFactory* NewL(TUid aUid); |
|
31 ~CPbkExtensionFactory(); |
|
32 private: |
|
33 TUid iDtorIDKey; |
|
34 }; |
|
35 |
|
36 inline CPbkExtensionFactory* CPbkExtensionFactory::NewL(TUid aUid) |
|
37 { |
|
38 TAny* ptr = NULL; |
|
39 ptr = REComSession::CreateImplementationL |
|
40 (aUid, _FOFF(CPbkExtensionFactory, iDtorIDKey)); |
|
41 |
|
42 return reinterpret_cast<CPbkExtensionFactory*>(ptr); |
|
43 } |
|
44 |
|
45 inline CPbkExtensionFactory::~CPbkExtensionFactory() |
|
46 { |
|
47 REComSession::DestroyedImplementation(iDtorIDKey); |
|
48 } |
|
49 |
|
50 #endif // __CPbkExtensionFactory_H__ |
|
51 |
|
52 // End of File |