Source Code (Use browser search to find items of interest.)

Class Index

kdelibs'QIOWatch (./kdelibs/arts/qtmcop/qiomanager.h:35)

class QIOWatch : public QObject {
	Q_OBJECT
protected:
	QSocketNotifier *qsocketnotify;
	IONotify *_client;
	int fd;
	int _type;

public:
	QIOWatch(int fd, int type, IONotify *notify, QSocketNotifier::Type qtype);

	inline IONotify *client() { return _client; }
	inline int type() { return _type; }
public slots:
	void notify(int socket);
};


kdelibs'QIOWatch::QIOWatch() (./kdelibs/arts/qtmcop/qiomanager.cc:33)

QIOWatch::QIOWatch(int fd, int type, IONotify *notify,
	QSocketNotifier::Type qtype)
{
	this->fd = fd;
	_type = type;
	_client = notify;
	qsocketnotify = new QSocketNotifier(fd,qtype,this);

	connect(qsocketnotify,SIGNAL(activated(int)),this,SLOT(notify(int)));
}


kdelibs'QIOWatch::notify() (./kdelibs/arts/qtmcop/qiomanager.cc:44)

void QIOWatch::notify(int socket)
{
	_client->notifyIO(socket,_type);
}