summaryrefslogtreecommitdiffabout
path: root/microkde/kidmanager.cpp
authorzautrix <zautrix>2004-08-20 04:28:28 (UTC)
committer zautrix <zautrix>2004-08-20 04:28:28 (UTC)
commit93decd4185adc7197008e8397cf753a5ab674d99 (patch) (side-by-side diff)
tree0d701d0a687c22cfe2894121f8540d60a5fbe7a9 /microkde/kidmanager.cpp
parentf7a401f03c18ef96eb40dc5540b31cd10880e845 (diff)
downloadkdepimpi-93decd4185adc7197008e8397cf753a5ab674d99.zip
kdepimpi-93decd4185adc7197008e8397cf753a5ab674d99.tar.gz
kdepimpi-93decd4185adc7197008e8397cf753a5ab674d99.tar.bz2
Bugfixes for syncing
Diffstat (limited to 'microkde/kidmanager.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--microkde/kidmanager.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/microkde/kidmanager.cpp b/microkde/kidmanager.cpp
index d24a41f..8cf486a 100644
--- a/microkde/kidmanager.cpp
+++ b/microkde/kidmanager.cpp
@@ -22,7 +22,7 @@ QString KIdManager::setId (const QString& idString,const QString& prof,const QSt
} else {
newIDString = idString + prof+";"+ QString::number( idvalue.length() ) +";"+idvalue +";0:";
}
- qDebug("setID:profile:%s*retval:%s*idvalue:%s* ", prof.latin1(), newIDString.latin1() ,idvalue.latin1() );
+ //qDebug("setID:profile:%s*retval:%s*idvalue:%s* ", prof.latin1(), newIDString.latin1() ,idvalue.latin1() );
return newIDString;
}
QString KIdManager::getId (const QString& idString,const QString& prof )
@@ -39,7 +39,7 @@ QString KIdManager::getId (const QString& idString,const QString& prof )
if ( KIdManager::getNumbers (idString, prof, startProf, startIDnum, startIDnumlen,startID, lenID, startCsum, lenCsum, endall) )
idval = idString.mid( startID, lenID );
- qDebug("getID:profile:%s*retval:%s*idstring:%s* ", prof.latin1(), idval.latin1() ,idString.latin1() );
+ //qDebug("getID:profile:%s*retval:%s*idstring:%s* ", prof.latin1(), idval.latin1() ,idString.latin1() );
return idval;
}
@@ -56,11 +56,11 @@ QString KIdManager::removeId (const QString& idString,const QString& prof )
int endall;
QString newIDString;
if ( KIdManager::getNumbers (idString, prof, startProf, startIDnum, startIDnumlen,startID, lenID, startCsum, lenCsum, endall) ) {
- newIDString = idString.left(startProf) + idString.mid( endall );
+ newIDString = idString.left(startProf) + idString.mid( endall+1 );
} else {
newIDString = idString;
}
- qDebug("removeID:profile:%s*retval:%s*oldidstring:%s* ", prof.latin1(), newIDString.latin1() ,idString.latin1() );
+ //qDebug("removeID:profile:%s*retval:%s*oldidstring:%s* ", prof.latin1(), newIDString.latin1() ,idString.latin1() );
return newIDString;
}
@@ -80,7 +80,7 @@ QString KIdManager::setCsum (const QString& idString,const QString& prof,const Q
} else {
newIDString = idString + prof + ";3;_u_;"+ idCsum + ":";
}
- qDebug("setCsum:profile:%s*retval:%s*idCsum:%s* ", prof.latin1(), newIDString.latin1() ,idCsum.latin1() );
+ //qDebug("setCsum:profile:%s*retval:%s*idCsum:%s* ", prof.latin1(), newIDString.latin1() ,idCsum.latin1() );
return newIDString;
}
QString KIdManager::getCsum (const QString& idString,const QString& prof )
@@ -97,7 +97,7 @@ QString KIdManager::getCsum (const QString& idString,const QString& prof )
if ( KIdManager::getNumbers (idString, prof, startProf, startIDnum, startIDnumlen,startID, lenID, startCsum, lenCsum, endall) )
idval = idString.mid( startCsum, lenCsum );
- qDebug("getCsum:profile:%s*retval:%s*idstring:%s* ", prof.latin1(), idval.latin1() ,idString.latin1() );
+ //qDebug("getCsum:profile:%s*retval:%s*idstring:%s* ", prof.latin1(), idval.latin1() ,idString.latin1() );
return idval;
}
// :profilename;12;id_withLen12;123456:
@@ -129,7 +129,7 @@ bool KIdManager::getNumbers (const QString& idString,const QString& prof, int &s
return false;
}
} else {
- qDebug("getnumbers: profile not found *%s* ",prof.latin1() );
+ //qDebug("getnumbers: profile not found *%s* ",prof.latin1() );
return false;
}
return true;