|
1 /* |
|
2 * Copyright (c) 2006 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: Definition of CNcdDeviceInteractionFactory |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include <f32file.h> |
|
20 #include <eikenv.h> |
|
21 |
|
22 #include "ncddeviceinteractionfactory.h" |
|
23 #include "ncdinstallationserviceimpl.h" |
|
24 #include "ncdinstallationservice.h" |
|
25 #include "ncddeviceserviceimpl.h" |
|
26 #include "ncddeviceservice.h" |
|
27 |
|
28 // ======== MEMBER FUNCTIONS ======== |
|
29 |
|
30 // --------------------------------------------------------------------------- |
|
31 // Create installation service. |
|
32 // --------------------------------------------------------------------------- |
|
33 // |
|
34 EXPORT_C MNcdInstallationService* |
|
35 NcdDeviceInteractionFactory::CreateInstallationServiceL() |
|
36 { |
|
37 return CNcdInstallationService::NewL(); |
|
38 } |
|
39 |
|
40 // --------------------------------------------------------------------------- |
|
41 // Create installation service. |
|
42 // --------------------------------------------------------------------------- |
|
43 // |
|
44 EXPORT_C MNcdInstallationService* |
|
45 NcdDeviceInteractionFactory::CreateInstallationServiceLC() |
|
46 { |
|
47 return CNcdInstallationService::NewLC(); |
|
48 } |
|
49 |
|
50 // --------------------------------------------------------------------------- |
|
51 // Create device service. |
|
52 // --------------------------------------------------------------------------- |
|
53 // |
|
54 EXPORT_C MNcdDeviceService* |
|
55 NcdDeviceInteractionFactory::CreateDeviceServiceL() |
|
56 { |
|
57 return CNcdDeviceService::NewL(); |
|
58 } |
|
59 |
|
60 // --------------------------------------------------------------------------- |
|
61 // Create device service. |
|
62 // --------------------------------------------------------------------------- |
|
63 // |
|
64 EXPORT_C MNcdDeviceService* |
|
65 NcdDeviceInteractionFactory::CreateDeviceServiceLC() |
|
66 { |
|
67 MNcdDeviceService* deviceService = CNcdDeviceService::NewL(); |
|
68 CleanupDeletePushL( deviceService ); |
|
69 return deviceService; |
|
70 } |