19 #ifndef KMESSAGEBOXWRAPPER_H
20 #define KMESSAGEBOXWRAPPER_H
21 #include <tdemessagebox.h>
22 #include <tdeapplication.h>
30 class TDEIO_EXPORT KMessageBoxWrapper :
public KMessageBox
33 static void error(TQWidget *parent,
35 const TQString &caption = TQString::null)
37 if (TDEApplication::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 (TDEApplication::guiEnabled()) {
50 KMessageBox::sorry( parent, text, caption );
52 kdWarning() << text << endl;