class QIOManager

QIOManager performs MCOP I/O inside the Qt event loop. More...

Full nameArts::QIOManager
Definition#include <arts/qiomanager.h>
InheritsArts::IOManager [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Protected Methods

Protected Members


Detailed Description

QIOManager performs MCOP I/O inside the Qt event loop. This way, you will be able to receive requests and notifications inside Qt application. The usual way to set it up is:


 KApplication app(argc, argv);    // as usual

 Arts::QIOManager qiomanager;
 Arts::Dispatcher dispatcher(&qiomanager);
 ...
 return app.exec();               // as usual

friend class QIOWatch

QIOWatch

[protected]

friend class QTimeWatch

QTimeWatch

[protected]

std::list<QIOWatch *> fdList

fdList

[protected]

std::list<QTimeWatch *> timeList

timeList

[protected]

void  dispatch (QIOWatch *ioWatch)

dispatch

[protected]

void  dispatch (QTimeWatch *timeWatch)

dispatch

[protected]

 QIOManager ()

QIOManager

 ~QIOManager ()

~QIOManager

void  processOneEvent (bool blocking)

processOneEvent

Reimplemented from IOManager.

void  run ()

run

Reimplemented from IOManager.

void  terminate ()

terminate

Reimplemented from IOManager.

void  watchFD (int fd, int types, IONotify *notify)

watchFD

Reimplemented from IOManager.

void  remove (IONotify *notify, int types)

remove

Reimplemented from IOManager.

void  addTimer (int milliseconds, TimeNotify *notify)

addTimer

Reimplemented from IOManager.

void  removeTimer (TimeNotify *notify)

removeTimer

Reimplemented from IOManager.

void  setBlocking (bool blocking)

setBlocking

This controls what QIOManager will do while waiting for the result of an MCOP request, the possibilities are:

It is much easier to write working and reliable code with blocking enabled, so this is the default. If you disable blocking, you have to deal with the fact that timers, user interaction and similar "unpredictable" things will possibly influence your code in all places where you make a remote MCOP call (which is quite often in MCOP applications).

bool  blocking ()

blocking

Query whether blocking is enabled.


Generated by: stefan on stefan on Sat Jun 2 23:13:28 2001, using kdoc 2.0a53.