summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Moreira Magalhaes (andrunko) <andre.magalhaes@collabora.co.uk>2012-04-06 13:51:48 -0300
committerAndre Moreira Magalhaes (andrunko) <andre.magalhaes@collabora.co.uk>2012-04-06 13:54:17 -0300
commit542e0bcb0da2ed461f250f03602b516b3942b6ee (patch)
treef68e87004c089d8f7b63a5ffee0eac16bf837813
parentb33642d78d4629b5b44776d12f2069d1afed42b3 (diff)
Move service side specific types from types.h to service-types.h as they are in separate libraries.
The files will be merged in types.h once the libraries are merged.
-rw-r--r--TelepathyQt/CMakeLists.txt4
-rw-r--r--TelepathyQt/ServiceTypes13
-rw-r--r--TelepathyQt/dbus-service.h1
-rw-r--r--TelepathyQt/service-types.h59
-rw-r--r--TelepathyQt/types.h20
5 files changed, 78 insertions, 19 deletions
diff --git a/TelepathyQt/CMakeLists.txt b/TelepathyQt/CMakeLists.txt
index e8e63f73..6dea4fe6 100644
--- a/TelepathyQt/CMakeLists.txt
+++ b/TelepathyQt/CMakeLists.txt
@@ -852,7 +852,9 @@ if(ENABLE_EXPERIMENTAL_SERVICE_SUPPORT)
DBusObject
dbus-object.h
DBusService
- dbus-service.h)
+ dbus-service.h
+ ServiceTypes
+ service-types.h)
# Generated headers which will be installed and exported
set(telepathy_qt_service_gen_HEADERS
diff --git a/TelepathyQt/ServiceTypes b/TelepathyQt/ServiceTypes
new file mode 100644
index 00000000..a4d8b88d
--- /dev/null
+++ b/TelepathyQt/ServiceTypes
@@ -0,0 +1,13 @@
+#ifndef _TelepathyQt_ServiceTypes_HEADER_GUARD_
+#define _TelepathyQt_ServiceTypes_HEADER_GUARD_
+
+#ifndef IN_TP_QT_HEADER
+#define IN_TP_QT_HEADER
+#endif
+
+#include <TelepathyQt/service-types.h>
+
+#undef IN_TP_QT_HEADER
+
+#endif
+// vim:set ft=cpp:
diff --git a/TelepathyQt/dbus-service.h b/TelepathyQt/dbus-service.h
index 81b09162..59f6d2bf 100644
--- a/TelepathyQt/dbus-service.h
+++ b/TelepathyQt/dbus-service.h
@@ -30,6 +30,7 @@
#include <TelepathyQt/DBusError>
#include <TelepathyQt/Global>
#include <TelepathyQt/Object>
+#include <TelepathyQt/ServiceTypes>
#include <QObject>
#include <QVariantMap>
diff --git a/TelepathyQt/service-types.h b/TelepathyQt/service-types.h
new file mode 100644
index 00000000..5c33bd43
--- /dev/null
+++ b/TelepathyQt/service-types.h
@@ -0,0 +1,59 @@
+/**
+ * This file is part of TelepathyQt
+ *
+ * @copyright Copyright (C) 2012 Collabora Ltd. <http://www.collabora.co.uk/>
+ * @copyright Copyright (C) 2012 Nokia Corporation
+ * @license LGPL 2.1
+ *
+ * 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 _TelepathyQt_service_types_h_HEADER_GUARD_
+#define _TelepathyQt_service_types_h_HEADER_GUARD_
+
+#ifndef IN_TP_QT_HEADER
+#error IN_TP_QT_HEADER
+#endif
+
+#include <TelepathyQt/Types>
+
+namespace Tp
+{
+
+class AbstractProtocolInterface;
+class BaseConnection;
+class BaseConnectionManager;
+class BaseProtocol;
+class BaseProtocolAddressingInterface;
+class BaseProtocolAvatarsInterface;
+class BaseProtocolPresenceInterface;
+class DBusService;
+
+#ifndef DOXYGEN_SHOULD_SKIP_THIS
+
+typedef SharedPtr<AbstractProtocolInterface> AbstractProtocolInterfacePtr;
+typedef SharedPtr<BaseConnection> BaseConnectionPtr;
+typedef SharedPtr<BaseConnectionManager> BaseConnectionManagerPtr;
+typedef SharedPtr<BaseProtocol> BaseProtocolPtr;
+typedef SharedPtr<BaseProtocolAddressingInterface> BaseProtocolAddressingInterfacePtr;
+typedef SharedPtr<BaseProtocolAvatarsInterface> BaseProtocolAvatarsInterfacePtr;
+typedef SharedPtr<BaseProtocolPresenceInterface> BaseProtocolPresenceInterfacePtr;
+typedef SharedPtr<DBusService> DBusServicePtr;
+
+#endif /* DOXYGEN_SHOULD_SKIP_THIS */
+
+} // Tp
+
+#endif
diff --git a/TelepathyQt/types.h b/TelepathyQt/types.h
index d0682a80..1edb09bf 100644
--- a/TelepathyQt/types.h
+++ b/TelepathyQt/types.h
@@ -1,8 +1,8 @@
/**
* This file is part of TelepathyQt
*
- * @copyright Copyright (C) 2008 Collabora Ltd. <http://www.collabora.co.uk/>
- * @copyright Copyright (C) 2008 Nokia Corporation
+ * @copyright Copyright (C) 2008-2012 Collabora Ltd. <http://www.collabora.co.uk/>
+ * @copyright Copyright (C) 2008-2012 Nokia Corporation
* @license LGPL 2.1
*
* This library is free software; you can redistribute it and/or
@@ -48,7 +48,6 @@ class AbstractClient;
class AbstractClientApprover;
class AbstractClientHandler;
class AbstractClientObserver;
-class AbstractProtocolInterface;
class Account;
typedef GenericCapabilityFilter<Account> AccountCapabilityFilter;
class AccountFactory;
@@ -60,12 +59,6 @@ class CallChannel;
class CallContent;
class CallStream;
class CaptchaAuthentication;
-class BaseConnection;
-class BaseConnectionManager;
-class BaseProtocol;
-class BaseProtocolAddressingInterface;
-class BaseProtocolAvatarsInterface;
-class BaseProtocolPresenceInterface;
class Channel;
class ChannelDispatchOperation;
class ChannelFactory;
@@ -83,7 +76,6 @@ class ContactManager;
class ContactMessenger;
class ContactSearchChannel;
class DBusProxy;
-class DBusService;
class FileTransferChannel;
class IncomingFileTransferChannel;
class IncomingStreamTubeChannel;
@@ -110,7 +102,6 @@ typedef SharedPtr<AbstractClient> AbstractClientPtr;
typedef SharedPtr<AbstractClientApprover> AbstractClientApproverPtr;
typedef SharedPtr<AbstractClientHandler> AbstractClientHandlerPtr;
typedef SharedPtr<AbstractClientObserver> AbstractClientObserverPtr;
-typedef SharedPtr<AbstractProtocolInterface> AbstractProtocolInterfacePtr;
typedef SharedPtr<Account> AccountPtr;
typedef SharedPtr<AccountCapabilityFilter> AccountCapabilityFilterPtr;
typedef SharedPtr<const AccountCapabilityFilter> AccountCapabilityFilterConstPtr;
@@ -126,12 +117,6 @@ typedef SharedPtr<CallChannel> CallChannelPtr;
typedef SharedPtr<CallContent> CallContentPtr;
typedef SharedPtr<CallStream> CallStreamPtr;
typedef SharedPtr<CaptchaAuthentication> CaptchaAuthenticationPtr;
-typedef SharedPtr<BaseConnection> BaseConnectionPtr;
-typedef SharedPtr<BaseConnectionManager> BaseConnectionManagerPtr;
-typedef SharedPtr<BaseProtocol> BaseProtocolPtr;
-typedef SharedPtr<BaseProtocolAddressingInterface> BaseProtocolAddressingInterfacePtr;
-typedef SharedPtr<BaseProtocolAvatarsInterface> BaseProtocolAvatarsInterfacePtr;
-typedef SharedPtr<BaseProtocolPresenceInterface> BaseProtocolPresenceInterfacePtr;
typedef SharedPtr<Channel> ChannelPtr;
typedef SharedPtr<ChannelDispatchOperation> ChannelDispatchOperationPtr;
typedef SharedPtr<ChannelFactory> ChannelFactoryPtr;
@@ -155,7 +140,6 @@ typedef SharedPtr<ContactManager> ContactManagerPtr;
typedef SharedPtr<ContactMessenger> ContactMessengerPtr;
typedef SharedPtr<ContactSearchChannel> ContactSearchChannelPtr;
typedef SharedPtr<DBusProxy> DBusProxyPtr;
-typedef SharedPtr<DBusService> DBusServicePtr;
typedef SharedPtr<FileTransferChannel> FileTransferChannelPtr;
typedef SharedPtr<IncomingFileTransferChannel> IncomingFileTransferChannelPtr;
typedef SharedPtr<IncomingStreamTubeChannel> IncomingStreamTubeChannelPtr;