{
QIODevice * f = KFilterDev::deviceForFile( fileName );
if ( !f->open( QIODevice::ReadOnly ) ) {
- kDebug() << "Warning, could not open QIODevice for file: " << fileName;
+ kDebug(1100) << "Warning, could not open QIODevice for file: " << fileName;
delete f;
return Csv;
}
switch ( ft ) {
case Kvtml: {
- kDebug() << "Reading KVTML document...";
+ kDebug(1100) << "Reading KVTML document...";
KEduVocKvtml2Reader kvtmlReader( f );
read = kvtmlReader.readDoc( this );
if ( !read ) {
break;
case Wql: {
- kDebug() << "Reading WordQuiz (WQL) document...";
+ kDebug(1100) << "Reading WordQuiz (WQL) document...";
KEduVocWqlReader wqlReader( f );
d->m_url.setFileName( i18n( "Untitled" ) );
read = wqlReader.readDoc( this );
break;
case Pauker: {
- kDebug() << "Reading Pauker document...";
+ kDebug(1100) << "Reading Pauker document...";
KEduVocPaukerReader paukerReader( this );
d->m_url.setFileName( i18n( "Untitled" ) );
read = paukerReader.read( f );
break;
case Vokabeln: {
- kDebug() << "Reading Vokabeln document...";
+ kDebug(1100) << "Reading Vokabeln document...";
KEduVocVokabelnReader vokabelnReader( f );
d->m_url.setFileName( i18n( "Untitled" ) );
read = vokabelnReader.readDoc( this );
break;
case Csv: {
- kDebug() << "Reading CVS document...";
+ kDebug(1100) << "Reading CVS document...";
KEduVocCsvReader csvReader( f );
read = csvReader.readDoc( this );
if ( !read ) {
break;
case Xdxf: {
- kDebug() << "Reading XDXF document...";
+ kDebug(1100) << "Reading XDXF document...";
KEduVocXdxfReader xdxfReader( this );
d->m_url.setFileName( i18n( "Untitled" ) );
read = xdxfReader.read( f );
break;
default: {
- kDebug() << "Reading KVTML document (fallback)...";
+ kDebug(1100) << "Reading KVTML document (fallback)...";
KEduVocKvtml2Reader kvtmlReader( f );
read = kvtmlReader.readDoc( this );
if ( !read ) {
void KEduVocDocument::merge( KEduVocDocument *docToMerge, bool matchIdentifiers )
{
- kDebug() << "Merging of docs is not implemented"; /// @todo IMPLEMENT ME
+ kDebug(1100) << "Merging of docs is not implemented"; /// @todo IMPLEMENT ME
// This code was really horribly broken.
// Now with the new classes we could attempt to reactivate it.
// A rewrite might be easier.
int KEduVocDocument::appendIdentifier( const KEduVocIdentifier& id )
{
int i = d->m_identifiers.size();
-kDebug() << "appendIdentifier: " << i << id.name() << id.locale();
+//kDebug(1100) << "appendIdentifier: " << i << id.name() << id.locale();
d->m_identifiers.append( id );
if ( id.name().isEmpty() ) {
if ( i == 0 ) {