94
|
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: casoftwareregistry_p.h
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
98
|
18 |
#ifndef CASOFTWAREREGISTRY_P_H
|
|
19 |
#define CASOFTWAREREGISTRY_P_H
|
94
|
20 |
|
|
21 |
#include <QHash>
|
|
22 |
#include <QString>
|
|
23 |
|
98
|
24 |
#include <usif/usifcommon.h>
|
|
25 |
|
|
26 |
class QStringList;
|
94
|
27 |
class CaSoftwareRegistry;
|
107
|
28 |
class CaUninstallNotifier;
|
98
|
29 |
|
102
|
30 |
namespace Usif
|
94
|
31 |
{
|
|
32 |
class CComponentEntry;
|
|
33 |
}
|
|
34 |
|
|
35 |
class CaSoftwareRegistryPrivate
|
|
36 |
{
|
|
37 |
public:
|
|
38 |
|
|
39 |
typedef QHash<QString, QString> DetailMap;
|
|
40 |
|
|
41 |
explicit CaSoftwareRegistryPrivate(
|
|
42 |
CaSoftwareRegistry *softwareRegistryPublic);
|
|
43 |
~CaSoftwareRegistryPrivate();
|
|
44 |
|
98
|
45 |
bool getUninstallDetails(int componentId,
|
|
46 |
QString &componentName,
|
|
47 |
QStringList &applicationsUids,
|
|
48 |
QString &confirmationMessage);
|
102
|
49 |
|
98
|
50 |
bool getApplicationsUids(int componentId,
|
|
51 |
QStringList &appUids);
|
|
52 |
|
94
|
53 |
DetailMap entryDetails(int componentId) const;
|
102
|
54 |
|
|
55 |
QList<DetailMap> retrieveLogEntries() const;
|
107
|
56 |
CaUninstallNotifier *createUninstallNotifier() const;
|
|
57 |
|
|
58 |
private:
|
102
|
59 |
QList<DetailMap> retrieveLogEntriesL() const;
|
|
60 |
DetailMap entryDetailsL(
|
|
61 |
const Usif::CComponentEntry& entry) const;
|
98
|
62 |
void getUninstallDetailsL(int componentId,
|
|
63 |
QString &componentName,
|
|
64 |
QStringList &appUids,
|
|
65 |
QString &confirmationMessage);
|
|
66 |
void getApplicationsUidsL(int componentId,
|
|
67 |
QStringList &appUids);
|
102
|
68 |
DetailMap entryDetailsL(int componentId) const;
|
|
69 |
//TODO int should be changed to const Usif::TScrComponentOperationType&
|
|
70 |
//when the problem with usif headers is solved
|
|
71 |
QString operationTypeL(int operationType) const;
|
|
72 |
QString operationTime(TTime time) const;
|
98
|
73 |
private:
|
94
|
74 |
CaSoftwareRegistry *const m_q;
|
102
|
75 |
friend class T_CaSoftwareRegistry;
|
94
|
76 |
};
|
|
77 |
|
98
|
78 |
#endif // CASOFTWAREREGISTRY_P_H
|