Use proper debug area.

svn path=/trunk/KDE/kdepim/; revision=706289
wilder-work
Thomas McGuire 19 years ago
parent 1b3608a5a1
commit d62b4eea76
  1. 2
      accountwizard.cpp
  2. 2
      configuredialog.cpp
  3. 14
      keyresolver.cpp
  4. 2
      kmailicalifaceimpl.cpp
  5. 2
      kmcommands.cpp
  6. 4
      kmcomposewin.cpp
  7. 4
      kmfolderimap.cpp
  8. 2
      kmfoldertree.cpp
  9. 4
      kmkernel.cpp
  10. 4
      kmmsgpart.cpp
  11. 2
      kmreaderwin.cpp
  12. 2
      partNode.cpp

@ -414,7 +414,7 @@ void AccountWizard::createTransport()
if ( pathToSendmail.isEmpty() ) {
pathToSendmail = KStandardDirs::findExe( "sendmail", "/usr/sbin" );
if ( pathToSendmail.isEmpty() ) {
kWarning() <<"Could not find the sendmail binary for local delivery";
kWarning(5006) <<"Could not find the sendmail binary for local delivery";
// setting the path to the most likely location
pathToSendmail = "/usr/sbin/sendmail";
}

@ -508,7 +508,7 @@ void IdentityPage::slotRemoveIdentity()
Q_ASSERT( !mIdentityDialog );
KPIMIdentities::IdentityManager *im = kmkernel->identityManager();
kFatal( im->shadowIdentities().count() < 2 )
kFatal( im->shadowIdentities().count() < 2, 5006 )
<< "Attempted to remove the last identity!";
IdentityListViewItem *item = 0;

@ -101,13 +101,13 @@ static bool ValidTrustedOpenPGPEncryptionKey( const GpgME::Key & key ) {
}
#if 0
if ( key.isRevoked() )
kWarning() <<" is revoked";
kWarning(5006) <<" is revoked";
if ( key.isExpired() )
kWarning() <<" is expired";
kWarning(5006) <<" is expired";
if ( key.isDisabled() )
kWarning() <<" is disabled";
kWarning(5006) <<" is disabled";
if ( !key.canEncrypt() )
kWarning() <<" can't encrypt";
kWarning(5006) <<" can't encrypt";
#endif
if ( key.isRevoked() || key.isExpired() || key.isDisabled() || !key.canEncrypt() )
return false;
@ -118,9 +118,9 @@ static bool ValidTrustedOpenPGPEncryptionKey( const GpgME::Key & key ) {
#if 0
else
if ( it->isRevoked() )
kWarning() <<"a userid is revoked";
kWarning(5006) <<"a userid is revoked";
else
kWarning() <<"bad validity" << it->validity();
kWarning(5006) <<"bad validity" << it->validity();
#endif
}
return false;
@ -1436,7 +1436,7 @@ void Kleo::KeyResolver::addKeys( const std::vector<Item> & items ) {
}
}
if ( f == AutoFormat )
kWarning() <<"Kleo::KeyResolver::addKeys(): Something went wrong. Didn't find a format for \""
kWarning(5006) <<"Kleo::KeyResolver::addKeys(): Something went wrong. Didn't find a format for \""
<< it->address << "\"";
else
std::remove_copy_if( it->keys.begin(), it->keys.end(),

@ -1464,7 +1464,7 @@ void KMailICalIfaceImpl::triggerKolabFreeBusy( const KUrl& folderURL )
Q_ASSERT( path.startsWith( '/' ) );
int secondSlash = path.indexOf( '/', 1 );
if ( secondSlash == -1 ) {
kWarning() <<"KCal::ResourceKolab::fromKMailFolderSynced path is too short:" << path;
kWarning(5006) <<"KCal::ResourceKolab::fromKMailFolderSynced path is too short:" << path;
return;
}
if ( path.startsWith( "/INBOX/", Qt::CaseInsensitive ) ) {

@ -3445,7 +3445,7 @@ KMCommand::Result CreateTodoCommand::execute()
kDebug() <<"Loaded" << dcopService <<" successfully";
Q_ASSERT( kapp->dcopClient()->findObject( dcopService, dcopObjectId, "", QByteArray(), dummy, dummy ) );
} else
kWarning() <<"Error loading" << dcopService;
kWarning(5006) <<"Error loading" << dcopService;
}
#endif
}

@ -2372,7 +2372,7 @@ QString KMComposeWin::prettyMimeType( const QString &type )
const KMimeType::Ptr st = KMimeType::mimeType( t );
if ( !st ) {
kWarning() <<"unknown mimetype" << t;
kWarning(5006) <<"unknown mimetype" << t;
return QString();
}
@ -2458,7 +2458,7 @@ void KMComposeWin::addrBookSelInto()
addrBookSelIntoOld();
}
} else {
kWarning() <<"To be implemented: call recipients picker.";
kWarning(5006) <<"To be implemented: call recipients picker.";
}
}

@ -178,12 +178,12 @@ KMAcctImap* KMFolderImap::account() const
if ( !mAccount ) {
KMFolderDir *parentFolderDir = dynamic_cast<KMFolderDir*>( folder()->parent() );
if ( !parentFolderDir ) {
kWarning() <<"No parent folder dir found for" << folder()->prettyUrl();
kWarning(5006) <<"No parent folder dir found for" << folder()->prettyUrl();
return 0;
}
KMFolder *parentFolder = parentFolderDir->owner();
if ( !parentFolder ) {
kWarning() <<"No parent folder found for" << folder()->prettyUrl();
kWarning(5006) <<"No parent folder found for" << folder()->prettyUrl();
return 0;
}
KMFolderImap *parentStorage = dynamic_cast<KMFolderImap*>( parentFolder->storage() );

@ -1552,7 +1552,7 @@ void KMFolderTree::contentsDropEvent( QDropEvent *e )
emit folderDropCopy( fti->folder() );
} else if ( action == DRAG_COPY || action == DRAG_MOVE ) {
if ( !MailList::canDecode( e->mimeData() ) ) {
kWarning() <<"Could not decode drag data!";
kWarning(5006) <<"Could not decode drag data!";
} else {
MailList list = MailList::fromMimeData( e->mimeData() );
QList<quint32> serNums = MessageCopyHelper::serNumListFromMailList( list );

@ -543,7 +543,7 @@ void KMKernel::setDefaultTransport( const QString & transport )
{
MailTransport::Transport *t = MailTransport::TransportManager::self()->transportByName( transport, false );
if ( !t ) {
kWarning() <<"The transport you entered is not available";
kWarning(5006) <<"The transport you entered is not available";
return;
}
MailTransport::TransportManager::self()->setDefaultTransport( t->id() );
@ -1907,7 +1907,7 @@ void KMKernel::emergencyExit( const QString& reason )
"terminate now.\nThe error was:\n%1", reason );
}
kWarning() << mesg;
kWarning(5006) << mesg;
KNotification::event(KNotification::Catastrophe, mesg);
::exit(1);

@ -148,7 +148,7 @@ QString KMMessagePart::bodyToUnicode(const QTextCodec* codec) const {
void KMMessagePart::setCharset( const QByteArray & c ) {
if ( type() != DwMime::kTypeText )
kWarning()
kWarning(5006)
<< "KMMessagePart::setCharset(): trying to set a charset for a non-textual mimetype." << endl
<< "Fix this caller:" << endl
<< "====================================================================" << endl
@ -316,7 +316,7 @@ QString KMMessagePart::iconName() const
if (mime) {
fileName = mime->iconName();
} else {
kWarning() <<"unknown mimetype" << mimeType;
kWarning(5006) <<"unknown mimetype" << mimeType;
}
if ( fileName.isEmpty() )

@ -1501,7 +1501,7 @@ void KMReaderWin::parseMsg(KMMessage* aMsg)
aMsg->setIsBeingParsed( true );
if ( mRootNode && !mRootNode->processed() ) {
kWarning() <<"The root node is not yet processed! Danger!";
kWarning(5006) <<"The root node is not yet processed! Danger!";
return;
} else {
delete mRootNode;

@ -586,7 +586,7 @@ bool partNode::isFirstTextPart() const {
for ( const partNode * n = root ; n ; n = n->next() )
if ( n->type() == DwMime::kTypeText )
return n == this;
kFatal() <<"partNode::isFirstTextPart(): Didn't expect to end up here...";
kFatal(5006) <<"partNode::isFirstTextPart(): Didn't expect to end up here...";
return false; // make comiler happy
}

Loading…
Cancel
Save