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: ?Description
|
|
15 |
*
|
|
16 |
*/
|
98
|
17 |
#include <HbParameterLengthLimiter>
|
102
|
18 |
#include <HbExtendedLocale>
|
94
|
19 |
#include <QMetaType>
|
|
20 |
#include <QScopedPointer>
|
98
|
21 |
#include <QStringList>
|
102
|
22 |
#include <QDateTime>
|
|
23 |
#undef SYMBIAN_ENABLE_SPLIT_HEADERS //TODO this is work around
|
|
24 |
#include <usif/scr/screntries.h>
|
94
|
25 |
#include <usif/scr/scr.h>
|
|
26 |
#include <xqconversions.h>
|
96
|
27 |
#include <driveinfo.h>
|
119
|
28 |
#include <hbtextresolversymbian.h>
|
94
|
29 |
|
107
|
30 |
#include "cauninstallnotifier.h"
|
|
31 |
#include "cauninstallnotifier_p.h"
|
94
|
32 |
#include "casoftwareregistry.h"
|
|
33 |
#include "casoftwareregistry_p.h"
|
102
|
34 |
#include "cadefs.h"
|
|
35 |
#include "caarraycleanup.inl"
|
119
|
36 |
#include "cautils.h"
|
94
|
37 |
|
|
38 |
using namespace Usif;
|
98
|
39 |
_LIT(KConfirmMessageKey, "MIDlet-Delete-Confirm");
|
102
|
40 |
_LIT(KCaScrPropertyDomainCategory, "Domain-Category");
|
|
41 |
_LIT(KCaScrPropertyMidletDescryption, "MIDlet-Description");
|
116
|
42 |
_LIT(KNotNamedMmc, "NO NAME");
|
|
43 |
const int maxLogsCount = 20; // should be 50 - workaround for
|
106
|
44 |
// ou1cimx1#476143 Dialog crash when label contains big amount of lines
|
98
|
45 |
|
94
|
46 |
/*!
|
|
47 |
Constructor
|
|
48 |
\param servicePublic Pointer to object of the public class.
|
|
49 |
*/
|
|
50 |
CaSoftwareRegistryPrivate::CaSoftwareRegistryPrivate(
|
102
|
51 |
CaSoftwareRegistry *servicePublic):
|
94
|
52 |
m_q(servicePublic)
|
|
53 |
{
|
|
54 |
}
|
|
55 |
|
|
56 |
/*!
|
|
57 |
Destructor.
|
|
58 |
*/
|
|
59 |
CaSoftwareRegistryPrivate::~CaSoftwareRegistryPrivate()
|
|
60 |
{
|
116
|
61 |
|
94
|
62 |
}
|
|
63 |
|
|
64 |
/*!
|
98
|
65 |
Provides details needed for uninstalling process of Java applications.
|
|
66 |
\param[in] componentId component id of an application to be uninstalled.
|
|
67 |
\param[out] componentName a name of the component.
|
|
68 |
\param[out] applicationsUids a list of uids of applications in the package
|
|
69 |
of the given component id.
|
|
70 |
\param[out] confirmationMessage optional deletion confirmation message,
|
|
71 |
null string means the lack of the message.
|
|
72 |
\retval true if there is no error.
|
|
73 |
*/
|
|
74 |
|
|
75 |
bool CaSoftwareRegistryPrivate::getUninstallDetails(int componentId,
|
102
|
76 |
QString &componentName,
|
|
77 |
QStringList &applicationsUids,
|
|
78 |
QString &confirmationMessage)
|
98
|
79 |
{
|
|
80 |
TRAPD(error, getUninstallDetailsL(componentId,
|
102
|
81 |
componentName,
|
|
82 |
applicationsUids,
|
|
83 |
confirmationMessage)
|
|
84 |
);
|
98
|
85 |
return error == KErrNone;
|
|
86 |
}
|
|
87 |
|
|
88 |
/*!
|
|
89 |
Provides a list of uids of applications installed by the given package.
|
|
90 |
\param[in] componentId component id of an application to be uninstalled.
|
|
91 |
\param[out] applicationsUids a list of uids of applications in the package
|
|
92 |
of the given component id.
|
|
93 |
\retval true if there is no error.
|
|
94 |
*/
|
|
95 |
|
|
96 |
bool CaSoftwareRegistryPrivate::getApplicationsUids(int componentId,
|
102
|
97 |
QStringList &applicationsUids)
|
98
|
98 |
{
|
|
99 |
TRAPD(error, getApplicationsUidsL(componentId, applicationsUids));
|
|
100 |
return error == KErrNone;
|
|
101 |
}
|
|
102 |
|
|
103 |
/*!
|
|
104 |
Provides details needed for uninstalling process of Java applications
|
|
105 |
(leaving version).
|
|
106 |
\param[in] componentId component id of an application to be uninstalled.
|
|
107 |
\param[out] componentName a name of the component.
|
|
108 |
\param[out] applicationsUids a list of uids of applications in the package
|
|
109 |
of the given component id.
|
|
110 |
\param[out] confirmationMessage optional deletion confirmation message,
|
|
111 |
null string means the lack of the message.
|
|
112 |
*/
|
|
113 |
void CaSoftwareRegistryPrivate::getUninstallDetailsL(int componentId,
|
102
|
114 |
QString &componentName,
|
|
115 |
QStringList &appUids,
|
|
116 |
QString &confirmationMessage)
|
98
|
117 |
{
|
|
118 |
componentName.clear();
|
|
119 |
appUids.clear();
|
|
120 |
confirmationMessage.clear();
|
|
121 |
|
|
122 |
if (componentId >= 1) {
|
|
123 |
TComponentId componentIdValue(componentId);
|
|
124 |
RArray<TUid> appUidsArray;
|
|
125 |
CleanupClosePushL(appUidsArray);
|
|
126 |
CLocalizablePropertyEntry *confirmationMessageProperty = NULL;
|
|
127 |
|
|
128 |
RSoftwareComponentRegistry softwareComponentRegistry;
|
|
129 |
CleanupClosePushL(softwareComponentRegistry);
|
|
130 |
User::LeaveIfError(softwareComponentRegistry.Connect());
|
|
131 |
|
|
132 |
CComponentEntry *entry = CComponentEntry::NewLC();
|
|
133 |
softwareComponentRegistry.GetComponentL(componentId, *entry);
|
102
|
134 |
softwareComponentRegistry.GetAppUidsForComponentL(
|
|
135 |
componentIdValue, appUidsArray);
|
98
|
136 |
|
102
|
137 |
CPropertyEntry *confirmationProperty
|
|
138 |
= softwareComponentRegistry.GetComponentPropertyL(
|
|
139 |
componentId, KConfirmMessageKey);
|
|
140 |
if (confirmationProperty
|
|
141 |
&& confirmationProperty->PropertyType()
|
|
142 |
== CPropertyEntry::ELocalizedProperty) {
|
|
143 |
confirmationMessageProperty
|
|
144 |
= static_cast<CLocalizablePropertyEntry *>(
|
|
145 |
confirmationProperty);
|
98
|
146 |
} else {
|
|
147 |
delete confirmationProperty;
|
|
148 |
confirmationProperty = NULL;
|
|
149 |
}
|
|
150 |
|
|
151 |
QT_TRYCATCH_LEAVING(componentName =
|
|
152 |
XQConversions::s60DescToQString(entry->Name());
|
|
153 |
for (TInt i = 0; i<appUidsArray.Count(); i++) {
|
|
154 |
appUids.append(QString::number(appUidsArray[i].iUid));
|
|
155 |
}
|
|
156 |
if (confirmationMessageProperty) {
|
|
157 |
confirmationMessage = XQConversions::s60DescToQString(
|
102
|
158 |
confirmationMessageProperty->StrValue());
|
98
|
159 |
}
|
|
160 |
);
|
|
161 |
|
|
162 |
CleanupStack::PopAndDestroy(3, &appUidsArray);
|
|
163 |
}
|
|
164 |
}
|
|
165 |
|
|
166 |
/*!
|
|
167 |
Provides details needed for uninstalling process of Java applications
|
|
168 |
(leaving version).
|
|
169 |
\param[in] componentId component id of an application to be uninstalled.
|
|
170 |
\param[out] applicationsUids a list of uids of applications in the package
|
|
171 |
of the given component id.
|
|
172 |
*/
|
|
173 |
void CaSoftwareRegistryPrivate::getApplicationsUidsL(int componentId,
|
|
174 |
QStringList &appUids)
|
|
175 |
{
|
|
176 |
appUids.clear();
|
|
177 |
if (componentId >= 1) {
|
|
178 |
TComponentId componentIdValue(componentId);
|
|
179 |
RArray<TUid> appUidsArray;
|
|
180 |
CleanupClosePushL(appUidsArray);
|
|
181 |
|
|
182 |
RSoftwareComponentRegistry softwareComponentRegistry;
|
|
183 |
CleanupClosePushL(softwareComponentRegistry);
|
|
184 |
User::LeaveIfError(softwareComponentRegistry.Connect());
|
|
185 |
|
102
|
186 |
softwareComponentRegistry.GetAppUidsForComponentL(
|
|
187 |
componentIdValue, appUidsArray);
|
98
|
188 |
|
|
189 |
QT_TRYCATCH_LEAVING(
|
|
190 |
for (TInt i = 0; i<appUidsArray.Count(); i++) {
|
|
191 |
appUids.append(QString::number(appUidsArray[i].iUid));
|
|
192 |
}
|
|
193 |
);
|
|
194 |
CleanupStack::PopAndDestroy(2, &appUidsArray);
|
|
195 |
}
|
|
196 |
}
|
|
197 |
|
|
198 |
/*!
|
94
|
199 |
\param componentId Component id of the entry which details are requested for.
|
|
200 |
\return Map of component details if component id was greater than 0 or
|
102
|
201 |
empty map otherwise.
|
94
|
202 |
*/
|
|
203 |
CaSoftwareRegistryPrivate::DetailMap CaSoftwareRegistryPrivate::entryDetails(
|
|
204 |
int componentId) const
|
|
205 |
{
|
|
206 |
CaSoftwareRegistry::DetailMap result;
|
102
|
207 |
TRAP_IGNORE(result=entryDetailsL(componentId));
|
|
208 |
return result;
|
|
209 |
}
|
|
210 |
|
|
211 |
/*!
|
|
212 |
\param componentId Component id of the entry which details are requested for.
|
|
213 |
\return Map of component details if component id was greater than 0 or
|
|
214 |
empty map otherwise.
|
|
215 |
*/
|
|
216 |
CaSoftwareRegistryPrivate::DetailMap CaSoftwareRegistryPrivate::entryDetailsL(
|
|
217 |
int componentId) const
|
|
218 |
{
|
|
219 |
CaSoftwareRegistry::DetailMap result;
|
94
|
220 |
|
|
221 |
if (componentId >= 1) {
|
102
|
222 |
RSoftwareComponentRegistry scr;
|
|
223 |
CleanupClosePushL(scr);
|
|
224 |
if (scr.Connect() == KErrNone) {
|
|
225 |
CComponentEntry* entry = CComponentEntry::NewLC();
|
106
|
226 |
if (scr.GetComponentL(componentId, *entry)) {
|
102
|
227 |
result = entryDetailsL(*entry);
|
106
|
228 |
if (entry->SoftwareType().Compare(KSoftwareTypeJava) == 0) {
|
|
229 |
CPropertyEntry* domainProperty =
|
|
230 |
scr.GetComponentPropertyL(componentId,
|
|
231 |
KCaScrPropertyDomainCategory);
|
|
232 |
CleanupStack::PushL(domainProperty);
|
|
233 |
if (domainProperty &&
|
|
234 |
domainProperty->PropertyType() ==
|
|
235 |
CPropertyEntry::ELocalizedProperty) {
|
119
|
236 |
const TDesC& domainPropertyValue = static_cast<CLocalizablePropertyEntry*>(
|
|
237 |
domainProperty)->StrValue();
|
|
238 |
TInt splitIndex = domainPropertyValue.Locate(',');
|
|
239 |
RBuf qmFileName;
|
|
240 |
qmFileName.CleanupClosePushL();
|
|
241 |
qmFileName.CreateL(domainPropertyValue.Right(
|
|
242 |
domainPropertyValue.Length() - splitIndex - 1),
|
|
243 |
domainPropertyValue.Length() - splitIndex);
|
|
244 |
qmFileName.Append('_');
|
|
245 |
MenuUtils::InitTextResolverSymbianL(qmFileName);
|
|
246 |
HBufC* translatedProtectionDomain = HbTextResolverSymbian::LoadLC(
|
|
247 |
domainPropertyValue.Left(splitIndex));
|
106
|
248 |
result[CaSoftwareRegistry::componentProtectionDomainKey()] =
|
119
|
249 |
XQConversions::s60DescToQString(*translatedProtectionDomain);
|
|
250 |
CleanupStack::PopAndDestroy(translatedProtectionDomain);
|
|
251 |
CleanupStack::PopAndDestroy(&qmFileName);
|
106
|
252 |
}
|
102
|
253 |
|
106
|
254 |
CPropertyEntry *midletDescryption =
|
|
255 |
scr.GetComponentPropertyL(componentId,
|
|
256 |
KCaScrPropertyMidletDescryption);
|
|
257 |
CleanupStack::PushL(midletDescryption);
|
|
258 |
if (midletDescryption &&
|
|
259 |
midletDescryption->PropertyType() ==
|
|
260 |
CPropertyEntry::ELocalizedProperty) {
|
|
261 |
result[CaSoftwareRegistry::componentDescriptionKey()] =
|
|
262 |
XQConversions::s60DescToQString(
|
|
263 |
static_cast<CLocalizablePropertyEntry*>(
|
|
264 |
midletDescryption)->StrValue());
|
|
265 |
}
|
|
266 |
CleanupStack::PopAndDestroy(midletDescryption);
|
|
267 |
CleanupStack::PopAndDestroy(domainProperty);
|
102
|
268 |
}
|
|
269 |
}
|
|
270 |
CleanupStack::PopAndDestroy(entry);
|
98
|
271 |
}
|
102
|
272 |
CleanupStack::PopAndDestroy(&scr);
|
94
|
273 |
}
|
|
274 |
return result;
|
|
275 |
}
|
|
276 |
|
|
277 |
/*!
|
|
278 |
\param entry Software registry entry providing details.
|
|
279 |
\return Map with details for the component represented by \entry.
|
|
280 |
*/
|
102
|
281 |
CaSoftwareRegistryPrivate::DetailMap CaSoftwareRegistryPrivate::entryDetailsL(
|
94
|
282 |
const CComponentEntry& entry) const
|
|
283 |
{
|
|
284 |
CaSoftwareRegistry::DetailMap detailMap;
|
102
|
285 |
|
|
286 |
detailMap[CaSoftwareRegistry::componentNameKey()] =
|
94
|
287 |
XQConversions::s60DescToQString(entry.Name());
|
102
|
288 |
|
|
289 |
detailMap[CaSoftwareRegistry::componentVersionKey()] =
|
94
|
290 |
XQConversions::s60DescToQString(entry.Version());
|
102
|
291 |
|
|
292 |
detailMap[CaSoftwareRegistry::componentVendorKey()] =
|
94
|
293 |
XQConversions::s60DescToQString(entry.Vendor());
|
102
|
294 |
|
94
|
295 |
QString drives;
|
102
|
296 |
TChar drive;
|
|
297 |
|
94
|
298 |
const TInt driveListLen(entry.InstalledDrives().Length());
|
|
299 |
for (TInt i( 0 ); i < driveListLen; ++i) {
|
|
300 |
if (entry.InstalledDrives()[i] != '\0') {
|
102
|
301 |
|
94
|
302 |
if (!drives.isEmpty()) {
|
125
|
303 |
drives = drives.append("\n");
|
102
|
304 |
}
|
116
|
305 |
if (DriveInfo::GetDefaultDrive(
|
102
|
306 |
DriveInfo::EDefaultPhoneMemory, drive ) == KErrNone
|
|
307 |
&& QChar('A'+ i) == QChar(drive)) {
|
|
308 |
drives = drives.append(HbParameterLengthLimiter(
|
|
309 |
"txt_applib_dialog_1_device_memory").arg(
|
|
310 |
QString(QChar('A'+ i))));
|
116
|
311 |
} else if (DriveInfo::GetDefaultDrive(
|
102
|
312 |
DriveInfo::EDefaultMassStorage, drive ) == KErrNone
|
|
313 |
&& QChar('A'+ i) == QChar(drive)) {
|
|
314 |
drives = drives.append(HbParameterLengthLimiter(
|
|
315 |
"txt_applib_dialog_1_mass_storage").arg(
|
|
316 |
QString(QChar('A'+ i))));
|
116
|
317 |
} else if (DriveInfo::GetDefaultDrive(
|
102
|
318 |
DriveInfo::EDefaultRemovableMassStorage, drive ) == KErrNone
|
|
319 |
&& QChar('A'+ i) == QChar(drive)) {
|
96
|
320 |
RFs fs;
|
102
|
321 |
CleanupClosePushL(fs);
|
98
|
322 |
if (fs.Connect() == KErrNone) {
|
|
323 |
TInt driveNumber;
|
|
324 |
TVolumeInfo tv;
|
|
325 |
DriveInfo::GetDefaultDrive(
|
102
|
326 |
DriveInfo::EDefaultRemovableMassStorage,
|
|
327 |
driveNumber );
|
|
328 |
User::LeaveIfError(fs.Volume(tv, driveNumber));
|
116
|
329 |
if (tv.iName.Length()
|
|
330 |
&& tv.iName.Compare(KNotNamedMmc) != KErrNone) {
|
102
|
331 |
drives = drives.append(HbParameterLengthLimiter(
|
|
332 |
"txt_applib_dialog_1_2").arg(
|
|
333 |
QString(QChar('A'+ i))).arg(
|
|
334 |
XQConversions::s60DescToQString(
|
|
335 |
tv.iName)));
|
|
336 |
} else {
|
|
337 |
drives = drives.append(HbParameterLengthLimiter(
|
|
338 |
"txt_applib_dialog_1_memory_card").arg(
|
|
339 |
QString(QChar('A'+ i))));
|
98
|
340 |
}
|
96
|
341 |
}
|
102
|
342 |
CleanupStack::PopAndDestroy(&fs);
|
98
|
343 |
} else {
|
102
|
344 |
drives = drives.append(QChar('A'+ i)).append(":");
|
96
|
345 |
}
|
94
|
346 |
}
|
|
347 |
}
|
|
348 |
detailMap[CaSoftwareRegistry::componentDriveInfoKey()] = drives;
|
98
|
349 |
|
|
350 |
static const TInt64 KKilo = 1024;
|
|
351 |
static const TInt64 KMega = KKilo * KKilo;
|
|
352 |
if(entry.ComponentSize() >= KMega) {
|
102
|
353 |
detailMap[CaSoftwareRegistry::componentSizeKey()]
|
|
354 |
= HbParameterLengthLimiter("txt_applib_dialog_l1_mb").arg(
|
|
355 |
static_cast<double>(entry.ComponentSize() / KMega));
|
|
356 |
} else {
|
|
357 |
detailMap[CaSoftwareRegistry::componentSizeKey()]
|
|
358 |
= HbParameterLengthLimiter("txt_applib_dialog_l1_kb").arg(
|
|
359 |
static_cast<double>(entry.ComponentSize() / KKilo));
|
98
|
360 |
}
|
102
|
361 |
detailMap[CaSoftwareRegistry::componentTypeKey()] =
|
94
|
362 |
XQConversions::s60DescToQString(entry.SoftwareType());
|
|
363 |
|
|
364 |
return detailMap;
|
|
365 |
}
|
102
|
366 |
|
|
367 |
/*!
|
|
368 |
\param entry Software registry entry providing details.
|
|
369 |
\return Map with details for the component represented by \entry.
|
|
370 |
*/
|
|
371 |
QList<CaSoftwareRegistryPrivate::DetailMap>
|
|
372 |
CaSoftwareRegistryPrivate::retrieveLogEntries() const
|
|
373 |
{
|
|
374 |
QList<CaSoftwareRegistryPrivate::DetailMap> logMap;
|
|
375 |
TRAP_IGNORE(logMap = retrieveLogEntriesL());
|
|
376 |
return logMap;
|
|
377 |
}
|
107
|
378 |
/*!
|
|
379 |
Creating uninstall notifier
|
|
380 |
\return CaUninstallNotifier instance
|
|
381 |
*/
|
|
382 |
CaUninstallNotifier *CaSoftwareRegistryPrivate::createUninstallNotifier() const
|
|
383 |
{
|
|
384 |
return CaUninstallNotifier::notifier();
|
|
385 |
}
|
102
|
386 |
|
|
387 |
/*!
|
|
388 |
\param entry Software registry entry providing installation log.
|
|
389 |
\return List of Maps with installation log.
|
|
390 |
*/
|
|
391 |
QList<CaSoftwareRegistryPrivate::DetailMap>
|
|
392 |
CaSoftwareRegistryPrivate::retrieveLogEntriesL() const
|
|
393 |
{
|
|
394 |
QList<CaSoftwareRegistryPrivate::DetailMap> logList;
|
|
395 |
|
|
396 |
RSoftwareComponentRegistry scr;
|
|
397 |
CleanupClosePushL(scr);
|
|
398 |
User::LeaveIfError(scr.Connect());
|
|
399 |
|
|
400 |
RPointerArray<CScrLogEntry> logEntries;
|
|
401 |
CleanupResetAndDestroyPushL(logEntries);
|
|
402 |
scr.RetrieveLogEntriesL(logEntries);
|
|
403 |
|
|
404 |
// 50 log items or less - ui spec
|
|
405 |
TInt lastLog(0);
|
|
406 |
if (logEntries.Count() > maxLogsCount) {
|
|
407 |
lastLog = logEntries.Count() - maxLogsCount;
|
|
408 |
}
|
|
409 |
// iteration through most recent log to the last
|
|
410 |
for (TInt i = logEntries.Count() - 1; i >= lastLog; i--) {
|
|
411 |
CScrLogEntry* entry = logEntries[i];
|
|
412 |
DetailMap logMap;
|
|
413 |
logMap[CaSoftwareRegistry::componentNameKey()]
|
|
414 |
= XQConversions::s60DescToQString(entry->ComponentName());
|
|
415 |
logMap[CaSoftwareRegistry::componentVersionKey()]
|
|
416 |
= XQConversions::s60DescToQString(entry->ComponentVersion());
|
|
417 |
logMap[CaSoftwareRegistry::componentTimeKey()]
|
|
418 |
= operationTime(entry->OperationTime());
|
|
419 |
logMap[CaSoftwareRegistry::componentOperationTypeKey()]
|
|
420 |
= operationTypeL(entry->OperationType());
|
|
421 |
logList.append(logMap);
|
|
422 |
}
|
|
423 |
CleanupStack::PopAndDestroy(&logEntries);
|
|
424 |
CleanupStack::PopAndDestroy(&scr);
|
|
425 |
|
|
426 |
return logList;
|
|
427 |
}
|
|
428 |
|
|
429 |
/*!
|
|
430 |
\param operation type.
|
|
431 |
\return string representing operation type.
|
|
432 |
*/
|
|
433 |
QString CaSoftwareRegistryPrivate::operationTypeL(int operationType) const
|
|
434 |
{
|
|
435 |
QString opType;
|
|
436 |
switch (operationType) {
|
|
437 |
case EScrCompInstall:
|
|
438 |
opType = CaSoftwareRegistry::componentInstallValue();
|
|
439 |
break;
|
|
440 |
case EScrCompUnInstall:
|
|
441 |
opType = CaSoftwareRegistry::componentUninstallValue();
|
|
442 |
break;
|
|
443 |
case EScrCompUpgrade:
|
|
444 |
opType = CaSoftwareRegistry::componentUpgradeValue();
|
|
445 |
break;
|
|
446 |
case EScrCompHidden:
|
|
447 |
opType = CaSoftwareRegistry::componentHiddenValue();
|
|
448 |
break;
|
|
449 |
default:
|
|
450 |
User::Leave(KErrNotSupported);
|
|
451 |
break;
|
|
452 |
}
|
|
453 |
return opType;
|
|
454 |
}
|
|
455 |
|
|
456 |
/*!
|
|
457 |
\param operation type.
|
|
458 |
\return string representing operation type.
|
|
459 |
*/
|
|
460 |
QString CaSoftwareRegistryPrivate::operationTime(TTime time) const
|
|
461 |
{
|
|
462 |
TDateTime dt = time.DateTime();
|
106
|
463 |
QDate date(dt.Year(), dt.Month() + 1, dt.Day() + 1);
|
102
|
464 |
HbExtendedLocale hbLoc;
|
|
465 |
return hbLoc.format(date, r_qtn_date_usual_with_zero);
|
|
466 |
}
|