casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Private Member Functions | Private Attributes | List of all members
casa::QtDBusApp Class Referenceabstract

#include <QtDBusApp.h>

Inheritance diagram for casa::QtDBusApp:
casa::EditlineGuiAdaptor casa::QtDBusPlotSvrAdaptor casa::QtDBusViewerAdaptor casa::QtDBusXmlApp casa::PlotMSDBusApp

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). More...

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

Detailed Description

Definition at line 38 of file QtDBusApp.h.

Constructor & Destructor Documentation

casa::QtDBusApp::QtDBusApp ( )
virtual casa::QtDBusApp::~QtDBusApp ( )

Member Function Documentation

static QDBusConnection casa::QtDBusApp::connection ( )
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::QtDBusViewerAdaptor, casa::QtDBusPlotSvrAdaptor, and casa::EditlineGuiAdaptor.

Referenced by casa::EditlineGuiAdaptor::connectToDBus(), casa::QtDBusPlotSvrAdaptor::connectToDBus(), and casa::QtDBusViewerAdaptor::connectToDBus().

bool casa::QtDBusApp::connectToDBus ( QObject *  object,
const QString &  dbus_name = "" 
virtual QString casa::QtDBusApp::dbusName ( ) const
pure virtual
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 const QString& casa::QtDBusApp::objectBase ( )
static const QString& casa::QtDBusApp::serviceBase ( )
static bool casa::QtDBusApp::serviceIsAvailable ( const QString &  service)
static bool casa::QtDBusApp::serviceIsAvailable ( const std::string &  service)
static QString casa::QtDBusApp::serviceOwner ( const QString &  service)
static QString casa::QtDBusApp::serviceOwner ( const std::string &  service)

Member Data Documentation

QString* casa::QtDBusApp::object_name

Definition at line 70 of file QtDBusApp.h.

QString* casa::QtDBusApp::service_name

Definition at line 69 of file QtDBusApp.h.

The documentation for this class was generated from the following file: