You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
91 lines
2.8 KiB
91 lines
2.8 KiB
15 years ago
|
/***************************************************************************
|
||
|
errorlog.h - description
|
||
|
-------------------
|
||
|
begin : Sa Sep 13 2003
|
||
|
copyright : (C) 2003 by Martin Witte
|
||
|
email : witte@kawo1.rwth-aachen.de
|
||
|
***************************************************************************/
|
||
|
|
||
|
/***************************************************************************
|
||
|
* *
|
||
|
* This program is free software; you can redistribute it and/or modify *
|
||
|
* it under the terms of the GNU General Public License as published by *
|
||
|
* the Free Software Foundation; either version 2 of the License, or *
|
||
|
* (at your option) any later version. *
|
||
|
* *
|
||
|
***************************************************************************/
|
||
|
|
||
|
#ifndef KRADIO_ERRORLOG_H
|
||
|
#define KRADIO_ERRORLOG_H
|
||
|
|
||
|
#include <kdialogbase.h>
|
||
|
|
||
|
#include "../../src/include/errorlog-interfaces.h"
|
||
|
#include "../../src/include/widgetplugins.h"
|
||
|
|
||
|
|
||
14 years ago
|
class TQTextEdit;
|
||
15 years ago
|
class ErrorLog : public KDialogBase,
|
||
|
public WidgetPluginBase,
|
||
|
public IErrorLog
|
||
|
{
|
||
|
Q_OBJECT
|
||
13 years ago
|
|
||
15 years ago
|
public:
|
||
14 years ago
|
ErrorLog(const TQString &name = TQString());
|
||
15 years ago
|
~ErrorLog();
|
||
|
|
||
14 years ago
|
virtual TQString pluginClassName() const { return "ErrorLog"; }
|
||
|
virtual const TQString &name() const { return PluginBase::name(); }
|
||
|
virtual TQString &name() { return PluginBase::name(); }
|
||
15 years ago
|
|
||
|
virtual bool connectI (Interface *);
|
||
|
virtual bool disconnectI (Interface *);
|
||
|
|
||
|
// WidgetPluginBase
|
||
|
|
||
12 years ago
|
virtual void saveState (TDEConfig *) const;
|
||
|
virtual void restoreState (TDEConfig *);
|
||
15 years ago
|
|
||
|
public slots:
|
||
|
virtual void showOnOrgDesktop();
|
||
|
virtual void show();
|
||
|
virtual void hide();
|
||
|
virtual void toggleShown () { WidgetPluginBase::pToggleShown(); }
|
||
|
|
||
|
protected:
|
||
14 years ago
|
TQWidget *getWidget() { return this; }
|
||
|
const TQWidget *getWidget() const { return this; }
|
||
15 years ago
|
|
||
14 years ago
|
virtual void showEvent(TQShowEvent *);
|
||
|
virtual void hideEvent(TQHideEvent *);
|
||
15 years ago
|
|
||
|
virtual ConfigPageInfo createConfigurationPage () { return ConfigPageInfo(); }
|
||
|
virtual AboutPageInfo createAboutPage () { return AboutPageInfo(); }
|
||
|
|
||
|
// IErrorLog
|
||
|
|
||
|
RECEIVERS:
|
||
14 years ago
|
bool logError (const TQString &);
|
||
|
bool logWarning(const TQString &);
|
||
|
bool logInfo (const TQString &);
|
||
|
bool logDebug (const TQString &);
|
||
15 years ago
|
|
||
|
// KDialogBase
|
||
|
|
||
|
protected slots:
|
||
|
|
||
|
void slotUser1();
|
||
|
|
||
|
protected:
|
||
|
|
||
14 years ago
|
TQTextEdit *m_teDebug,
|
||
15 years ago
|
*m_teInfos,
|
||
|
*m_teWarnings,
|
||
|
*m_teErrors;
|
||
|
|
||
|
bool init_done;
|
||
|
};
|
||
|
|
||
|
#endif
|