Home · All Classes · All Namespaces · Modules · Functions · Files
dbus-error.h
00001 
00023 #ifndef _TelepathyQt_dbus_error_h_HEADER_GUARD_
00024 #define _TelepathyQt_dbus_error_h_HEADER_GUARD_
00025 
00026 #ifndef IN_TP_QT_HEADER
00027 #error IN_TP_QT_HEADER
00028 #endif
00029 
00030 #include <TelepathyQt/Global>
00031 
00032 namespace Tp
00033 {
00034 
00035 class TP_QT_EXPORT DBusError
00036 {
00037     Q_DISABLE_COPY(DBusError)
00038 
00039 public:
00040     DBusError();
00041     DBusError(const QString &name, const QString &message);
00042     ~DBusError();
00043 
00044     bool isValid() const { return mPriv != 0; }
00045 
00046     bool operator==(const DBusError &other) const;
00047     bool operator!=(const DBusError &other) const;
00048 
00049     QString name() const;
00050     QString message() const;
00051     void set(const QString &name, const QString &message);
00052 
00053 private:
00054     struct Private;
00055     friend struct Private;
00056     Private *mPriv;
00057 };
00058 
00059 } // Tp
00060 
00061 #endif


Copyright © 2008-2011 Collabora Ltd. and Nokia Corporation
Telepathy-Qt 0.9.3