|
1 /* |
|
2 * Copyright (c) 2010 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: ?Description |
|
15 * |
|
16 */ |
|
17 #include <QtGlobal> |
|
18 #include <QMetaType> |
|
19 #include <QString> |
|
20 |
|
21 |
|
22 #include "casoftwareregistry.h" |
|
23 #include "casoftwareregistry_p.h" |
|
24 |
|
25 |
|
26 /* |
|
27 Constructor |
|
28 \param servicePublic Pointer to object of the public class. |
|
29 */ |
|
30 CaSoftwareRegistryPrivate::CaSoftwareRegistryPrivate(CaSoftwareRegistry *servicePublic) : |
|
31 m_q(servicePublic) |
|
32 { |
|
33 } |
|
34 |
|
35 /* |
|
36 Destructor. |
|
37 */ |
|
38 CaSoftwareRegistryPrivate::~CaSoftwareRegistryPrivate() |
|
39 { |
|
40 } |
|
41 |
|
42 /* |
|
43 Stub for windows development. |
|
44 \param Component id. |
|
45 \return Map with dummy entries when component id is greater than 0, otherwise |
|
46 empty map. |
|
47 */ |
|
48 CaSoftwareRegistryPrivate::DetailMap CaSoftwareRegistryPrivate::entryDetails( |
|
49 int componentId) const |
|
50 { |
|
51 CaSoftwareRegistry::DetailMap detailMap; |
|
52 |
|
53 if (componentId >=1) { |
|
54 detailMap[CaSoftwareRegistry::componentNameKey()] = "no data"; |
|
55 |
|
56 detailMap[CaSoftwareRegistry::componentVersionKey()] = "no data"; |
|
57 |
|
58 detailMap[CaSoftwareRegistry::componentVendorKey()] = "no data"; |
|
59 |
|
60 detailMap[CaSoftwareRegistry::componentDriveInfoKey()] = "no data"; |
|
61 |
|
62 detailMap[CaSoftwareRegistry::componentSizeKey()] = "no data"; |
|
63 |
|
64 detailMap[CaSoftwareRegistry::componentTypeKey()] = "no data"; |
|
65 } |
|
66 return detailMap; |
|
67 } |
|
68 |