QDBusObjectPath Class Reference

#include <qdbusextratypes.h>

Inheritance diagram for QDBusObjectPath:

Inheritance graph
[legend]
Collaboration diagram for QDBusObjectPath:

Collaboration graph
[legend]
List of all members.

Detailed Description

The QDBusObjectPath class enables the programmer to identify the OBJECT_PATH type provided by the D-BUS typesystem.

QtDBus

Since:
4.2
See also:
{The QtDBus type system}

Definition at line 35 of file qdbusextratypes.h.

Public Member Functions

 QDBusObjectPath ()
 QDBusObjectPath (const char *path)
 QDBusObjectPath (const QLatin1String &path)
 QDBusObjectPath (const QString &path)
void setPath (const QString &path)
QString path () const

Private Member Functions

void check ()


Constructor & Destructor Documentation

QDBusObjectPath::QDBusObjectPath (  )  [inline]

Constructs a new object path.

Definition at line 38 of file qdbusextratypes.h.

00038 { }

QDBusObjectPath::QDBusObjectPath ( const char *  path  )  [inline, explicit]

Constructs a new object path from the given path.

See also:
setPath()

Definition at line 54 of file qdbusextratypes.h.

References check().

00055     : QString(QString::fromLatin1(objectPath))
00056 { check(); }

Here is the call graph for this function:

QDBusObjectPath::QDBusObjectPath ( const QLatin1String path  )  [inline, explicit]

Constructs a new object path from the given path.

Definition at line 58 of file qdbusextratypes.h.

References check().

00059     : QString(objectPath)
00060 { check(); }

Here is the call graph for this function:

QDBusObjectPath::QDBusObjectPath ( const QString path  )  [inline, explicit]

Constructs a new object path from the given path.

Definition at line 62 of file qdbusextratypes.h.

References check().

00063     : QString(objectPath)
00064 { check(); }

Here is the call graph for this function:


Member Function Documentation

void QDBusObjectPath::setPath ( const QString path  )  [inline]

Assigns the value of the given path to this object path.

See also:
path()

Definition at line 66 of file qdbusextratypes.h.

References QString::operator=().

00067 { QString::operator=(objectPath); }

Here is the call graph for this function:

QString QDBusObjectPath::path (  )  const [inline]

Returns this object path.

See also:
setPath()

Definition at line 46 of file qdbusextratypes.h.

Referenced by QDBusMarshaller::append().

00047     { return *this; }

void QDBusObjectPath::check (  )  [private]

Definition at line 27 of file qdbusextratypes.cpp.

References QString::clear(), and QDBusUtil::isValidObjectPath().

Referenced by QDBusObjectPath().

00028 {
00029     if (!QDBusUtil::isValidObjectPath(*this))
00030         clear();
00031 }

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Generated on Thu Mar 15 17:14:00 2007 for Qt 4.2 User's Guide by  doxygen 1.5.1