|
1 /**************************************************************************** |
|
2 ** |
|
3 ** Copyright (C) 2008-2010 Nokia Corporation and/or its subsidiary(-ies). |
|
4 ** All rights reserved. |
|
5 ** Contact: Nokia Corporation (developer.feedback@nokia.com) |
|
6 ** |
|
7 ** This file is part of the HbCore module of the UI Extensions for Mobile. |
|
8 ** |
|
9 ** GNU Lesser General Public License Usage |
|
10 ** This file may be used under the terms of the GNU Lesser General Public |
|
11 ** License version 2.1 as published by the Free Software Foundation and |
|
12 ** appearing in the file LICENSE.LGPL included in the packaging of this file. |
|
13 ** Please review the following information to ensure the GNU Lesser General |
|
14 ** Public License version 2.1 requirements will be met: |
|
15 ** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. |
|
16 ** |
|
17 ** In addition, as a special exception, Nokia gives you certain additional |
|
18 ** rights. These rights are described in the Nokia Qt LGPL Exception |
|
19 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. |
|
20 ** |
|
21 ** If you have questions regarding the use of this file, please contact |
|
22 ** Nokia at developer.feedback@nokia.com. |
|
23 ** |
|
24 ****************************************************************************/ |
|
25 |
|
26 |
|
27 #ifndef HBPARAMETERLENGTHLIMITER_H |
|
28 #define HBPARAMETERLENGTHLIMITER_H |
|
29 |
|
30 #include <QString> |
|
31 #include <hbglobal.h> |
|
32 #include <hbi18ndef.h> |
|
33 |
|
34 class HbParameterLengthLimiterPrivate; |
|
35 |
|
36 class HB_CORE_EXPORT HbParameterLengthLimiter |
|
37 { |
|
38 public: |
|
39 HbParameterLengthLimiter( const HbParameterLengthLimiter& a ); |
|
40 HbParameterLengthLimiter(QString a); |
|
41 HbParameterLengthLimiter(const char* a); |
|
42 HbParameterLengthLimiter(const char* a, int n); |
|
43 HbParameterLengthLimiter(); |
|
44 ~HbParameterLengthLimiter(); |
|
45 |
|
46 HbParameterLengthLimiter& arg(qlonglong a, int fieldwidth=0, int base=10, |
|
47 const QChar &fillChar = QLatin1Char(' ')); |
|
48 HbParameterLengthLimiter& arg(qulonglong a, int fieldwidth=0, int base=10, |
|
49 const QChar &fillChar = QLatin1Char(' ')); |
|
50 HbParameterLengthLimiter& arg(long a, int fieldwidth=0, int base=10, |
|
51 const QChar &fillChar = QLatin1Char(' ')); |
|
52 HbParameterLengthLimiter& arg(ulong a, int fieldwidth=0, int base=10, |
|
53 const QChar &fillChar = QLatin1Char(' ')); |
|
54 HbParameterLengthLimiter& arg(int a, int fieldWidth = 0, int base = 10, |
|
55 const QChar &fillChar = QLatin1Char(' ')); |
|
56 HbParameterLengthLimiter& arg(uint a, int fieldWidth = 0, int base = 10, |
|
57 const QChar &fillChar = QLatin1Char(' ')); |
|
58 HbParameterLengthLimiter& arg(short a, int fieldWidth = 0, int base = 10, |
|
59 const QChar &fillChar = QLatin1Char(' ')); |
|
60 HbParameterLengthLimiter& arg(ushort a, int fieldWidth = 0, int base = 10, |
|
61 const QChar &fillChar = QLatin1Char(' ')); |
|
62 HbParameterLengthLimiter& arg(double a, int fieldWidth = 0, char fmt = 'g', int prec = -1, |
|
63 const QChar &fillChar = QLatin1Char(' ')); |
|
64 HbParameterLengthLimiter& arg(char a, int fieldWidth = 0, |
|
65 const QChar &fillChar = QLatin1Char(' ')); |
|
66 HbParameterLengthLimiter& arg(QChar a, int fieldWidth = 0, |
|
67 const QChar &fillChar = QLatin1Char(' ')); |
|
68 HbParameterLengthLimiter& arg(const QString &a, int fieldWidth = 0, |
|
69 const QChar &fillChar = QLatin1Char(' ')); |
|
70 HbParameterLengthLimiter& arg(const QString &a1, const QString &a2); |
|
71 HbParameterLengthLimiter& arg(const QString &a1, const QString &a2, const QString &a3); |
|
72 HbParameterLengthLimiter& arg(const QString &a1, const QString &a2, const QString &a3, |
|
73 const QString &a4); |
|
74 HbParameterLengthLimiter& arg(const QString &a1, const QString &a2, const QString &a3, |
|
75 const QString &a4, const QString &a5); |
|
76 HbParameterLengthLimiter& arg(const QString &a1, const QString &a2, const QString &a3, |
|
77 const QString &a4, const QString &a5, const QString &a6); |
|
78 HbParameterLengthLimiter& arg(const QString &a1, const QString &a2, const QString &a3, |
|
79 const QString &a4, const QString &a5, const QString &a6, |
|
80 const QString &a7); |
|
81 HbParameterLengthLimiter& arg(const QString &a1, const QString &a2, const QString &a3, |
|
82 const QString &a4, const QString &a5, const QString &a6, |
|
83 const QString &a7, const QString &a8); |
|
84 HbParameterLengthLimiter& arg(const QString &a1, const QString &a2, const QString &a3, |
|
85 const QString &a4, const QString &a5, const QString &a6, |
|
86 const QString &a7, const QString &a8, const QString &a9); |
|
87 HbParameterLengthLimiter& operator=(const QString &a); |
|
88 HbParameterLengthLimiter& operator=(const HbParameterLengthLimiter &a); |
|
89 operator QString() const; |
|
90 |
|
91 private: |
|
92 HbParameterLengthLimiterPrivate* p; |
|
93 }; |
|
94 |
|
95 #endif // HbParameterLengthLimiter_H |