diff options
| author | Slávek Banko <slavek.banko@axis.cz> | 2018-10-26 04:07:01 +0200 | 
|---|---|---|
| committer | Slávek Banko <slavek.banko@axis.cz> | 2018-10-27 13:36:02 +0200 | 
| commit | 42673b0179d00e2b5a05fb48438577b923f00b8b (patch) | |
| tree | c42ef21f0799c5e73ae1ccb6ed439d690ec9e59c /src/interface.h | |
| parent | 0e396d6b00651d811959f8d4c7ccad9ff868a1a1 (diff) | |
| download | knetstats-42673b0179d00e2b5a05fb48438577b923f00b8b.tar.gz knetstats-42673b0179d00e2b5a05fb48438577b923f00b8b.zip | |
Fix structure of directories
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 06772a369f2beef80bb291ded30cbe125a24af56)
Diffstat (limited to 'src/interface.h')
| -rw-r--r-- | src/interface.h | 51 | 
1 files changed, 51 insertions, 0 deletions
| diff --git a/src/interface.h b/src/interface.h new file mode 100644 index 0000000..66bffc8 --- /dev/null +++ b/src/interface.h @@ -0,0 +1,51 @@ +// +// C++ Interface: interface +// +// Description: +// +// +// Author: Hugo Parente Lima <hugo.pl@gmail.com>, (C) 2006 +// +// Copyright: See COPYING file that comes with this distribution +// +// + +#ifndef INTERFACE_H +#define INTERFACE_H + +#include <tqstring.h> +#include "knetstatsview.h" +class KNetStats; + +class Interface { +	TQString mName; +	KNetStatsView* mView; +	KNetStats* mParent; + +	Interface(const Interface&); +public: +	/** +	*	Constructs a new interface. +	*	\param parent	parent of the view of this interface. +	*	\param name		name of this interface (not the TQObject name!!) +	*/ +	Interface(KNetStats* parent, const TQString& name); + +	/** +	*	Set this interface visible to the user via a KNetStatsView. +	*/ +	void setVisible(bool visible); +	bool isVisible() { return mView; } + +	void update(); + +	void say(const TQString& message); + +	KNetStatsView::Options options(); +}; + +#include <tqmap.h> +typedef TQMap<TQString, Interface*> InterfaceMap; + + +#endif | 
