casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Private Member Functions | Private Attributes
casa::QtDBusApp Class Reference

#include <QtDBusApp.h>

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

List of all members.

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

Detailed Description

Definition at line 37 of file QtDBusApp.h.


Constructor & Destructor Documentation

virtual casa::QtDBusApp::~QtDBusApp ( ) [virtual]

Member Function Documentation

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]
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]

Member Data Documentation

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.


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