casa
$Rev:20696$
|
#include <QtDBusApp.h>
Public Member Functions | |
QString | dbusServiceName (const QString &name, const pid_t pid) |
QString | dbusObjectName (const QString &name, const pid_t pid) |
const QString & | dbusServiceName (const QString &name="") |
const QString & | dbusObjectName (const QString &name="") |
virtual QString | dbusName () const =0 |
QtDBusApp () | |
virtual | ~QtDBusApp () |
virtual bool | connectToDBus (const QString &dbus_name="")=0 |
Connects to the DBus server using the name provided (if non-null). | |
Static Public Member Functions | |
static QDBusConnection | connection () |
static QString | serviceOwner (const QString &service) |
static QString | serviceOwner (const std::string &service) |
static bool | serviceIsAvailable (const QString &service) |
static bool | serviceIsAvailable (const std::string &service) |
static QString | generateServiceName (const QString &name, const pid_t pid) |
Protected Member Functions | |
bool | connectToDBus (QObject *object, const QString &dbus_name="") |
Static Private Member Functions | |
static const QString & | serviceBase () |
static const QString & | objectBase () |
Private Attributes | |
QString * | service_name |
QString * | object_name |
Definition at line 37 of file QtDBusApp.h.
virtual casa::QtDBusApp::~QtDBusApp | ( | ) | [virtual] |
static QDBusConnection casa::QtDBusApp::connection | ( | ) | [static] |
virtual bool casa::QtDBusApp::connectToDBus | ( | const QString & | dbus_name = "" | ) | [pure virtual] |
Connects to the DBus server using the name provided (if non-null).
Otherwise, the dbusName() method with the current process ID is used. Returns a boolean which indicates whether the connection succeeded or not.
Implemented in casa::PlotMSDBusApp, casa::QtDBusPlotSvrAdaptor, and casa::QtDBusViewerAdaptor.
bool casa::QtDBusApp::connectToDBus | ( | QObject * | object, |
const QString & | dbus_name = "" |
||
) | [protected] |
virtual QString casa::QtDBusApp::dbusName | ( | ) | const [pure virtual] |
Implemented in casa::PlotMSDBusApp, casa::QtDBusPlotSvrAdaptor, and casa::QtDBusViewerAdaptor.
QString casa::QtDBusApp::dbusObjectName | ( | const QString & | name, |
const pid_t | pid | ||
) |
const QString& casa::QtDBusApp::dbusObjectName | ( | const QString & | name = "" | ) |
QString casa::QtDBusApp::dbusServiceName | ( | const QString & | name, |
const pid_t | pid | ||
) |
const QString& casa::QtDBusApp::dbusServiceName | ( | const QString & | name = "" | ) |
static QString casa::QtDBusApp::generateServiceName | ( | const QString & | name, |
const pid_t | pid | ||
) | [static] |
static const QString& casa::QtDBusApp::objectBase | ( | ) | [static, private] |
static const QString& casa::QtDBusApp::serviceBase | ( | ) | [static, private] |
static bool casa::QtDBusApp::serviceIsAvailable | ( | const QString & | service | ) | [static] |
static bool casa::QtDBusApp::serviceIsAvailable | ( | const std::string & | service | ) | [static] |
static QString casa::QtDBusApp::serviceOwner | ( | const QString & | service | ) | [static] |
static QString casa::QtDBusApp::serviceOwner | ( | const std::string & | service | ) | [static] |
QString* casa::QtDBusApp::object_name [private] |
Definition at line 69 of file QtDBusApp.h.
QString* casa::QtDBusApp::service_name [private] |
Definition at line 68 of file QtDBusApp.h.