diff -r cb294e641644 -r 5aa7c7ec6b8e controlpanelplugins/aboutplugin/src/cpaboututils.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/controlpanelplugins/aboutplugin/src/cpaboututils.h Fri Sep 17 08:29:50 2010 +0300 @@ -0,0 +1,49 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ + +#ifndef CPABOUTUTILS_H +#define CPABOUTUTILS_H + +#include +#include +#include + +//for Qt +const QChar lineBreak = '\n'; +const QString htmlLineBreak = "
"; +const QString doubleHtmlLineBreak = "

"; +const QString htmlLinkStart(""); +const QString htmlLinkEnd(""); +const TInt sysUtilVersionTextLength = 128; +//for Symbian +_LIT(KEol, "\n"); + +class CpAboutUtils +{ +public: + static HbTextEdit *createTextEdit(); + static QString contentString(const QString &prefixString, int index); + static QString linkHtmlContent(const QString &textContent); + static QString findAndReplaceWithLink(const QString &string); + static QString preprocessText(const QString &string); + static QString getPhoneModel(); + static QString getProductRelease(); + static QString getSoftwareVersion(); + static QString getPhoneType(); +}; + +#endif /* CPABOUTUTILS_H */