src/hbcore/i18n/hbparameterlengthlimiter.cpp
branchGCC_SURGE
changeset 15 f378acbc9cfb
parent 6 c3690ec91ef8
child 30 80e4d18b72f5
child 34 ed14f46c0e55
equal deleted inserted replaced
9:730c025d4b77 15:f378acbc9cfb
    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.
    42         - %[y]x for inserting QStrings, x indicates argument inserting order and y is a number indicating the maximum length
    42         - %[y]x for inserting QStrings, x indicates argument inserting order and y is a number indicating the maximum length
    43                 for the argument e.g. %[10]2 would mean that the inserted QStrings maximum length is 10 characters and that the
    43                 for the argument e.g. %[10]2 would mean that the inserted QStrings maximum length is 10 characters and that the
    44                 limited argument is the second argument to be inserted.
    44                 limited argument is the second argument to be inserted.
    45         - %Lx   for inserting numbers, x is used to indicate argument inserting order.
    45         - %Lx   for inserting numbers, x is used to indicate argument inserting order.
    46 
    46 
    47     Example of how to use HbParameterLengthLimiter
    47     Example of how to use HbParameterLengthLimiter:
    48     \snippet{unittest_HbParameterLengthLimiter/unittest_HbParameterLengthLimiter.cpp,1}
    48     \snippet{unittest_HbParameterLengthLimiter/unittest_HbParameterLengthLimiter.cpp,1}
    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 {
   335                     break;
   384                     break;
   336                 }
   385                 }
   337 
   386 
   338                 while( p->str.at(i) != ']' ) {
   387                 while( p->str.at(i) != ']' ) {
   339                     i++;
   388                     i++;
       
   389                     if( i >= p->str.length() ) {
       
   390                         break;
       
   391                     }
   340                 }
   392                 }
   341 
   393 
   342                 i++;
   394                 i++;
   343                 if( i >= p->str.length() ) {
   395                 if( i >= p->str.length() ) {
   344                     break;
   396                     break;
   429     }
   481     }
   430     return *this;
   482     return *this;
   431 }
   483 }
   432 
   484 
   433 /*!
   485 /*!
   434     Inserts an arguments \a1 and \a2 to a HbParameterLengthLimiter QString.
   486     Inserts an arguments a1 and a2 to a HbParameterLengthLimiter QString.
   435     \a1 QString - QString that will be inserted to the QString
   487     
   436     \a2 QString - QString that will be inserted to the QString
   488     \attention Cross-Platform API
       
   489     
       
   490     \param a1 string that will be inserted to the QString
       
   491     \param a2 string that will be inserted to the QString
   437 */
   492 */
   438 HbParameterLengthLimiter& HbParameterLengthLimiter::arg( const QString &a1,
   493 HbParameterLengthLimiter& HbParameterLengthLimiter::arg( const QString &a1,
   439                                        const QString &a2 )
   494                                        const QString &a2 )
   440 {
   495 {
   441     this->arg(a1).arg(a2);
   496     this->arg(a1).arg(a2);
   442     return *this;
   497     return *this;
   443 }
   498 }
   444 
   499 
   445 /*!
   500 /*!
   446     Inserts an arguments \a1 and \a2 to a HbParameterLengthLimiter QString.
   501     Inserts an arguments a1, a2 and a3 to a HbParameterLengthLimiter QString.
   447     \a1 QString - QString that will be inserted to the QString
   502     
   448     \a2 QString - QString that will be inserted to the QString
   503     \attention Cross-Platform API
   449     \a3 QString - QString that will be inserted to the QString
   504     
       
   505     \param a1 string that will be inserted to the QString
       
   506     \param a2 string that will be inserted to the QString
       
   507     \param a3 string that will be inserted to the QString
   450 */
   508 */
   451 HbParameterLengthLimiter& HbParameterLengthLimiter::arg( const QString &a1,
   509 HbParameterLengthLimiter& HbParameterLengthLimiter::arg( const QString &a1,
   452                                        const QString &a2,
   510                                        const QString &a2,
   453                                        const QString &a3)
   511                                        const QString &a3)
   454 {
   512 {
   455     this->arg(a1, a2).arg(a3);
   513     this->arg(a1, a2).arg(a3);
   456     return *this;
   514     return *this;
   457 }
   515 }
   458 
   516 
   459 /*!
   517 /*!
   460     Inserts an arguments \a1 and \a2 to a HbParameterLengthLimiter QString.
   518     Inserts an arguments a1, a2, a3 and a4 to a HbParameterLengthLimiter QString.
   461     \a1 QString - QString that will be inserted to the QString
   519     
   462     \a2 QString - QString that will be inserted to the QString
   520     \attention Cross-Platform API
   463     \a3 QString - QString that will be inserted to the QString
   521     
   464     \a4 QString - QString that will be inserted to the QString
   522     \param a1 string that will be inserted to the QString
       
   523     \param a2 string that will be inserted to the QString
       
   524     \param a3 string that will be inserted to the QString
       
   525     \param a4 string that will be inserted to the QString
   465 */
   526 */
   466 HbParameterLengthLimiter& HbParameterLengthLimiter::arg( const QString &a1,
   527 HbParameterLengthLimiter& HbParameterLengthLimiter::arg( const QString &a1,
   467                                        const QString &a2,
   528                                        const QString &a2,
   468                                        const QString &a3,
   529                                        const QString &a3,
   469                                        const QString &a4 )
   530                                        const QString &a4 )
   471     this->arg(a1, a2, a3).arg(a4);
   532     this->arg(a1, a2, a3).arg(a4);
   472     return *this;
   533     return *this;
   473 }
   534 }
   474 
   535 
   475 /*!
   536 /*!
   476     Inserts an arguments \a1 and \a2 to a HbParameterLengthLimiter QString.
   537     Inserts an arguments a1, a2, a3, a4 and a5 to a HbParameterLengthLimiter QString.
   477     \a1 QString - QString that will be inserted to the QString
   538     
   478     \a2 QString - QString that will be inserted to the QString
   539     \attention Cross-Platform API
   479     \a3 QString - QString that will be inserted to the QString
   540     
   480     \a4 QString - QString that will be inserted to the QString
   541     \param a1 string that will be inserted to the QString
   481     \a5 QString - QString that will be inserted to the QString
   542     \param a2 string that will be inserted to the QString
       
   543     \param a3 string that will be inserted to the QString
       
   544     \param a4 string that will be inserted to the QString
       
   545     \param a5 string that will be inserted to the QString
   482 */
   546 */
   483 HbParameterLengthLimiter& HbParameterLengthLimiter::arg( const QString &a1,
   547 HbParameterLengthLimiter& HbParameterLengthLimiter::arg( const QString &a1,
   484                                        const QString &a2,
   548                                        const QString &a2,
   485                                        const QString &a3,
   549                                        const QString &a3,
   486                                        const QString &a4,
   550                                        const QString &a4,
   489     this->arg(a1, a2, a3, a4 ).arg(a5);
   553     this->arg(a1, a2, a3, a4 ).arg(a5);
   490     return *this;
   554     return *this;
   491 }
   555 }
   492 
   556 
   493 /*!
   557 /*!
   494     Inserts an arguments \a1 and \a2 to a HbParameterLengthLimiter QString.
   558     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
   559     
   496     \a2 QString - QString that will be inserted to the QString
   560     \attention Cross-Platform API
   497     \a3 QString - QString that will be inserted to the QString
   561     
   498     \a4 QString - QString that will be inserted to the QString
   562     \param a1 string that will be inserted to the QString
   499     \a5 QString - QString that will be inserted to the QString
   563     \param a2 string that will be inserted to the QString
   500     \a6 QString - QString that will be inserted to the QString
   564     \param a3 string that will be inserted to the QString
       
   565     \param a4 string that will be inserted to the QString
       
   566     \param a5 string that will be inserted to the QString
       
   567     \param a6 string that will be inserted to the QString
   501 */
   568 */
   502 HbParameterLengthLimiter& HbParameterLengthLimiter::arg( const QString &a1,
   569 HbParameterLengthLimiter& HbParameterLengthLimiter::arg( const QString &a1,
   503                                        const QString &a2,
   570                                        const QString &a2,
   504                                        const QString &a3,
   571                                        const QString &a3,
   505                                        const QString &a4,
   572                                        const QString &a4,
   509     this->arg(a1, a2, a3, a4, a5).arg(a6);
   576     this->arg(a1, a2, a3, a4, a5).arg(a6);
   510     return *this;
   577     return *this;
   511 }
   578 }
   512 
   579 
   513 /*!
   580 /*!
   514     Inserts an arguments \a1 and \a2 to a HbParameterLengthLimiter QString.
   581     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
   582     
   516     \a2 QString - QString that will be inserted to the QString
   583     \attention Cross-Platform API
   517     \a3 QString - QString that will be inserted to the QString
   584     
   518     \a4 QString - QString that will be inserted to the QString
   585     \param a1 string that will be inserted to the QString
   519     \a5 QString - QString that will be inserted to the QString
   586     \param a2 string that will be inserted to the QString
   520     \a6 QString - QString that will be inserted to the QString
   587     \param a3 string that will be inserted to the QString
   521     \a7 QString - QString that will be inserted to the QString
   588     \param a4 string that will be inserted to the QString
       
   589     \param a5 string that will be inserted to the QString
       
   590     \param a6 string that will be inserted to the QString
       
   591     \param a7 string that will be inserted to the QString
   522 */
   592 */
   523 HbParameterLengthLimiter& HbParameterLengthLimiter::arg( const QString &a1,
   593 HbParameterLengthLimiter& HbParameterLengthLimiter::arg( const QString &a1,
   524                                        const QString &a2,
   594                                        const QString &a2,
   525                                        const QString &a3,
   595                                        const QString &a3,
   526                                        const QString &a4,
   596                                        const QString &a4,
   531     this->arg(a1, a2, a3, a4, a5, a6).arg(a7);
   601     this->arg(a1, a2, a3, a4, a5, a6).arg(a7);
   532     return *this;
   602     return *this;
   533 }
   603 }
   534 
   604 
   535 /*!
   605 /*!
   536     Inserts an arguments \a1 and \a2 to a HbParameterLengthLimiter QString.
   606     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
   607     
   538     \a2 QString - QString that will be inserted to the QString
   608     \attention Cross-Platform API
   539     \a3 QString - QString that will be inserted to the QString
   609     
   540     \a4 QString - QString that will be inserted to the QString
   610     \param a1 string that will be inserted to the QString
   541     \a5 QString - QString that will be inserted to the QString
   611     \param a2 string that will be inserted to the QString
   542     \a6 QString - QString that will be inserted to the QString
   612     \param a3 string that will be inserted to the QString
   543     \a7 QString - QString that will be inserted to the QString
   613     \param a4 string that will be inserted to the QString
   544     \a8 QString - QString that will be inserted to the QString
   614     \param a5 string that will be inserted to the QString
       
   615     \param a6 string that will be inserted to the QString
       
   616     \param a7 string that will be inserted to the QString
       
   617     \param a8 string that will be inserted to the QString
   545 */
   618 */
   546 HbParameterLengthLimiter& HbParameterLengthLimiter::arg( const QString &a1,
   619 HbParameterLengthLimiter& HbParameterLengthLimiter::arg( const QString &a1,
   547                                        const QString &a2,
   620                                        const QString &a2,
   548                                        const QString &a3,
   621                                        const QString &a3,
   549                                        const QString &a4,
   622                                        const QString &a4,
   555     this->arg(a1, a2, a3, a4, a5, a6, a7).arg(a8);
   628     this->arg(a1, a2, a3, a4, a5, a6, a7).arg(a8);
   556     return *this;
   629     return *this;
   557 }
   630 }
   558 
   631 
   559 /*!
   632 /*!
   560     Inserts an arguments \a1 and \a2 to a HbParameterLengthLimiter QString.
   633     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
   634     
   562     \a2 QString - QString that will be inserted to the QString
   635     \attention Cross-Platform API
   563     \a3 QString - QString that will be inserted to the QString
   636     
   564     \a4 QString - QString that will be inserted to the QString
   637     \param a1 string that will be inserted to the QString
   565     \a5 QString - QString that will be inserted to the QString
   638     \param a2 string that will be inserted to the QString
   566     \a6 QString - QString that will be inserted to the QString
   639     \param a3 string that will be inserted to the QString
   567     \a7 QString - QString that will be inserted to the QString
   640     \param a4 string that will be inserted to the QString
   568     \a8 QString - QString that will be inserted to the QString
   641     \param a5 string that will be inserted to the QString
   569     \a9 QString - QString that will be inserted to the QString
   642     \param a6 string that will be inserted to the QString
       
   643     \param a7 string that will be inserted to the QString
       
   644     \param a8 string that will be inserted to the QString
       
   645     \param a9 string that will be inserted to the QString
   570 */
   646 */
   571 HbParameterLengthLimiter& HbParameterLengthLimiter::arg( const QString &a1,
   647 HbParameterLengthLimiter& HbParameterLengthLimiter::arg( const QString &a1,
   572                                        const QString &a2, 
   648                                        const QString &a2, 
   573                                        const QString &a3,
   649                                        const QString &a3,
   574                                        const QString &a4, 
   650                                        const QString &a4, 
   581     this->arg(a1, a2, a3, a4, a5, a6, a7, a8).arg(a9);
   657     this->arg(a1, a2, a3, a4, a5, a6, a7, a8).arg(a9);
   582     return *this;
   658     return *this;
   583 }
   659 }
   584 
   660 
   585 /*!
   661 /*!
   586     Changes the QString that is to be used for inserting arguments to \a.
   662     Changes the QString that is to be used for inserting arguments to QString.
   587     \a QString - QString that will be used for inserting arguments
   663     
       
   664     \attention Cross-Platform API
       
   665     
       
   666     \param a QString that will be used for inserting arguments
   588 */
   667 */
   589 HbParameterLengthLimiter& HbParameterLengthLimiter::operator=( const QString &a )
   668 HbParameterLengthLimiter& HbParameterLengthLimiter::operator=( const QString &a )
   590 {
   669 {
   591     p->str = a;
   670     p->str = a;
   592     return *this;
   671     return *this;
   593 }
   672 }
   594 
   673 
   595 /*!
   674 /*!
   596     Changes the QString that is to be used for inserting arguments to \a.
   675     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
   676     
       
   677     \attention Cross-Platform API
       
   678     
       
   679     \param a HbParameterLengthLimiter holding the QString that will be used for inserting arguments
   598 */
   680 */
   599 HbParameterLengthLimiter& HbParameterLengthLimiter::operator=( const HbParameterLengthLimiter &a )
   681 HbParameterLengthLimiter& HbParameterLengthLimiter::operator=( const HbParameterLengthLimiter &a )
   600 {
   682 {
   601     p->str = a.p->str;
   683     p->str = a.p->str;
   602     return *this;
   684     return *this;
   603 }
   685 }
   604 
   686 
   605 /*!
   687 /*!
   606     returns the current QString.
   688     Returns the current QString.
       
   689     
       
   690     \attention Cross-Platform API    
   607 */
   691 */
   608 HbParameterLengthLimiter::operator QString() const
   692 HbParameterLengthLimiter::operator QString() const
   609 {
   693 {
   610     return p->str;
   694     return p->str;
   611 }
   695 }