author | zautrix <zautrix> | 2004-08-01 22:49:56 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-08-01 22:49:56 (UTC) |
commit | 3b4aa1cd78395c0f94b99decd901842944765746 (patch) (unidiff) | |
tree | 54921c72da527d45bf4b94d9d499f860014dd685 /libkcal | |
parent | ed3af1a632f953179ef3cad76ab5d99809f47d60 (diff) | |
download | kdepimpi-3b4aa1cd78395c0f94b99decd901842944765746.zip kdepimpi-3b4aa1cd78395c0f94b99decd901842944765746.tar.gz kdepimpi-3b4aa1cd78395c0f94b99decd901842944765746.tar.bz2 |
Updated migration howto
-rw-r--r-- | libkcal/incidencebase.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/libkcal/incidencebase.cpp b/libkcal/incidencebase.cpp index d7c4595..f1db8b7 100644 --- a/libkcal/incidencebase.cpp +++ b/libkcal/incidencebase.cpp | |||
@@ -386,6 +386,7 @@ void IncidenceBase::setID( const QString & prof , int id ) | |||
386 | } else { | 386 | } else { |
387 | mExternalId += prof+";"+QString::number( id) +";0:"; | 387 | mExternalId += prof+";"+QString::number( id) +";0:"; |
388 | } | 388 | } |
389 | qDebug("setID*%s*%d*%s* ", prof.latin1(), id,mExternalId.latin1() ); | ||
389 | } | 390 | } |
390 | int IncidenceBase::getID( const QString & prof) | 391 | int IncidenceBase::getID( const QString & prof) |
391 | { | 392 | { |
@@ -398,10 +399,11 @@ int IncidenceBase::getID( const QString & prof) | |||
398 | bool ok; | 399 | bool ok; |
399 | ret = mExternalId.mid ( num + len,end-len-num).toInt( &ok ); | 400 | ret = mExternalId.mid ( num + len,end-len-num).toInt( &ok ); |
400 | if (!ok) | 401 | if (!ok) |
401 | return -1; | 402 | ret = -1; |
402 | } | 403 | } |
403 | } | 404 | } |
404 | return ret; | 405 | qDebug("getID*%s*%d*%s* ", prof.latin1(), ret,mExternalId.latin1() ); |
406 | return ret; | ||
405 | } | 407 | } |
406 | 408 | ||
407 | // example :Sharp_DTM;22;23566:TP;-1;8654:TPP;18;0: | 409 | // example :Sharp_DTM;22;23566:TP;-1;8654:TPP;18;0: |
@@ -420,6 +422,7 @@ void IncidenceBase::setCsum( const QString & prof , int id ) | |||
420 | } else { | 422 | } else { |
421 | mExternalId += prof+";-1;"+QString::number( id) +":"; | 423 | mExternalId += prof+";-1;"+QString::number( id) +":"; |
422 | } | 424 | } |
425 | qDebug("setCsum*%s*%d*%s* ", prof.latin1(), id,mExternalId.latin1() ); | ||
423 | } | 426 | } |
424 | int IncidenceBase::getCsum( const QString & prof) | 427 | int IncidenceBase::getCsum( const QString & prof) |
425 | { | 428 | { |
@@ -433,9 +436,10 @@ int IncidenceBase::getCsum( const QString & prof) | |||
433 | bool ok; | 436 | bool ok; |
434 | ret = mExternalId.mid ( num ,end-num).toInt( &ok ); | 437 | ret = mExternalId.mid ( num ,end-num).toInt( &ok ); |
435 | if (!ok) | 438 | if (!ok) |
436 | return -1; | 439 | ret = -1; |
437 | } | 440 | } |
438 | } | 441 | } |
442 | qDebug("getCsum*%s*%d*%s* ", prof.latin1(), ret,mExternalId.latin1() ); | ||
439 | return ret; | 443 | return ret; |
440 | } | 444 | } |
441 | 445 | ||