equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2009 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CPABOUTUTILS_H |
|
19 #define CPABOUTUTILS_H |
|
20 |
|
21 #include <QString> |
|
22 #include <QChar> |
|
23 #include <HbTextEdit> |
|
24 |
|
25 //for Qt |
|
26 const QChar lineBreak = '\n'; |
|
27 const QString htmlLineBreak = "<br>"; |
|
28 const QString doubleHtmlLineBreak = "<br><br>"; |
|
29 const QString htmlLinkStart("<a href=\"link\">"); |
|
30 const QString htmlLinkEnd("</a>"); |
|
31 const TInt sysUtilVersionTextLength = 128; |
|
32 //for Symbian |
|
33 _LIT(KEol, "\n"); |
|
34 |
|
35 class CpAboutUtils |
|
36 { |
|
37 public: |
|
38 static HbTextEdit *createTextEdit(); |
|
39 static QString contentString(const QString &prefixString, int index); |
|
40 static QString linkHtmlContent(const QString &textContent); |
|
41 static QString findAndReplaceWithLink(const QString &string); |
|
42 static QString preprocessText(const QString &string); |
|
43 static QString getPhoneModel(); |
|
44 static QString getProductRelease(); |
|
45 static QString getSoftwareVersion(); |
|
46 static QString getPhoneType(); |
|
47 }; |
|
48 |
|
49 #endif /* CPABOUTUTILS_H */ |