src/hbcore/i18n/hbparameterlengthlimiter.cpp
changeset 3 11d3954df52a
parent 1 f7ac710697a9
child 6 c3690ec91ef8
equal deleted inserted replaced
2:06ff229162e9 3:11d3954df52a
    28 #include <hbglobal.h>
    28 #include <hbglobal.h>
    29 #include "hbparameterlengthlimiter.h"
    29 #include "hbparameterlengthlimiter.h"
    30 #include "hbparameterlengthlimiter_p.h"
    30 #include "hbparameterlengthlimiter_p.h"
    31 
    31 
    32 /*!
    32 /*!
    33     @alpha
    33     @stable
    34     @hbcore
    34     @hbcore
    35     \class HbParameterLengthLimiter
    35     \class HbParameterLengthLimiter
    36     \brief HbParameterLengthLimiter is a class that offers support to insert different types of arguments into a QString.
    36     \brief HbParameterLengthLimiter is a class that offers support to insert different types of arguments into a QString.
    37 
    37 
    38     Supports upto 9 argument inserts per QString.
    38     Supports upto 9 argument inserts per QString.
    49 
    49 
    50 */
    50 */
    51 
    51 
    52 /*!
    52 /*!
    53     Constructs a HbParameterLengthLimiter with \a HbParameterLengthLimiter.
    53     Constructs a HbParameterLengthLimiter with \a HbParameterLengthLimiter.
    54     \a HbLengthLimter& - HbParameterLengthLimiter that will have arguments inserted
    54     
       
    55     \attention Cross-Platform API
       
    56     
       
    57     \param a HbParameterLengthLimiter that will have arguments inserted
    55 */
    58 */
    56 HbParameterLengthLimiter::HbParameterLengthLimiter( const HbParameterLengthLimiter& a )
    59 HbParameterLengthLimiter::HbParameterLengthLimiter( const HbParameterLengthLimiter& a )
    57 {
    60 {
    58     p = new HbParameterLengthLimiterPrivate();
    61     p = new HbParameterLengthLimiterPrivate();
    59     p->str = a.p->str;
    62     p->str = a.p->str;
    60 }
    63 }
    61 
    64 
    62 
       
    63 /*!
    65 /*!
    64     Constructs a HbParameterLengthLimiter with \a QString.
    66     Constructs a HbParameterLengthLimiter with \a QString.
    65     \a QString - QString that will have arguments inserted
    67     
       
    68     \attention Cross-Platform API
       
    69     
       
    70     \param a QString that will have arguments inserted
    66 */
    71 */
    67 HbParameterLengthLimiter::HbParameterLengthLimiter( QString a )
    72 HbParameterLengthLimiter::HbParameterLengthLimiter( QString a )
    68 {
    73 {
    69     p = new HbParameterLengthLimiterPrivate();
    74     p = new HbParameterLengthLimiterPrivate();
    70     p->str = a;
    75     p->str = a;
    71 }
    76 }
    72 
    77 
    73 /*!
    78 /*!
    74     Constructs a HbParameterLengthLimiter with \a char*.
    79     Constructs a HbParameterLengthLimiter with \a char*.
    75     \a const char* - char string that will have arguments inserted
    80     
       
    81     \attention Cross-Platform API
       
    82     
       
    83     \param a char string that will have arguments inserted
    76 */
    84 */
    77 HbParameterLengthLimiter::HbParameterLengthLimiter( const char* a )
    85 HbParameterLengthLimiter::HbParameterLengthLimiter( const char* a )
    78 {
    86 {
    79     p = new HbParameterLengthLimiterPrivate();
    87     p = new HbParameterLengthLimiterPrivate();
    80     p->str = hbTrId(a);
    88     p->str = hbTrId(a);
    81 }
    89 }
    82 
    90 
    83 /*!
    91 /*!
    84     Constructs a HbParameterLengthLimiter with \a char*.
    92     Constructs a HbParameterLengthLimiter with \a char* and \a int.
    85     \a const char* - char string that will have arguments inserted
    93     
    86     \n int - used to identify which plural form to use
    94     \attention Cross-Platform API
       
    95     
       
    96     \param a char string that will have arguments inserted
       
    97     \param n used to identify which plural form to use
    87 */
    98 */
    88 HbParameterLengthLimiter::HbParameterLengthLimiter( const char* a, int n )
    99 HbParameterLengthLimiter::HbParameterLengthLimiter( const char* a, int n )
    89 {
   100 {
    90     p = new HbParameterLengthLimiterPrivate();
   101     p = new HbParameterLengthLimiterPrivate();
    91     p->str = hbTrId(a, n);
   102     p->str = hbTrId(a, n);
    92 }
   103 }
    93 
   104 
    94 /*!
   105 /*!
    95     Conp->structs a HbParameterLengthLimiter without a predefined QString.
   106     Conp->structs a HbParameterLengthLimiter without a predefined QString.
       
   107     
       
   108     \attention Cross-Platform API  
    96 */
   109 */
    97 HbParameterLengthLimiter::HbParameterLengthLimiter()
   110 HbParameterLengthLimiter::HbParameterLengthLimiter()
    98 {
   111 {
    99     p = new HbParameterLengthLimiterPrivate();
   112     p = new HbParameterLengthLimiterPrivate();
   100     p->str = "";
   113     p->str = "";
   108     delete p;
   121     delete p;
   109 }
   122 }
   110 
   123 
   111 /*!
   124 /*!
   112     Inserts an \a argument to a HbParameterLengthLimiter QString.
   125     Inserts an \a argument to a HbParameterLengthLimiter QString.
   113     \a qlonglong - number that will be inserted to the QString
   126     
   114     \fieldwidth int - specifies the minimum amount of space that a is padded to and filled with the character fillChar
   127     \attention Cross-Platform API
   115     \base int - defines the number base
   128     
   116     \fillChar QChar - defines the fill character
   129     \param a number that will be inserted to the QString
       
   130     \param fieldwidth specifies the minimum amount of space that a is padded to and filled with the character fillChar
       
   131     \param base defines the number base
       
   132     \param fillChar defines the fill character
   117 */
   133 */
   118 HbParameterLengthLimiter& HbParameterLengthLimiter::arg(qlonglong a,
   134 HbParameterLengthLimiter& HbParameterLengthLimiter::arg(qlonglong a,
   119                                       int fieldwidth,
   135                                       int fieldwidth,
   120                                       int base,
   136                                       int base,
   121                                       const QChar &fillChar)
   137                                       const QChar &fillChar)
   125     return *this;
   141     return *this;
   126 }
   142 }
   127 
   143 
   128 /*!
   144 /*!
   129     Inserts an \a argument to a HbParameterLengthLimiter QString.
   145     Inserts an \a argument to a HbParameterLengthLimiter QString.
   130     \a qulonglong - number that will be inserted to the QString
   146     
   131     \fieldwidth int - specifies the minimum amount of space that a is padded to and filled with the character fillChar
   147     \attention Cross-Platform API
   132     \base int - defines the number base
   148     
   133     \fillChar QChar - defines the fill character
   149     \param a number that will be inserted to the QString
       
   150     \param fieldwidth specifies the minimum amount of space that a is padded to and filled with the character fillChar
       
   151     \param base defines the number base
       
   152     \param fillChar defines the fill character
   134 */
   153 */
   135 HbParameterLengthLimiter& HbParameterLengthLimiter::arg( qulonglong a,
   154 HbParameterLengthLimiter& HbParameterLengthLimiter::arg( qulonglong a,
   136                                        int fieldwidth,
   155                                        int fieldwidth,
   137                                        int base,
   156                                        int base,
   138                                        const QChar &fillChar)
   157                                        const QChar &fillChar)
   143     return *this;
   162     return *this;
   144  }
   163  }
   145 
   164 
   146 /*!
   165 /*!
   147     Inserts an \a argument to a HbParameterLengthLimiter QString.
   166     Inserts an \a argument to a HbParameterLengthLimiter QString.
   148     \a long - number that will be inserted to the QString
   167     
   149     \fieldwidth int - specifies the minimum amount of space that a is padded to and filled with the character fillChar
   168     \attention Cross-Platform API
   150     \base int - defines the number base
   169     
   151     \fillChar QChar - defines the fill character
   170     \param a number that will be inserted to the QString
       
   171     \param fieldwidth specifies the minimum amount of space that a is padded to and filled with the character fillChar
       
   172     \param base defines the number base
       
   173     \param fillChar defines the fill character
   152 */
   174 */
   153 HbParameterLengthLimiter& HbParameterLengthLimiter::arg( long a,
   175 HbParameterLengthLimiter& HbParameterLengthLimiter::arg( long a,
   154                                        int fieldwidth,
   176                                        int fieldwidth,
   155                                        int base,
   177                                        int base,
   156                                        const QChar &fillChar)
   178                                        const QChar &fillChar)
   161     return *this;
   183     return *this;
   162  }
   184  }
   163 
   185 
   164 /*!
   186 /*!
   165     Inserts an \a argument to a HbParameterLengthLimiter QString.
   187     Inserts an \a argument to a HbParameterLengthLimiter QString.
   166     \a ulong - number that will be inserted to the QString
   188     
   167     \fieldwidth int - specifies the minimum amount of space that a is padded to and filled with the character fillChar
   189     \attention Cross-Platform API
   168     \base int - defines the number base
   190     
   169     \fillChar QChar - defines the fill character
   191     \param a number that will be inserted to the QString
       
   192     \param fieldwidth specifies the minimum amount of space that a is padded to and filled with the character fillChar
       
   193     \param base defines the number base
       
   194     \param fillChar defines the fill character
   170 */
   195 */
   171 HbParameterLengthLimiter& HbParameterLengthLimiter::arg( ulong a,
   196 HbParameterLengthLimiter& HbParameterLengthLimiter::arg( ulong a,
   172                                        int fieldwidth,
   197                                        int fieldwidth,
   173                                        int base,
   198                                        int base,
   174                                        const QChar &fillChar)
   199                                        const QChar &fillChar)
   178     return *this;
   203     return *this;
   179  }
   204  }
   180 
   205 
   181 /*!
   206 /*!
   182     Inserts an \a argument to a HbParameterLengthLimiter QString.
   207     Inserts an \a argument to a HbParameterLengthLimiter QString.
   183     \a int - number that will be inserted to the QString
   208     
   184     \fieldwidth int - specifies the minimum amount of space that a is padded to and filled with the character fillChar
   209     \attention Cross-Platform API
   185     \base int - defines the number base
   210     
   186     \fillChar QChar - defines the fill character
   211     \param a number that will be inserted to the QString
       
   212     \param fieldwidth specifies the minimum amount of space that a is padded to and filled with the character fillChar
       
   213     \param base defines the number base
       
   214     \param fillChar defines the fill character
   187 */
   215 */
   188 HbParameterLengthLimiter& HbParameterLengthLimiter::arg( int a,
   216 HbParameterLengthLimiter& HbParameterLengthLimiter::arg( int a,
   189                                        int fieldWidth,
   217                                        int fieldWidth,
   190                                        int base,
   218                                        int base,
   191                                        const QChar &fillChar)
   219                                        const QChar &fillChar)
   196     return *this;
   224     return *this;
   197  }
   225  }
   198 
   226 
   199 /*!
   227 /*!
   200     Inserts an \a argument to a HbParameterLengthLimiter QString.
   228     Inserts an \a argument to a HbParameterLengthLimiter QString.
   201     \a uint - number that will be inserted to the QString
   229     
   202     \fieldwidth int - specifies the minimum amount of space that a is padded to and filled with the character fillChar
   230     \attention Cross-Platform API
   203     \base int - defines the number base
   231     
   204     \fillChar QChar - defines the fill character
   232     \param a number that will be inserted to the QString
       
   233     \param fieldwidth specifies the minimum amount of space that a is padded to and filled with the character fillChar
       
   234     \param base defines the number base
       
   235     \param fillChar defines the fill character
   205 */
   236 */
   206 HbParameterLengthLimiter& HbParameterLengthLimiter::arg( uint a,
   237 HbParameterLengthLimiter& HbParameterLengthLimiter::arg( uint a,
   207                                        int fieldWidth,
   238                                        int fieldWidth,
   208                                        int base,
   239                                        int base,
   209                                        const QChar &fillChar)
   240                                        const QChar &fillChar)
   213     return *this;
   244     return *this;
   214  }
   245  }
   215 
   246 
   216 /*!
   247 /*!
   217     Inserts an \a argument to a HbParameterLengthLimiter QString.
   248     Inserts an \a argument to a HbParameterLengthLimiter QString.
   218     \a short - number that will be inserted to the QString
   249     
   219     \fieldwidth int - specifies the minimum amount of space that a is padded to and filled with the character fillChar
   250     \attention Cross-Platform API
   220     \base int - defines the number base
   251     
   221     \fillChar QChar - defines the fill character
   252     \param a number that will be inserted to the QString
       
   253     \param fieldwidth specifies the minimum amount of space that a is padded to and filled with the character fillChar
       
   254     \param base defines the number base
       
   255     \param fillChar defines the fill character
   222 */
   256 */
   223 HbParameterLengthLimiter& HbParameterLengthLimiter::arg( short a,
   257 HbParameterLengthLimiter& HbParameterLengthLimiter::arg( short a,
   224                                        int fieldWidth,
   258                                        int fieldWidth,
   225                                        int base,
   259                                        int base,
   226                                        const QChar &fillChar)
   260                                        const QChar &fillChar)
   230     return *this;
   264     return *this;
   231 }
   265 }
   232 
   266 
   233 /*!
   267 /*!
   234     Inserts an \a argument to a HbParameterLengthLimiter QString.
   268     Inserts an \a argument to a HbParameterLengthLimiter QString.
   235     \a ushort - number that will be inserted to the QString
   269     
   236     \fieldwidth int - specifies the minimum amount of space that a is padded to and filled with the character fillChar
   270     \attention Cross-Platform API
   237     \base int - defines the number base
   271     
   238     \fillChar QChar - defines the fill character
   272     \param a number that will be inserted to the QString
       
   273     \param fieldwidth specifies the minimum amount of space that a is padded to and filled with the character fillChar
       
   274     \param base defines the number base
       
   275     \param fillChar defines the fill character
   239 */
   276 */
   240 HbParameterLengthLimiter& HbParameterLengthLimiter::arg( ushort a,
   277 HbParameterLengthLimiter& HbParameterLengthLimiter::arg( ushort a,
   241                                        int fieldWidth,
   278                                        int fieldWidth,
   242                                        int base,
   279                                        int base,
   243                                        const QChar &fillChar)
   280                                        const QChar &fillChar)
   247     return *this;
   284     return *this;
   248 }
   285 }
   249 
   286 
   250 /*!
   287 /*!
   251     Inserts an \a argument to a HbParameterLengthLimiter QString.
   288     Inserts an \a argument to a HbParameterLengthLimiter QString.
   252     \a double - Argument a is formatted according to the specified format and precision.
   289     
   253     \fieldwidth int - specifies the minimum amount of space that a is padded to and filled with the character fillChar
   290     \attention Cross-Platform API
   254     \fmt char - defines the format to be used
   291     
   255     \prec int - defines the precision to be used
   292     \param a argument a is formatted according to the specified format and precision
   256     \fillChar QChar - defines the fill character
   293     \param fieldwidth specifies the minimum amount of space that a is padded to and filled with the character fillChar
       
   294     \param fmt defines the format to be used
       
   295     \param prec defines the precision to be used
       
   296     \param fillChar defines the fill character
   257 */
   297 */
   258 HbParameterLengthLimiter& HbParameterLengthLimiter::arg( double a,
   298 HbParameterLengthLimiter& HbParameterLengthLimiter::arg( double a,
   259                                        int fieldWidth,
   299                                        int fieldWidth,
   260                                        char fmt,
   300                                        char fmt,
   261                                        int prec,
   301                                        int prec,
   266     return *this;
   306     return *this;
   267 }
   307 }
   268 
   308 
   269 /*!
   309 /*!
   270     Inserts an \a argument to a HbParameterLengthLimiter QString.
   310     Inserts an \a argument to a HbParameterLengthLimiter QString.
   271     \a char - character that will be inserted to the QString
   311     
   272     \fieldwidth int - specifies the minimum amount of space that a is padded to and filled with the character fillChar
   312     \attention Cross-Platform API
   273     \fillChar QChar - defines the fill character
   313     
       
   314     \param a character that will be inserted to the QString
       
   315     \param fieldwidth specifies the minimum amount of space that a is padded to and filled with the character fillChar
       
   316     \param fillChar defines the fill character
   274 */
   317 */
   275 HbParameterLengthLimiter& HbParameterLengthLimiter::arg( char a,
   318 HbParameterLengthLimiter& HbParameterLengthLimiter::arg( char a,
   276                                        int fieldWidth,
   319                                        int fieldWidth,
   277                                        const QChar &fillChar)
   320                                        const QChar &fillChar)
   278 {
   321 {
   281     return *this;
   324     return *this;
   282 }
   325 }
   283 
   326 
   284 /*!
   327 /*!
   285     Inserts an \a argument to a HbParameterLengthLimiter QString.
   328     Inserts an \a argument to a HbParameterLengthLimiter QString.
   286     \a QChar - character that will be inserted to the QString
   329     
   287     \fieldwidth int - specifies the minimum amount of space that a is padded to and filled with the character fillChar
   330     \attention Cross-Platform API
   288     \fillChar QChar - defines the fill character
   331     
       
   332     \param a character that will be inserted to the QString
       
   333     \param fieldwidth specifies the minimum amount of space that a is padded to and filled with the character fillChar
       
   334     \param fillChar defines the fill character
   289 */
   335 */
   290 HbParameterLengthLimiter& HbParameterLengthLimiter::arg( QChar a,
   336 HbParameterLengthLimiter& HbParameterLengthLimiter::arg( QChar a,
   291                                        int fieldWidth,
   337                                        int fieldWidth,
   292                                        const QChar &fillChar)
   338                                        const QChar &fillChar)
   293 {
   339 {
   296     return *this;
   342     return *this;
   297 }
   343 }
   298 
   344 
   299 /*!
   345 /*!
   300     Inserts an \a argument to a HbParameterLengthLimiter QString.
   346     Inserts an \a argument to a HbParameterLengthLimiter QString.
   301     \a QString - QString that will be inserted to the QString
   347     
   302     \fieldwidth int - specifies the minimum amount of space that a is padded to and filled with the character fillChar
   348     \attention Cross-Platform API
   303     \fillChar QChar - defines the fill character
   349     
       
   350     \param a string that will be inserted to the QString
       
   351     \param fieldwidth specifies the minimum amount of space that a is padded to and filled with the character fillChar
       
   352     \param fillChar defines the fill character
   304 */
   353 */
   305 HbParameterLengthLimiter& HbParameterLengthLimiter::arg( const QString &a,
   354 HbParameterLengthLimiter& HbParameterLengthLimiter::arg( const QString &a,
   306                                        int fieldWidth,
   355                                        int fieldWidth,
   307                                        const QChar &fillChar)
   356                                        const QChar &fillChar)
   308 {
   357 {
   429     }
   478     }
   430     return *this;
   479     return *this;
   431 }
   480 }
   432 
   481 
   433 /*!
   482 /*!
   434     Inserts an arguments \a1 and \a2 to a HbParameterLengthLimiter QString.
   483     Inserts an arguments a1 and a2 to a HbParameterLengthLimiter QString.
   435     \a1 QString - QString that will be inserted to the QString
   484     
   436     \a2 QString - QString that will be inserted to the QString
   485     \attention Cross-Platform API
       
   486     
       
   487     \param a1 string that will be inserted to the QString
       
   488     \param a2 string that will be inserted to the QString
   437 */
   489 */
   438 HbParameterLengthLimiter& HbParameterLengthLimiter::arg( const QString &a1,
   490 HbParameterLengthLimiter& HbParameterLengthLimiter::arg( const QString &a1,
   439                                        const QString &a2 )
   491                                        const QString &a2 )
   440 {
   492 {
   441     this->arg(a1).arg(a2);
   493     this->arg(a1).arg(a2);
   442     return *this;
   494     return *this;
   443 }
   495 }
   444 
   496 
   445 /*!
   497 /*!
   446     Inserts an arguments \a1 and \a2 to a HbParameterLengthLimiter QString.
   498     Inserts an arguments a1, a2 and a3 to a HbParameterLengthLimiter QString.
   447     \a1 QString - QString that will be inserted to the QString
   499     
   448     \a2 QString - QString that will be inserted to the QString
   500     \attention Cross-Platform API
   449     \a3 QString - QString that will be inserted to the QString
   501     
       
   502     \param a1 string that will be inserted to the QString
       
   503     \param a2 string that will be inserted to the QString
       
   504     \param a3 string that will be inserted to the QString
   450 */
   505 */
   451 HbParameterLengthLimiter& HbParameterLengthLimiter::arg( const QString &a1,
   506 HbParameterLengthLimiter& HbParameterLengthLimiter::arg( const QString &a1,
   452                                        const QString &a2,
   507                                        const QString &a2,
   453                                        const QString &a3)
   508                                        const QString &a3)
   454 {
   509 {
   455     this->arg(a1, a2).arg(a3);
   510     this->arg(a1, a2).arg(a3);
   456     return *this;
   511     return *this;
   457 }
   512 }
   458 
   513 
   459 /*!
   514 /*!
   460     Inserts an arguments \a1 and \a2 to a HbParameterLengthLimiter QString.
   515     Inserts an arguments a1, a2, a3 and a4 to a HbParameterLengthLimiter QString.
   461     \a1 QString - QString that will be inserted to the QString
   516     
   462     \a2 QString - QString that will be inserted to the QString
   517     \attention Cross-Platform API
   463     \a3 QString - QString that will be inserted to the QString
   518     
   464     \a4 QString - QString that will be inserted to the QString
   519     \param a1 string that will be inserted to the QString
       
   520     \param a2 string that will be inserted to the QString
       
   521     \param a3 string that will be inserted to the QString
       
   522     \param a4 string that will be inserted to the QString
   465 */
   523 */
   466 HbParameterLengthLimiter& HbParameterLengthLimiter::arg( const QString &a1,
   524 HbParameterLengthLimiter& HbParameterLengthLimiter::arg( const QString &a1,
   467                                        const QString &a2,
   525                                        const QString &a2,
   468                                        const QString &a3,
   526                                        const QString &a3,
   469                                        const QString &a4 )
   527                                        const QString &a4 )
   471     this->arg(a1, a2, a3).arg(a4);
   529     this->arg(a1, a2, a3).arg(a4);
   472     return *this;
   530     return *this;
   473 }
   531 }
   474 
   532 
   475 /*!
   533 /*!
   476     Inserts an arguments \a1 and \a2 to a HbParameterLengthLimiter QString.
   534     Inserts an arguments a1, a2, a3, a4 and a5 to a HbParameterLengthLimiter QString.
   477     \a1 QString - QString that will be inserted to the QString
   535     
   478     \a2 QString - QString that will be inserted to the QString
   536     \attention Cross-Platform API
   479     \a3 QString - QString that will be inserted to the QString
   537     
   480     \a4 QString - QString that will be inserted to the QString
   538     \param a1 string that will be inserted to the QString
   481     \a5 QString - QString that will be inserted to the QString
   539     \param a2 string that will be inserted to the QString
       
   540     \param a3 string that will be inserted to the QString
       
   541     \param a4 string that will be inserted to the QString
       
   542     \param a5 string that will be inserted to the QString
   482 */
   543 */
   483 HbParameterLengthLimiter& HbParameterLengthLimiter::arg( const QString &a1,
   544 HbParameterLengthLimiter& HbParameterLengthLimiter::arg( const QString &a1,
   484                                        const QString &a2,
   545                                        const QString &a2,
   485                                        const QString &a3,
   546                                        const QString &a3,
   486                                        const QString &a4,
   547                                        const QString &a4,
   489     this->arg(a1, a2, a3, a4 ).arg(a5);
   550     this->arg(a1, a2, a3, a4 ).arg(a5);
   490     return *this;
   551     return *this;
   491 }
   552 }
   492 
   553 
   493 /*!
   554 /*!
   494     Inserts an arguments \a1 and \a2 to a HbParameterLengthLimiter QString.
   555     Inserts an arguments a1, a2, a3, a4, a5 and a6 to a HbParameterLengthLimiter QString.
   495     \a1 QString - QString that will be inserted to the QString
   556     
   496     \a2 QString - QString that will be inserted to the QString
   557     \attention Cross-Platform API
   497     \a3 QString - QString that will be inserted to the QString
   558     
   498     \a4 QString - QString that will be inserted to the QString
   559     \param a1 string that will be inserted to the QString
   499     \a5 QString - QString that will be inserted to the QString
   560     \param a2 string that will be inserted to the QString
   500     \a6 QString - QString that will be inserted to the QString
   561     \param a3 string that will be inserted to the QString
       
   562     \param a4 string that will be inserted to the QString
       
   563     \param a5 string that will be inserted to the QString
       
   564     \param a6 string that will be inserted to the QString
   501 */
   565 */
   502 HbParameterLengthLimiter& HbParameterLengthLimiter::arg( const QString &a1,
   566 HbParameterLengthLimiter& HbParameterLengthLimiter::arg( const QString &a1,
   503                                        const QString &a2,
   567                                        const QString &a2,
   504                                        const QString &a3,
   568                                        const QString &a3,
   505                                        const QString &a4,
   569                                        const QString &a4,
   509     this->arg(a1, a2, a3, a4, a5).arg(a6);
   573     this->arg(a1, a2, a3, a4, a5).arg(a6);
   510     return *this;
   574     return *this;
   511 }
   575 }
   512 
   576 
   513 /*!
   577 /*!
   514     Inserts an arguments \a1 and \a2 to a HbParameterLengthLimiter QString.
   578     Inserts an arguments a1, a2, a3, a4, a5, a6 and a7 to a HbParameterLengthLimiter QString.
   515     \a1 QString - QString that will be inserted to the QString
   579     
   516     \a2 QString - QString that will be inserted to the QString
   580     \attention Cross-Platform API
   517     \a3 QString - QString that will be inserted to the QString
   581     
   518     \a4 QString - QString that will be inserted to the QString
   582     \param a1 string that will be inserted to the QString
   519     \a5 QString - QString that will be inserted to the QString
   583     \param a2 string that will be inserted to the QString
   520     \a6 QString - QString that will be inserted to the QString
   584     \param a3 string that will be inserted to the QString
   521     \a7 QString - QString that will be inserted to the QString
   585     \param a4 string that will be inserted to the QString
       
   586     \param a5 string that will be inserted to the QString
       
   587     \param a6 string that will be inserted to the QString
       
   588     \param a7 string that will be inserted to the QString
   522 */
   589 */
   523 HbParameterLengthLimiter& HbParameterLengthLimiter::arg( const QString &a1,
   590 HbParameterLengthLimiter& HbParameterLengthLimiter::arg( const QString &a1,
   524                                        const QString &a2,
   591                                        const QString &a2,
   525                                        const QString &a3,
   592                                        const QString &a3,
   526                                        const QString &a4,
   593                                        const QString &a4,
   531     this->arg(a1, a2, a3, a4, a5, a6).arg(a7);
   598     this->arg(a1, a2, a3, a4, a5, a6).arg(a7);
   532     return *this;
   599     return *this;
   533 }
   600 }
   534 
   601 
   535 /*!
   602 /*!
   536     Inserts an arguments \a1 and \a2 to a HbParameterLengthLimiter QString.
   603     Inserts an arguments a1, a2, a3, a4, a5, a6, a7 and a8 to a HbParameterLengthLimiter QString.
   537     \a1 QString - QString that will be inserted to the QString
   604     
   538     \a2 QString - QString that will be inserted to the QString
   605     \attention Cross-Platform API
   539     \a3 QString - QString that will be inserted to the QString
   606     
   540     \a4 QString - QString that will be inserted to the QString
   607     \param a1 string that will be inserted to the QString
   541     \a5 QString - QString that will be inserted to the QString
   608     \param a2 string that will be inserted to the QString
   542     \a6 QString - QString that will be inserted to the QString
   609     \param a3 string that will be inserted to the QString
   543     \a7 QString - QString that will be inserted to the QString
   610     \param a4 string that will be inserted to the QString
   544     \a8 QString - QString that will be inserted to the QString
   611     \param a5 string that will be inserted to the QString
       
   612     \param a6 string that will be inserted to the QString
       
   613     \param a7 string that will be inserted to the QString
       
   614     \param a8 string that will be inserted to the QString
   545 */
   615 */
   546 HbParameterLengthLimiter& HbParameterLengthLimiter::arg( const QString &a1,
   616 HbParameterLengthLimiter& HbParameterLengthLimiter::arg( const QString &a1,
   547                                        const QString &a2,
   617                                        const QString &a2,
   548                                        const QString &a3,
   618                                        const QString &a3,
   549                                        const QString &a4,
   619                                        const QString &a4,
   555     this->arg(a1, a2, a3, a4, a5, a6, a7).arg(a8);
   625     this->arg(a1, a2, a3, a4, a5, a6, a7).arg(a8);
   556     return *this;
   626     return *this;
   557 }
   627 }
   558 
   628 
   559 /*!
   629 /*!
   560     Inserts an arguments \a1 and \a2 to a HbParameterLengthLimiter QString.
   630     Inserts an arguments a1, a2, a3, a4, a5, a6, a7, a8 and a9 to a HbParameterLengthLimiter QString.
   561     \a1 QString - QString that will be inserted to the QString
   631     
   562     \a2 QString - QString that will be inserted to the QString
   632     \attention Cross-Platform API
   563     \a3 QString - QString that will be inserted to the QString
   633     
   564     \a4 QString - QString that will be inserted to the QString
   634     \param a1 string that will be inserted to the QString
   565     \a5 QString - QString that will be inserted to the QString
   635     \param a2 string that will be inserted to the QString
   566     \a6 QString - QString that will be inserted to the QString
   636     \param a3 string that will be inserted to the QString
   567     \a7 QString - QString that will be inserted to the QString
   637     \param a4 string that will be inserted to the QString
   568     \a8 QString - QString that will be inserted to the QString
   638     \param a5 string that will be inserted to the QString
   569     \a9 QString - QString that will be inserted to the QString
   639     \param a6 string that will be inserted to the QString
       
   640     \param a7 string that will be inserted to the QString
       
   641     \param a8 string that will be inserted to the QString
       
   642     \param a9 string that will be inserted to the QString
   570 */
   643 */
   571 HbParameterLengthLimiter& HbParameterLengthLimiter::arg( const QString &a1,
   644 HbParameterLengthLimiter& HbParameterLengthLimiter::arg( const QString &a1,
   572                                        const QString &a2, 
   645                                        const QString &a2, 
   573                                        const QString &a3,
   646                                        const QString &a3,
   574                                        const QString &a4, 
   647                                        const QString &a4, 
   581     this->arg(a1, a2, a3, a4, a5, a6, a7, a8).arg(a9);
   654     this->arg(a1, a2, a3, a4, a5, a6, a7, a8).arg(a9);
   582     return *this;
   655     return *this;
   583 }
   656 }
   584 
   657 
   585 /*!
   658 /*!
   586     Changes the QString that is to be used for inserting arguments to \a.
   659     Changes the QString that is to be used for inserting arguments to QString.
   587     \a QString - QString that will be used for inserting arguments
   660     
       
   661     \attention Cross-Platform API
       
   662     
       
   663     \param a QString that will be used for inserting arguments
   588 */
   664 */
   589 HbParameterLengthLimiter& HbParameterLengthLimiter::operator=( const QString &a )
   665 HbParameterLengthLimiter& HbParameterLengthLimiter::operator=( const QString &a )
   590 {
   666 {
   591     p->str = a;
   667     p->str = a;
   592     return *this;
   668     return *this;
   593 }
   669 }
   594 
   670 
   595 /*!
   671 /*!
   596     Changes the QString that is to be used for inserting arguments to \a.
   672     Changes the QString that is to be used for inserting arguments to HbParameterLengthLimiter.
   597     \a HbParameterLengthLimiter - HbParameterLengthLimiter holding the QString that will be used for inserting arguments
   673     
       
   674     \attention Cross-Platform API
       
   675     
       
   676     \param a HbParameterLengthLimiter holding the QString that will be used for inserting arguments
   598 */
   677 */
   599 HbParameterLengthLimiter& HbParameterLengthLimiter::operator=( const HbParameterLengthLimiter &a )
   678 HbParameterLengthLimiter& HbParameterLengthLimiter::operator=( const HbParameterLengthLimiter &a )
   600 {
   679 {
   601     p->str = a.p->str;
   680     p->str = a.p->str;
   602     return *this;
   681     return *this;
   603 }
   682 }
   604 
   683 
   605 /*!
   684 /*!
   606     returns the current QString.
   685     Returns the current QString.
       
   686     
       
   687     \attention Cross-Platform API    
   607 */
   688 */
   608 HbParameterLengthLimiter::operator QString() const
   689 HbParameterLengthLimiter::operator QString() const
   609 {
   690 {
   610     return p->str;
   691     return p->str;
   611 }
   692 }