Classes | |
class | Aseba::AsebaNetworkInterface |
DBus interface for aseba network. More... | |
class | Aseba::EventFilterInterface |
DBus interface for an event filter. More... | |
class | Aseba::Hub |
Functions | |
Aseba::AsebaNetworkInterface::AsebaNetworkInterface (Hub *hub, bool systemBus) | |
virtual void | Dashel::Hub::connectionClosed (Stream *, bool) |
virtual void | Dashel::Hub::connectionCreated (Stream *) |
QDBusConnection | Aseba::AsebaNetworkInterface::DBusConnectionBus () const |
void | Aseba::EventFilterInterface::emitEvent (const quint16 id, const QString &name, const Values &data) |
Values | Aseba::fromAsebaVector (const std::vector< sint16 > &values) |
Aseba::Hub::Hub (unsigned port, bool verbose, bool dump, bool forward, bool rawTime, bool systemBus) | |
virtual void | Dashel::Hub::incomingData (Stream *) |
virtual void | Aseba::AsebaNetworkInterface::nodeDescriptionReceived (unsigned nodeId) |
Virtual function that is called when a node description has been fully received. | |
void | Dashel::Hub::run () |
std::vector< sint16 > | Aseba::toAsebaVector (const Values &values) |
Public Slots | |
QDBusObjectPath | Aseba::AsebaNetworkInterface::CreateEventFilter () |
Q_SCRIPTABLE Q_NOREPLY void | Aseba::EventFilterInterface::Free () |
qint16 | Aseba::AsebaNetworkInterface::GetNodeId (const QString &node, const QDBusMessage &message) const |
QStringList | Aseba::AsebaNetworkInterface::GetNodesList () const |
Values | Aseba::AsebaNetworkInterface::GetVariable (const QString &node, const QString &variable, const QDBusMessage &message) |
QStringList | Aseba::AsebaNetworkInterface::GetVariablesList (const QString &node) const |
Q_SCRIPTABLE Q_NOREPLY void | Aseba::EventFilterInterface::IgnoreEvent (const quint16 event) |
Q_SCRIPTABLE Q_NOREPLY void | Aseba::EventFilterInterface::IgnoreEventName (const QString &name, const QDBusMessage &message) |
Q_SCRIPTABLE Q_NOREPLY void | Aseba::EventFilterInterface::ListenEvent (const quint16 event) |
Q_SCRIPTABLE Q_NOREPLY void | Aseba::EventFilterInterface::ListenEventName (const QString &name, const QDBusMessage &message) |
Q_NOREPLY void | Aseba::AsebaNetworkInterface::LoadScripts (const QString &fileName, const QDBusMessage &message) |
Q_NOREPLY void | Aseba::AsebaNetworkInterface::SendEvent (const quint16 event, const Values &data) |
Q_NOREPLY void | Aseba::AsebaNetworkInterface::SendEventName (const QString &name, const Values &data, const QDBusMessage &message) |
Q_NOREPLY void | Aseba::AsebaNetworkInterface::SetVariable (const QString &node, const QString &variable, const Values &data, const QDBusMessage &message) const |
Protected Slots | |
void | Aseba::Hub::firstConnectionAvailable () |
If no description has been previously requested, requests one in 200 ms. | |
void | Aseba::Hub::requestDescription () |
Timer has elapsed, request a description. | |
Private Slots | |
void | Aseba::AsebaNetworkInterface::filterDestroyed (EventFilterInterface *filter) |
void | Aseba::AsebaNetworkInterface::ignoreEvent (EventFilterInterface *filter, quint16 event) |
void | Aseba::AsebaNetworkInterface::listenEvent (EventFilterInterface *filter, quint16 event) |
void | Aseba::AsebaNetworkInterface::processMessage (Message *message, Dashel::Stream *sourceStream) |
void | Aseba::AsebaNetworkInterface::sendEventOnDBus (const quint16 event, const Values &data) |
Aseba::AsebaNetworkInterface::AsebaNetworkInterface | ( | Hub * | hub, |
bool | systemBus | ||
) |
Definition at line 109 of file medulla.cpp.
QDBusConnection Aseba::AsebaNetworkInterface::DBusConnectionBus | ( | ) | const [inline, protected] |
Definition at line 488 of file medulla.cpp.
void Aseba::EventFilterInterface::emitEvent | ( | const quint16 | id, |
const QString & | name, | ||
const Values & | data | ||
) |
Definition at line 70 of file medulla.cpp.
Values Aseba::fromAsebaVector | ( | const std::vector< sint16 > & | values | ) |
Definition at line 62 of file medulla.cpp.
Aseba::Hub::Hub | ( | unsigned | port, |
bool | verbose, | ||
bool | dump, | ||
bool | forward, | ||
bool | rawTime, | ||
bool | systemBus | ||
) |
Creates the hub, listen to TCP on port, and creates a DBus interace.
port | port on which to listen for incoming connections |
verbose | should we print a notification on each message |
dump | should we dump content of each message |
forward | should we only forward messages instead of transmit them back to the sender |
rawTime | should the time be printed as integer |
Definition at line 498 of file medulla.cpp.
void Aseba::AsebaNetworkInterface::nodeDescriptionReceived | ( | unsigned | nodeId | ) | [protected, virtual] |
Virtual function that is called when a node description has been fully received.
Reimplemented from Aseba::DescriptionsManager.
Definition at line 483 of file medulla.cpp.
std::vector<sint16> Aseba::toAsebaVector | ( | const Values & | values | ) |
Definition at line 53 of file medulla.cpp.
QDBusObjectPath Aseba::AsebaNetworkInterface::CreateEventFilter | ( | ) | [slot] |
Definition at line 476 of file medulla.cpp.
void Aseba::EventFilterInterface::Free | ( | ) | [slot] |
Definition at line 103 of file medulla.cpp.
qint16 Aseba::AsebaNetworkInterface::GetNodeId | ( | const QString & | node, |
const QDBusMessage & | message | ||
) | const [slot] |
Definition at line 314 of file medulla.cpp.
QStringList Aseba::AsebaNetworkInterface::GetNodesList | ( | ) | const [slot] |
Definition at line 304 of file medulla.cpp.
Values Aseba::AsebaNetworkInterface::GetVariable | ( | const QString & | node, |
const QString & | variable, | ||
const QDBusMessage & | message | ||
) | [slot] |
Definition at line 400 of file medulla.cpp.
QStringList Aseba::AsebaNetworkInterface::GetVariablesList | ( | const QString & | node | ) | const [slot] |
Definition at line 325 of file medulla.cpp.
void Aseba::EventFilterInterface::IgnoreEvent | ( | const quint16 | event | ) | [slot] |
Definition at line 89 of file medulla.cpp.
void Aseba::EventFilterInterface::IgnoreEventName | ( | const QString & | name, |
const QDBusMessage & | message | ||
) | [slot] |
Definition at line 94 of file medulla.cpp.
void Aseba::EventFilterInterface::ListenEvent | ( | const quint16 | event | ) | [slot] |
Definition at line 75 of file medulla.cpp.
void Aseba::EventFilterInterface::ListenEventName | ( | const QString & | name, |
const QDBusMessage & | message | ||
) | [slot] |
Definition at line 80 of file medulla.cpp.
void Aseba::AsebaNetworkInterface::LoadScripts | ( | const QString & | fileName, |
const QDBusMessage & | message | ||
) | [slot] |
Definition at line 191 of file medulla.cpp.
void Aseba::AsebaNetworkInterface::SendEvent | ( | const quint16 | event, |
const Values & | data | ||
) | [slot] |
Definition at line 457 of file medulla.cpp.
void Aseba::AsebaNetworkInterface::SendEventName | ( | const QString & | name, |
const Values & | data, | ||
const QDBusMessage & | message | ||
) | [slot] |
Definition at line 467 of file medulla.cpp.
void Aseba::AsebaNetworkInterface::SetVariable | ( | const QString & | node, |
const QString & | variable, | ||
const Values & | data, | ||
const QDBusMessage & | message | ||
) | const [slot] |
Definition at line 359 of file medulla.cpp.
void Aseba::Hub::firstConnectionAvailable | ( | ) | [protected, slot] |
If no description has been previously requested, requests one in 200 ms.
Definition at line 557 of file medulla.cpp.
void Aseba::Hub::requestDescription | ( | ) | [protected, slot] |
Timer has elapsed, request a description.
Definition at line 562 of file medulla.cpp.
void Aseba::AsebaNetworkInterface::filterDestroyed | ( | EventFilterInterface * | filter | ) | [private, slot] |
Definition at line 184 of file medulla.cpp.
void Aseba::AsebaNetworkInterface::ignoreEvent | ( | EventFilterInterface * | filter, |
quint16 | event | ||
) | [private, slot] |
Definition at line 179 of file medulla.cpp.
void Aseba::AsebaNetworkInterface::listenEvent | ( | EventFilterInterface * | filter, |
quint16 | event | ||
) | [private, slot] |
Definition at line 174 of file medulla.cpp.
void Aseba::AsebaNetworkInterface::processMessage | ( | Message * | message, |
Dashel::Stream * | sourceStream | ||
) | [private, slot] |
Definition at line 122 of file medulla.cpp.
void Aseba::AsebaNetworkInterface::sendEventOnDBus | ( | const quint16 | event, |
const Values & | data | ||
) | [private, slot] |
Definition at line 162 of file medulla.cpp.