Home · All Classes · All Namespaces · Modules · Functions · Files

types.h

00001 /*
00002  * This file is part of TelepathyQt4
00003  *
00004  * Copyright (C) 2008 Collabora Ltd. <http://www.collabora.co.uk/>
00005  * Copyright (C) 2008 Nokia Corporation
00006  *
00007  * This library is free software; you can redistribute it and/or
00008  * modify it under the terms of the GNU Lesser General Public
00009  * License as published by the Free Software Foundation; either
00010  * version 2.1 of the License, or (at your option) any later version.
00011  *
00012  * This library is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015  * Lesser General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU Lesser General Public
00018  * License along with this library; if not, write to the Free Software
00019  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00020  */
00021 
00022 #ifndef _TelepathyQt4_types_h_HEADER_GUARD_
00023 #define _TelepathyQt4_types_h_HEADER_GUARD_
00024 
00025 #ifndef IN_TELEPATHY_QT4_HEADER
00026 #error IN_TELEPATHY_QT4_HEADER
00027 #endif
00028 
00029 #include <TelepathyQt4/_gen/types.h>
00030 
00031 #include <TelepathyQt4/Global>
00032 #include <TelepathyQt4/SharedPtr>
00033 #include <TelepathyQt4/MethodInvocationContext>
00034 
00035 #include <QDBusVariant>
00036 
00037 namespace Tp
00038 {
00039 
00040 TELEPATHY_QT4_EXPORT void registerTypes();
00041 
00042 template <typename T> class Filter;
00043 template <typename T> class GenericCapabilityFilter;
00044 template <typename T> class GenericPropertyFilter;
00045 
00046 class AbstractClient;
00047 class Account;
00048 typedef GenericCapabilityFilter<Account> AccountCapabilityFilter;
00049 class AccountFactory;
00050 typedef Filter<Account> AccountFilter;
00051 class AccountManager;
00052 class AccountPropertyFilter;
00053 class AccountSet;
00054 class Channel;
00055 class ChannelDispatchOperation;
00056 class ChannelFactory;
00057 class ChannelRequest;
00058 class ClientObject;
00059 class ClientRegistrar;
00060 class Connection;
00061 class ConnectionFactory;
00062 class ConnectionLowlevel;
00063 class ConnectionManager;
00064 class ConnectionManagerLowlevel;
00065 class Contact;
00066 class ContactFactory;
00067 class ContactManager;
00068 class ContactSearchChannel;
00069 class DBusProxy;
00070 class FileTransferChannel;
00071 class IncomingFileTransferChannel;
00072 class OutgoingFileTransferChannel;
00073 class Profile;
00074 class ProfileManager;
00075 class RoomListChannel;
00076 class StreamedMediaChannel;
00077 class StreamedMediaStream;
00078 class TextChannel;
00079 
00080 typedef SharedPtr<AbstractClient> AbstractClientPtr;
00081 typedef SharedPtr<Account> AccountPtr;
00082 typedef SharedPtr<AccountCapabilityFilter> AccountCapabilityFilterPtr;
00083 typedef SharedPtr<const AccountCapabilityFilter> AccountCapabilityFilterConstPtr;
00084 typedef SharedPtr<AccountFactory> AccountFactoryPtr;
00085 typedef SharedPtr<const AccountFactory> AccountFactoryConstPtr;
00086 typedef SharedPtr<AccountFilter> AccountFilterPtr;
00087 typedef SharedPtr<const AccountFilter> AccountFilterConstPtr;
00088 typedef SharedPtr<AccountManager> AccountManagerPtr;
00089 typedef SharedPtr<AccountPropertyFilter> AccountPropertyFilterPtr;
00090 typedef SharedPtr<const AccountPropertyFilter> AccountPropertyFilterConstPtr;
00091 typedef SharedPtr<AccountSet> AccountSetPtr;
00092 typedef SharedPtr<Channel> ChannelPtr;
00093 typedef SharedPtr<ChannelDispatchOperation> ChannelDispatchOperationPtr;
00094 typedef SharedPtr<ChannelFactory> ChannelFactoryPtr;
00095 typedef SharedPtr<const ChannelFactory> ChannelFactoryConstPtr;
00096 typedef SharedPtr<ChannelRequest> ChannelRequestPtr;
00097 typedef SharedPtr<ClientObject> ClientObjectPtr;
00098 typedef SharedPtr<ClientRegistrar> ClientRegistrarPtr;
00099 typedef SharedPtr<Connection> ConnectionPtr;
00100 typedef SharedPtr<ConnectionFactory> ConnectionFactoryPtr;
00101 typedef SharedPtr<const ConnectionFactory> ConnectionFactoryConstPtr;
00102 typedef SharedPtr<ConnectionLowlevel> ConnectionLowlevelPtr;
00103 typedef SharedPtr<const ConnectionLowlevel> ConnectionLowlevelConstPtr;
00104 typedef SharedPtr<ConnectionManager> ConnectionManagerPtr;
00105 typedef SharedPtr<ConnectionManagerLowlevel> ConnectionManagerLowlevelPtr;
00106 typedef SharedPtr<const ConnectionManagerLowlevel> ConnectionManagerLowlevelConstPtr;
00107 typedef SharedPtr<Contact> ContactPtr;
00108 typedef QSet<ContactPtr> Contacts;
00109 typedef SharedPtr<ContactFactory> ContactFactoryPtr;
00110 typedef SharedPtr<const ContactFactory> ContactFactoryConstPtr;
00111 typedef SharedPtr<ContactManager> ContactManagerPtr;
00112 typedef SharedPtr<ContactSearchChannel> ContactSearchChannelPtr;
00113 typedef SharedPtr<DBusProxy> DBusProxyPtr;
00114 typedef SharedPtr<FileTransferChannel> FileTransferChannelPtr;
00115 typedef SharedPtr<IncomingFileTransferChannel> IncomingFileTransferChannelPtr;
00116 typedef SharedPtr<OutgoingFileTransferChannel> OutgoingFileTransferChannelPtr;
00117 typedef SharedPtr<Profile> ProfilePtr;
00118 typedef SharedPtr<ProfileManager> ProfileManagerPtr;
00119 typedef SharedPtr<RoomListChannel> RoomListChannelPtr;
00120 typedef SharedPtr<StreamedMediaChannel> StreamedMediaChannelPtr;
00121 typedef SharedPtr<StreamedMediaStream> StreamedMediaStreamPtr;
00122 typedef SharedPtr<TextChannel> TextChannelPtr;
00123 
00124 template<typename T1 = MethodInvocationContextTypes::Nil, typename T2 = MethodInvocationContextTypes::Nil,
00125          typename T3 = MethodInvocationContextTypes::Nil, typename T4 = MethodInvocationContextTypes::Nil,
00126          typename T5 = MethodInvocationContextTypes::Nil, typename T6 = MethodInvocationContextTypes::Nil,
00127          typename T7 = MethodInvocationContextTypes::Nil, typename T8 = MethodInvocationContextTypes::Nil>
00128 class MethodInvocationContextPtr : public SharedPtr<MethodInvocationContext<T1, T2, T3, T4, T5, T6, T7, T8> >
00129 {
00130 public:
00131     inline MethodInvocationContextPtr() { }
00132     explicit inline MethodInvocationContextPtr(MethodInvocationContext<T1, T2, T3, T4, T5, T6, T7, T8> *d)
00133         : SharedPtr<MethodInvocationContext<T1, T2, T3, T4, T5, T6, T7, T8> >(d) { }
00134     inline MethodInvocationContextPtr(const SharedPtr<MethodInvocationContext<T1, T2, T3, T4, T5, T6, T7, T8> > &o)
00135         : SharedPtr<MethodInvocationContext<T1, T2, T3, T4, T5, T6, T7, T8> >(o) { }
00136 };
00137 
00138 } // Tp
00139 
00140 #endif


Copyright © 2008-2010 Collabora Ltd. and Nokia Corporation
Telepathy-Qt4 0.5.0