27 #ifndef QTDBUSXMLAPP_QO_H_
28 #define QTDBUSXMLAPP_QO_H_
33 #include <QDBusAbstractAdaptor>
34 #include <QDBusConnection>
39 class QtDBusXmlAppAdaptor;
105 bool* retValueSet = NULL);
109 bool* retValueSet = NULL);
113 bool* retValueSet = NULL);
117 bool* retValueSet = NULL);
121 bool* retValueSet = NULL);
125 bool* retValueSet = NULL);
129 bool* retValueSet = NULL);
133 bool* retValueSet = NULL);
200 bool isAsync =
false) {
202 methodName, parameters, isAsync); }
205 bool* retValueSet = NULL) {
207 parameters, retValue, retValueSet); }
210 bool* retValueSet = NULL) {
212 parameters, retValue, retValueSet); }
215 bool* retValueSet = NULL) {
217 parameters, retValue, retValueSet); }
220 bool* retValueSet = NULL) {
222 parameters, retValue, retValueSet); }
225 bool* retValueSet = NULL) {
227 parameters, retValue, retValueSet); }
230 bool* retValueSet = NULL) {
232 parameters, retValue, retValueSet); }
235 bool* retValueSet = NULL) {
237 parameters, retValue, retValueSet); }
240 bool* retValueSet = NULL) {
242 parameters, retValue, retValueSet); }
278 #define CASA_DBUS_XML_INTERFACE "edu.nrao.casa.QtDBusXmlApp"
279 Q_CLASSINFO(
"D-Bus Interface",
"edu.nrao.casa.QtDBusXmlApp")
288 QString
xmlSlot(const QString& xml);
QObject * itsObject_
Dummy object.
virtual void dbusXmlReceived(const QtDBusXML &xml)
VIRTUAL METHODS //.
QtDBusXmlApp & itsApp_
Application.
bool dbusXmlCall(const casacore::String &objectName, const casacore::String &methodName, const casacore::Record ¶meters, casacore::Array< int > &retValue, bool *retValueSet=NULL)
bool dbusXmlCall(const casacore::String &objectName, const casacore::String &methodName, const casacore::Record ¶meters, casacore::String &retValue, bool *retValueSet=NULL)
Subclass of QDomDocument that represents an XML scheme that is to be used with CASA's Qt dbus communi...
bool dbusXmlCall(const casacore::String &objectName, const casacore::String &methodName, const casacore::Record ¶meters, casacore::uInt &retValue, bool *retValueSet=NULL)
casacore::String dbusSelfRegisteredName() const
Returns the name that this object is registered with with CASA's DBus server, or an empty casacore::S...
QtDBusXmlApp()
Constructor.
virtual ~QtDBusXmlApp()
Destructor.
void dbusUnregisterSelf()
Unregisters this object with CASA's DBus server, if it is registered.
ABSTRACT CLASSES Abstract class for colors Any implementation of color should be able to provide a hexadecimal form of the if a human readable name(i.e."black").In many places throughout the plotter
QString dbusName_
Name that the application is registered with.
bool dbusRegisterSelf(const casacore::String &name="")
IMPLEMENTED METHODS //.
QtDBusXmlAppAdaptor * dbusAdaptor_
DBus adaptor.
static bool dbusXmlCall(const casacore::String &fromName, const casacore::String &objectName, const casacore::String &methodName, const casacore::Record ¶meters, bool &retValue, bool *retValueSet=NULL)
Like dbusXmlCallNoRet(), except that if the remote method has a return value of the given type...
bool dbusXmlCall(const casacore::String &objectName, const casacore::String &methodName, const casacore::Record ¶meters, casacore::Record &retValue, bool *retValueSet=NULL)
QString xmlSlot(const QString &xml)
Slot for receiving messages.
bool dbusXmlCall(const casacore::String &objectName, const casacore::String &methodName, const casacore::Record ¶meters, int &retValue, bool *retValueSet=NULL)
Abstract parent of classes that want to register themselves with CASA's DBus server.
A hierarchical collection of named fields of various types.
bool dbusXmlCall(const casacore::String &objectName, const casacore::String &methodName, const casacore::Record ¶meters, bool &retValue, bool *retValueSet=NULL)
bool dbusXmlCallNoRet(const casacore::String &objectName, const casacore::String &methodName, const casacore::Record ¶meters, bool isAsync=false)
Calls the static version of the method with this application's name.
bool dbusSelfIsRegistered() const
Returns true if this object is currently registered with CASA's DBus server, false otherwise...
template <class T, class U> class vector;
bool dbusXmlCall(const casacore::String &objectName, const casacore::String &methodName, const casacore::Record ¶meters, double &retValue, bool *retValueSet=NULL)
Subclass of QDBusAbstractAdaptor for use with CASA's QtDBusXmlApp class.
bool dbusRegistered_
Flag for whether the application is currently registered or not.
void dbusSlot(QtDBusXML &xml)
Method for when one of the slots in the adaptor is activated.
String: the storage and methods of handling collections of characters.
static bool dbusXmlCallNoRet(const casacore::String &fromName, const casacore::String &objectName, const casacore::String &methodName, const casacore::Record ¶meters, bool isAsync=false)
Calls the given method on the object with the given name that is registered with CASA's DBus server...
bool dbusXmlCall(const casacore::String &objectName, const casacore::String &methodName, const casacore::Record ¶meters, casacore::Array< bool > &retValue, bool *retValueSet=NULL)
virtual void dbusRunXmlMethod(const casacore::String &methodName, const casacore::Record ¶meters, casacore::Record &retValue, const casacore::String &callerName, bool isAsync)=0
ABSTRACT METHODS //.