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

Class Index

kdelibs'QTimeWatch (./kdelibs/arts/qtmcop/qiomanager.h:52)

class QTimeWatch : public QObject {
	Q_OBJECT
protected:
	QTimer *timer;
	TimeNotify *_client;
public:
	QTimeWatch(int milliseconds, TimeNotify *notify);

	inline TimeNotify *client() { return _client; }
public slots:
	void notify();
};


kdelibs'QTimeWatch::QTimeWatch() (./kdelibs/arts/qtmcop/qiomanager.cc:49)

QTimeWatch::QTimeWatch(int milliseconds, TimeNotify *notify)
{
	timer = new QTimer(this);
	connect( timer, SIGNAL(timeout()), this, SLOT(notify()) );
	timer->start(milliseconds);
	_client = notify;
}


kdelibs'QTimeWatch::notify() (./kdelibs/arts/qtmcop/qiomanager.cc:57)

void QTimeWatch::notify()
{
	_client->notifyTime();
}