19 #ifndef KMESSAGEBOXWRAPPER_H
20 #define KMESSAGEBOXWRAPPER_H
21 #include <kmessagebox.h>
22 #include <kapplication.h>
30 class KIO_EXPORT KMessageBoxWrapper :
public KMessageBox
33 static void error(TQWidget *parent,
35 const TQString &caption = TQString::null)
37 if (KApplication::guiEnabled()) {
39 KMessageBox::error( parent, text, caption );
41 kdWarning() << text << endl;
44 static void sorry(TQWidget *parent,
46 const TQString &caption = TQString::null)
48 if (KApplication::guiEnabled()) {
50 KMessageBox::sorry( parent, text, caption );
52 kdWarning() << text << endl;