[Telepathy-commits] [telepathy-qt4/master] Add stub Contact

Olli Salli olli.salli at collabora.co.uk
Wed Jan 28 04:57:07 PST 2009


---
 TelepathyQt4/Client/Contact     |   13 ++++++++
 TelepathyQt4/Client/contact.cpp |   43 +++++++++++++++++++++++++++
 TelepathyQt4/Client/contact.h   |   61 +++++++++++++++++++++++++++++++++++++++
 TelepathyQt4/Makefile.am        |    3 ++
 4 files changed, 120 insertions(+), 0 deletions(-)
 create mode 100644 TelepathyQt4/Client/Contact
 create mode 100644 TelepathyQt4/Client/contact.cpp
 create mode 100644 TelepathyQt4/Client/contact.h

diff --git a/TelepathyQt4/Client/Contact b/TelepathyQt4/Client/Contact
new file mode 100644
index 0000000..e03e9d9
--- /dev/null
+++ b/TelepathyQt4/Client/Contact
@@ -0,0 +1,13 @@
+#ifndef _TelepathyQt4_Client_Contact_HEADER_GUARD_
+#define _TelepathyQt4_Client_Contact_HEADER_GUARD_
+
+#ifndef IN_TELEPATHY_QT4_HEADER
+#define IN_TELEPATHY_QT4_HEADER
+#endif
+
+#include <TelepathyQt4/Client/contact.h>
+
+#undef IN_TELEPATHY_QT4_HEADER
+
+#endif
+// vim:set ft=cpp:
diff --git a/TelepathyQt4/Client/contact.cpp b/TelepathyQt4/Client/contact.cpp
new file mode 100644
index 0000000..a4ca657
--- /dev/null
+++ b/TelepathyQt4/Client/contact.cpp
@@ -0,0 +1,43 @@
+/*
+ * This file is part of TelepathyQt4
+ *
+ * Copyright (C) 2008 Collabora Ltd. <http://www.collabora.co.uk/>
+ * Copyright (C) 2008 Nokia Corporation
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+ */
+
+#include <TelepathyQt4/Client/Contact>
+
+#include <TelepathyQt4/Client/Connection>
+#include <TelepathyQt4/Client/ContactManager>
+#include "TelepathyQt4/debug-internal.h"
+
+namespace Telepathy
+{
+namespace Client
+{
+
+struct Contact::Private
+{
+};
+
+Contact::Contact(Connection *connection)
+    : QObject(connection), mPriv(new Private)
+{
+}
+
+} // Telepathy::Client
+} // Telepathy
diff --git a/TelepathyQt4/Client/contact.h b/TelepathyQt4/Client/contact.h
new file mode 100644
index 0000000..efea57c
--- /dev/null
+++ b/TelepathyQt4/Client/contact.h
@@ -0,0 +1,61 @@
+/*
+ * This file is part of TelepathyQt4
+ *
+ * Copyright (C) 2008 Collabora Ltd. <http://www.collabora.co.uk/>
+ * Copyright (C) 2008 Nokia Corporation
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+ */
+
+#ifndef _TelepathyQt4_cli_contact_h_HEADER_GUARD_
+#define _TelepathyQt4_cli_contact_h_HEADER_GUARD_
+
+#ifndef IN_TELEPATHY_QT4_HEADER
+#error IN_TELEPATHY_QT4_HEADER
+#endif
+
+#include <QObject>
+
+namespace Telepathy
+{
+namespace Client
+{
+class Connection;
+class ContactManager;
+
+class Contact : public QObject
+{
+public:
+        enum Feature {
+            _Padding = 0xFFFFFFFF
+        };
+        Q_DECLARE_FLAGS(Features, Feature);
+
+        ~Contact();
+
+    private:
+        Contact(Connection *parent);
+
+    struct Private;
+    friend struct Private;
+    Private *mPriv;
+};
+
+Q_DECLARE_OPERATORS_FOR_FLAGS(Contact::Features)
+
+} // Telepathy::Client
+} // Telepathy
+
+#endif
diff --git a/TelepathyQt4/Makefile.am b/TelepathyQt4/Makefile.am
index 681b3d5..55d1503 100644
--- a/TelepathyQt4/Makefile.am
+++ b/TelepathyQt4/Makefile.am
@@ -43,6 +43,7 @@ libtelepathy_qt4_la_SOURCES = \
     Client/connection-manager.cpp \
     Client/connection-internal.h \
     Client/connection-manager-internal.h \
+    Client/contact.cpp \
     Client/contact-manager.cpp \
     Client/dbus.cpp \
     Client/dbus-proxy.cpp \
@@ -122,6 +123,7 @@ tpqt4clientinclude_HEADERS = \
     Client/Channel \
     Client/Connection \
     Client/ConnectionManager \
+    Client/Contact \
     Client/ContactManager \
     Client/DBus \
     Client/DBusProxy \
@@ -179,6 +181,7 @@ tpqt4clientinclude_HEADERS = \
     Client/channel.h \
     Client/connection.h \
     Client/connection-manager.h \
+    Client/contact.h \
     Client/contact-manager.h \
     Client/dbus.h \
     Client/dbus-proxy.h \
-- 
1.5.6.5




More information about the telepathy-commits mailing list