|
1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #include <ecom/ecom.h> |
|
17 |
|
18 // CONSTANTS |
|
19 // Plugin name must match the default_data field in the resource file (case sensitive!) |
|
20 _LIT8(KPluginName, "CtsySystemStatePluginPlugin"); |
|
21 const TUid KCtsySystemStatePluginServiceImplementationUid = { 0x102859CE }; |
|
22 |
|
23 // ----------------------------------------------------------------------------- |
|
24 // CCtsySystemStatePluginService::NewL |
|
25 // Factory method to create implementation. Implementation is found via ECom. |
|
26 // ----------------------------------------------------------------------------- |
|
27 // |
|
28 inline CCtsySystemStatePluginService* CCtsySystemStatePluginService::NewL() |
|
29 { |
|
30 TAny* interface = REComSession::CreateImplementationL(KCtsySystemStatePluginServiceImplementationUid, |
|
31 _FOFF(CCtsySystemStatePluginService, iDestructorIDKey)); |
|
32 |
|
33 CCtsySystemStatePluginService* service = reinterpret_cast<CCtsySystemStatePluginService*>(interface); |
|
34 |
|
35 return service; |
|
36 } |
|
37 |
|
38 // ----------------------------------------------------------------------------- |
|
39 // CCtsySystemStatePluginService::~CCtsySystemStatePluginService |
|
40 // Destructor informs ECom that implementation has been destroyed. |
|
41 // ----------------------------------------------------------------------------- |
|
42 inline CCtsySystemStatePluginService::~CCtsySystemStatePluginService() |
|
43 { |
|
44 REComSession::DestroyedImplementation(iDestructorIDKey); |
|
45 } |
|
46 |
|
47 |
|
48 // End of File |