diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2022-05-30 19:40:31 +0900 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2022-05-30 21:55:12 +0200 |
commit | 9d7329284fd42187092c829ae6ed030561002776 (patch) | |
tree | 1d53503d17938eca725caee7ff783fccf52ca509 /plugins/gui-error-log/errorlog.h | |
parent | fac82f62f156c76cb4b23c313111283b30a778b5 (diff) | |
download | tderadio-9d732928.tar.gz tderadio-9d732928.zip |
Standardize folder structure.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit d95a4fea540b371fa86493d069fdbd54f33c5b40)
Diffstat (limited to 'plugins/gui-error-log/errorlog.h')
-rw-r--r-- | plugins/gui-error-log/errorlog.h | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/plugins/gui-error-log/errorlog.h b/plugins/gui-error-log/errorlog.h new file mode 100644 index 0000000..26bd0c0 --- /dev/null +++ b/plugins/gui-error-log/errorlog.h @@ -0,0 +1,90 @@ +/*************************************************************************** + 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" + + +class TQTextEdit; +class ErrorLog : public KDialogBase, + public WidgetPluginBase, + public IErrorLog +{ +Q_OBJECT + +public: + ErrorLog(const TQString &name = TQString()); + ~ErrorLog(); + + virtual TQString pluginClassName() const { return "ErrorLog"; } + virtual const TQString &name() const { return PluginBase::name(); } + virtual TQString &name() { return PluginBase::name(); } + + virtual bool connectI (Interface *); + virtual bool disconnectI (Interface *); + +// WidgetPluginBase + + virtual void saveState (TDEConfig *) const; + virtual void restoreState (TDEConfig *); + +public slots: + virtual void showOnOrgDesktop(); + virtual void show(); + virtual void hide(); + virtual void toggleShown () { WidgetPluginBase::pToggleShown(); } + +protected: + TQWidget *getWidget() { return this; } + const TQWidget *getWidget() const { return this; } + + virtual void showEvent(TQShowEvent *); + virtual void hideEvent(TQHideEvent *); + + virtual ConfigPageInfo createConfigurationPage () { return ConfigPageInfo(); } + virtual AboutPageInfo createAboutPage () { return AboutPageInfo(); } + +// IErrorLog + +RECEIVERS: + bool logError (const TQString &); + bool logWarning(const TQString &); + bool logInfo (const TQString &); + bool logDebug (const TQString &); + +// KDialogBase + +protected slots: + + void slotUser1(); + +protected: + + TQTextEdit *m_teDebug, + *m_teInfos, + *m_teWarnings, + *m_teErrors; + + bool init_done; +}; + +#endif |