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.
52 lines
942 B
52 lines
942 B
15 years ago
|
//
|
||
|
// 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
|
||
|
|
||
14 years ago
|
#include <tqstring.h>
|
||
15 years ago
|
#include "knetstatsview.h"
|
||
|
class KNetStats;
|
||
|
|
||
|
class Interface {
|
||
14 years ago
|
TQString mName;
|
||
15 years ago
|
KNetStatsView* mView;
|
||
|
KNetStats* mParent;
|
||
|
|
||
|
Interface(const Interface&);
|
||
|
public:
|
||
|
/**
|
||
|
* Constructs a new interface.
|
||
13 years ago
|
* \param parent parent of the view of this interface.
|
||
14 years ago
|
* \param name name of this interface (not the TQObject name!!)
|
||
15 years ago
|
*/
|
||
13 years ago
|
Interface(KNetStats* parent, const TQString& name);
|
||
15 years ago
|
|
||
|
/**
|
||
|
* Set this interface visible to the user via a KNetStatsView.
|
||
|
*/
|
||
|
void setVisible(bool visible);
|
||
|
bool isVisible() { return mView; }
|
||
|
|
||
|
void update();
|
||
|
|
||
14 years ago
|
void say(const TQString& message);
|
||
15 years ago
|
|
||
|
KNetStatsView::Options options();
|
||
|
};
|
||
|
|
||
14 years ago
|
#include <tqmap.h>
|
||
|
typedef TQMap<TQString, Interface*> InterfaceMap;
|
||
15 years ago
|
|
||
|
|
||
|
#endif
|