Home · All Classes · All Namespaces · Modules · Functions · Files
dbus-error.h
1 
23 #ifndef _TelepathyQt_dbus_error_h_HEADER_GUARD_
24 #define _TelepathyQt_dbus_error_h_HEADER_GUARD_
25 
26 #ifndef IN_TP_QT_HEADER
27 #error IN_TP_QT_HEADER
28 #endif
29 
30 #include <TelepathyQt/Global>
31 
32 namespace Tp
33 {
34 
35 class TP_QT_EXPORT DBusError
36 {
37  Q_DISABLE_COPY(DBusError)
38 
39 public:
40  DBusError();
41  DBusError(const QString &name, const QString &message);
42  ~DBusError();
43 
44  bool isValid() const { return mPriv != 0; }
45 
46  bool operator==(const DBusError &other) const;
47  bool operator!=(const DBusError &other) const;
48 
49  QString name() const;
50  QString message() const;
51  void set(const QString &name, const QString &message);
52 
53 private:
54  struct Private;
55  friend struct Private;
56  Private *mPriv;
57 };
58 
59 } // Tp
60 
61 #endif
bool isValid() const
Definition: dbus-error.h:44
bool operator!=(const AccessControl &v1, const AccessControl &v2)
Definition: build/TelepathyQt/_gen/types.h:153
bool operator==(const SUSocketAddress &v1, const SUSocketAddress &v2)
Definition: types.cpp:50
Small container class, containing a D-Bus error.
Definition: dbus-error.h:35
Definition: abstract-adaptor.cpp:31


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