summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sc/source/ui/collab/contacts.cxx2
-rw-r--r--tubes/inc/tubes/conference.hxx5
-rw-r--r--tubes/inc/tubes/contact-list.hxx6
-rw-r--r--tubes/inc/tubes/manager.hxx5
-rw-r--r--tubes/source/conference.cxx1
-rw-r--r--tubes/source/manager.cxx2
6 files changed, 17 insertions, 4 deletions
diff --git a/sc/source/ui/collab/contacts.cxx b/sc/source/ui/collab/contacts.cxx
index 02240d9becfa..84f73e160530 100644
--- a/sc/source/ui/collab/contacts.cxx
+++ b/sc/source/ui/collab/contacts.cxx
@@ -39,6 +39,8 @@
#include <vcl/dialog.hxx>
#include <svx/simptabl.hxx>
+#include <telepathy-glib/telepathy-glib.h>
+
#define CONTACTS_DLG
#ifdef CONTACTS_DLG
diff --git a/tubes/inc/tubes/conference.hxx b/tubes/inc/tubes/conference.hxx
index a66d65b024db..fc495e5247d9 100644
--- a/tubes/inc/tubes/conference.hxx
+++ b/tubes/inc/tubes/conference.hxx
@@ -32,11 +32,14 @@
#include <sal/config.h>
#include "tubes/tubesdllapi.h"
#include <rtl/ustring.hxx>
-#include <telepathy-glib/telepathy-glib.h>
#include <tubes/warnings_guard_boost_signals2.hpp>
class TeleManager;
class TeleConferenceImpl;
+typedef struct _TpAccount TpAccount;
+typedef struct _TpContact TpContact;
+typedef struct _TpDBusTubeChannel TpDBusTubeChannel;
+typedef struct _GDBusConnection GDBusConnection;
/** Conference setup by TeleManager */
class TeleConference
diff --git a/tubes/inc/tubes/contact-list.hxx b/tubes/inc/tubes/contact-list.hxx
index a17b1103d96f..9c48ab7896ce 100644
--- a/tubes/inc/tubes/contact-list.hxx
+++ b/tubes/inc/tubes/contact-list.hxx
@@ -32,10 +32,12 @@
#include <utility>
#include <vector>
-#include <telepathy-glib/telepathy-glib.h>
-
#include "tubes/tubesdllapi.h"
+typedef struct _TpAccount TpAccount;
+typedef struct _TpContact TpContact;
+typedef struct _TpAccountManager TpAccountManager;
+
typedef ::std::pair< TpAccount *, TpContact * > AccountContactPair;
typedef ::std::vector< AccountContactPair > AccountContactPairV;
diff --git a/tubes/inc/tubes/manager.hxx b/tubes/inc/tubes/manager.hxx
index 8e39e65d1289..a112b6118a94 100644
--- a/tubes/inc/tubes/manager.hxx
+++ b/tubes/inc/tubes/manager.hxx
@@ -37,7 +37,6 @@
#include <salhelper/thread.hxx>
#include <rtl/ref.hxx>
#include <tools/link.hxx>
-#include <telepathy-glib/telepathy-glib.h>
// For testing purposes, we might need more in future.
#define LIBO_TUBES_DBUS_INTERFACE "org.libreoffice.calc"
@@ -46,6 +45,10 @@
namespace osl { class Mutex; }
class TeleManagerImpl;
+typedef struct _TpAccount TpAccount;
+typedef struct _TpContact TpContact;
+typedef struct _GMainLoop GMainLoop;
+typedef struct _GMainContext GMainContext;
/** Interface to Telepathy DBus Tubes.
diff --git a/tubes/source/conference.cxx b/tubes/source/conference.cxx
index a2fafd23f7a1..d28ffc34aabf 100644
--- a/tubes/source/conference.cxx
+++ b/tubes/source/conference.cxx
@@ -31,6 +31,7 @@
#include <tubes/constants.h>
#include <tubes/file-transfer-helper.h>
+#include <telepathy-glib/telepathy-glib.h>
#include <queue>
#if defined SAL_LOG_INFO
diff --git a/tubes/source/manager.cxx b/tubes/source/manager.cxx
index 4abed6b2f4bb..d16422dacb8c 100644
--- a/tubes/source/manager.cxx
+++ b/tubes/source/manager.cxx
@@ -39,6 +39,8 @@
#include <osl/mutex.hxx>
#include <rtl/strbuf.hxx>
#include <rtl/uuid.h>
+
+#include <telepathy-glib/telepathy-glib.h>
#include <map>
namespace css = ::com::sun::star;