Merge branch 'master' into context_driven_buttons, review
[situare] / src / ui / ossoabookdialog.h
diff --git a/src/ui/ossoabookdialog.h b/src/ui/ossoabookdialog.h
new file mode 100644 (file)
index 0000000..c3bf793
--- /dev/null
@@ -0,0 +1,44 @@
+#ifndef OSSOABOOKDIALOG_H
+#define OSSOABOOKDIALOG_H
+
+#include <QObject>
+#include <QStringList>
+
+#undef signals // Collides with GTK symbols
+#include <libosso-abook/osso-abook.h>
+
+/**
+* @brief Shows contact dialog.
+*/
+class OssoABookDialog : public QObject
+{
+    Q_OBJECT
+public:
+    /**
+    * @brief Constructor
+    *
+    * @param parent QObject
+    */
+    OssoABookDialog(QObject *parent = 0);
+
+/*******************************************************************************
+* MEMBER FUNCTIONS AND SLOTS
+******************************************************************************/
+    /**
+    * @brief Shows contact dialog.
+    *
+    * @param id contact ID
+    */
+    static void showContactDialog(const QString &id);
+
+private:
+    /**
+    * @brief Returns address book contact.
+    *
+    * @param id contact ID
+    * @return OssoABookContact
+    */
+    static OssoABookContact *lookup(const QString& id);
+};
+
+#endif // OSSOABOOKDIALOG_H