| 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 TELEPATHY_QT4_EXPORT void registerTypes();
    00040
    00041 class AbstractClient;
    00042 class Account;
    00043 class AccountPropertyFilter;
    00044 class AccountFactory;
    00045 class AccountSet;
    00046 class AccountManager;
    00047 class Channel;
    00048 class ChannelDispatchOperation;
    00049 class ChannelFactory;
    00050 class ChannelRequest;
    00051 class ClientObject;
    00052 class ClientRegistrar;
    00053 class Connection;
    00054 class ConnectionFactory;
    00055 class ConnectionManager;
    00056 class Contact;
    00057 class ContactFactory;
    00058 class ContactSearchChannel;
    00059 class FileTransferChannel;
    00060 template <typename T> class Filter;
    00061 template <typename T> class GenericCapabilityFilter;
    00062 template <typename T> class GenericPropertyFilter;
    00063 class IncomingFileTransferChannel;
    00064 class OutgoingFileTransferChannel;
    00065 class Profile;
    00066 class ProfileManager;
    00067 class RoomListChannel;
    00068 class MediaContent;
    00069 class MediaStream;
    00070 class StreamedMediaChannel;
    00071 class TextChannel;
    00072
    00073 typedef Filter<Account> AccountFilter;
    00074 typedef GenericCapabilityFilter<Account> AccountCapabilityFilter;
    00075
    00076 typedef SharedPtr<AbstractClient> AbstractClientPtr;
    00077 typedef SharedPtr<Account> AccountPtr;
    00078 typedef SharedPtr<AccountFactory> AccountFactoryPtr;
    00079 typedef SharedPtr<const AccountFactory> AccountFactoryConstPtr;
    00080 typedef SharedPtr<AccountCapabilityFilter> AccountCapabilityFilterPtr;
    00081 typedef SharedPtr<const AccountCapabilityFilter> AccountCapabilityFilterConstPtr;
    00082 typedef SharedPtr<AccountPropertyFilter> AccountPropertyFilterPtr;
    00083 typedef SharedPtr<const AccountPropertyFilter> AccountPropertyFilterConstPtr;
    00084 typedef SharedPtr<AccountFilter> AccountFilterPtr;
    00085 typedef SharedPtr<const AccountFilter> AccountFilterConstPtr;
    00086 typedef SharedPtr<AccountSet> AccountSetPtr;
    00087 typedef SharedPtr<AccountManager> AccountManagerPtr;
    00088 typedef SharedPtr<Channel> ChannelPtr;
    00089 typedef SharedPtr<ChannelDispatchOperation> ChannelDispatchOperationPtr;
    00090 typedef SharedPtr<ChannelFactory> ChannelFactoryPtr;
    00091 typedef SharedPtr<const ChannelFactory> ChannelFactoryConstPtr;
    00092 typedef SharedPtr<ChannelRequest> ChannelRequestPtr;
    00093 typedef SharedPtr<ClientObject> ClientObjectPtr;
    00094 typedef SharedPtr<ClientRegistrar> ClientRegistrarPtr;
    00095 typedef SharedPtr<Connection> ConnectionPtr;
    00096 typedef SharedPtr<ConnectionFactory> ConnectionFactoryPtr;
    00097 typedef SharedPtr<const ConnectionFactory> ConnectionFactoryConstPtr;
    00098 typedef SharedPtr<ConnectionManager> ConnectionManagerPtr;
    00099 typedef QSharedPointer<Contact> ContactPtr;
    00100 typedef SharedPtr<ContactFactory> ContactFactoryPtr;
    00101 typedef SharedPtr<const ContactFactory> ContactFactoryConstPtr;
    00102 typedef SharedPtr<ContactSearchChannel> ContactSearchChannelPtr;
    00103 typedef SharedPtr<FileTransferChannel> FileTransferChannelPtr;
    00104 typedef SharedPtr<IncomingFileTransferChannel> IncomingFileTransferChannelPtr;
    00105 typedef SharedPtr<OutgoingFileTransferChannel> OutgoingFileTransferChannelPtr;
    00106 typedef SharedPtr<Profile> ProfilePtr;
    00107 typedef SharedPtr<ProfileManager> ProfileManagerPtr;
    00108 typedef SharedPtr<RoomListChannel> RoomListChannelPtr;
    00109 typedef SharedPtr<MediaContent> MediaContentPtr;
    00110 typedef SharedPtr<MediaStream> MediaStreamPtr;
    00111 typedef SharedPtr<StreamedMediaChannel> StreamedMediaChannelPtr;
    00112 typedef SharedPtr<TextChannel> TextChannelPtr;
    00113
    00114 template<typename T1 = MethodInvocationContextTypes::Nil, typename T2 = MethodInvocationContextTypes::Nil,
    00115          typename T3 = MethodInvocationContextTypes::Nil, typename T4 = MethodInvocationContextTypes::Nil,
    00116          typename T5 = MethodInvocationContextTypes::Nil, typename T6 = MethodInvocationContextTypes::Nil,
    00117          typename T7 = MethodInvocationContextTypes::Nil, typename T8 = MethodInvocationContextTypes::Nil>
    00118 class MethodInvocationContextPtr : public SharedPtr<MethodInvocationContext<T1, T2, T3, T4, T5, T6, T7, T8> >
    00119 {
    00120 public:
    00121     inline MethodInvocationContextPtr() { }
    00122     explicit inline MethodInvocationContextPtr(MethodInvocationContext<T1, T2, T3, T4, T5, T6, T7, T8> *d)
    00123         : SharedPtr<MethodInvocationContext<T1, T2, T3, T4, T5, T6, T7, T8> >(d) { }
    00124     inline MethodInvocationContextPtr(const SharedPtr<MethodInvocationContext<T1, T2, T3, T4, T5, T6, T7, T8> > &o)
    00125         : SharedPtr<MethodInvocationContext<T1, T2, T3, T4, T5, T6, T7, T8> >(o) { }
    00126     explicit inline MethodInvocationContextPtr(const WeakPtr<MethodInvocationContext<T1, T2, T3, T4, T5, T6, T7, T8> > &o)
    00127         : SharedPtr<MethodInvocationContext<T1, T2, T3, T4, T5, T6, T7, T8> >(o) { }
    00128 };
    00129
    00130 class AvatarData
    00131 {
    00132 public:
    00133     inline AvatarData(const QString &fileName, const QString &mimeType):
    00134         fileName(fileName), mimeType(mimeType) {}
    00135     inline AvatarData() {}
    00136     QString fileName;
    00137     QString mimeType;
    00138 };
    00139
    00140 } // Tp
    00141
    00142 #endif