18 #define _usource_hpp_ 1 19 #include <ubit/uobject.hpp> 56 virtual void open(
int source);
70 virtual void fireInput();
71 virtual void fireClose();
virtual void open(int source)
starts listening to the source (a file, a socket, a pipe ID).
Definition: usource.cpp:53
virtual void onInput(UCall &callback)
synonym for onAction().
Definition: usource.hpp:50
Definition: uappliImpl.hpp:40
Base class of objects that can be added to the UBIT scene graph (SEE DETAILS!).
Definition: unode.hpp:38
virtual void close()
stops listening to the source.
Definition: usource.cpp:66
virtual void onClose(UCall &callback)
adds a callback that is fired when the source is closed.
Definition: usource.cpp:83
base class of callback objects for firing functions or methods.
Definition: ucall.hpp:144
a USource object fires callbacks when a file or a socket gets data.
Definition: usource.hpp:35
bool isOpened() const
returns true if the USource is opened.
Definition: usource.hpp:65
USource(int source=-1)
creates a new Source listener and start listening to this source if >= 0.
Definition: usource.cpp:30
Definition: uhardfont.hpp:31
int getSource() const
returns the OS ID of the the source.
Definition: usource.hpp:62
virtual void onAction(UCall &callback)
adds a callback that is fired when data is received.
Definition: usource.cpp:77