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/SharedPtr>
00032 #include <TelepathyQt4/MethodInvocationContext>
00033 
00034 #include <QDBusVariant>
00035 
00036 namespace Tp
00037 {
00038 
00039 class AbstractClient;
00040 class Account;
00041 class AccountManager;
00042 class Channel;
00043 class ChannelDispatchOperation;
00044 class ChannelRequest;
00045 class ClientObject;
00046 class ClientRegistrar;
00047 class Connection;
00048 class ConnectionManager;
00049 class Contact;
00050 class FileTransferChannel;
00051 class IncomingFileTransferChannel;
00052 class OutgoingFileTransferChannel;
00053 class RoomListChannel;
00054 class MediaStream;
00055 class StreamedMediaChannel;
00056 class TextChannel;
00057 
00058 typedef SharedPtr<AbstractClient> AbstractClientPtr;
00059 typedef SharedPtr<Account> AccountPtr;
00060 typedef SharedPtr<AccountManager> AccountManagerPtr;
00061 typedef SharedPtr<Channel> ChannelPtr;
00062 typedef SharedPtr<ChannelDispatchOperation> ChannelDispatchOperationPtr;
00063 typedef SharedPtr<ChannelRequest> ChannelRequestPtr;
00064 typedef SharedPtr<ClientObject> ClientObjectPtr;
00065 typedef SharedPtr<ClientRegistrar> ClientRegistrarPtr;
00066 typedef SharedPtr<Connection> ConnectionPtr;
00067 typedef SharedPtr<ConnectionManager> ConnectionManagerPtr;
00068 typedef QSharedPointer<Contact> ContactPtr;
00069 typedef SharedPtr<FileTransferChannel> FileTransferChannelPtr;
00070 typedef SharedPtr<IncomingFileTransferChannel> IncomingFileTransferChannelPtr;
00071 typedef SharedPtr<OutgoingFileTransferChannel> OutgoingFileTransferChannelPtr;
00072 typedef SharedPtr<RoomListChannel> RoomListChannelPtr;
00073 typedef SharedPtr<MediaStream> MediaStreamPtr;
00074 typedef SharedPtr<StreamedMediaChannel> StreamedMediaChannelPtr;
00075 typedef SharedPtr<TextChannel> TextChannelPtr;
00076 
00077 template<typename T1 = MethodInvocationContextTypes::Nil, typename T2 = MethodInvocationContextTypes::Nil,
00078          typename T3 = MethodInvocationContextTypes::Nil, typename T4 = MethodInvocationContextTypes::Nil,
00079          typename T5 = MethodInvocationContextTypes::Nil, typename T6 = MethodInvocationContextTypes::Nil,
00080          typename T7 = MethodInvocationContextTypes::Nil, typename T8 = MethodInvocationContextTypes::Nil>
00081 class MethodInvocationContextPtr : public SharedPtr<MethodInvocationContext<T1, T2, T3, T4, T5, T6, T7, T8> >
00082 {
00083 public:
00084     inline MethodInvocationContextPtr() { }
00085     explicit inline MethodInvocationContextPtr(MethodInvocationContext<T1, T2, T3, T4, T5, T6, T7, T8> *d)
00086         : SharedPtr<MethodInvocationContext<T1, T2, T3, T4, T5, T6, T7, T8> >(d) { }
00087     inline MethodInvocationContextPtr(const SharedPtr<MethodInvocationContext<T1, T2, T3, T4, T5, T6, T7, T8> > &o)
00088         : SharedPtr<MethodInvocationContext<T1, T2, T3, T4, T5, T6, T7, T8> >(o) { }
00089     explicit inline MethodInvocationContextPtr(const WeakPtr<MethodInvocationContext<T1, T2, T3, T4, T5, T6, T7, T8> > &o)
00090         : SharedPtr<MethodInvocationContext<T1, T2, T3, T4, T5, T6, T7, T8> >(o) { }
00091 };
00092 
00093 } // Tp
00094 
00095 #endif


Copyright © 2009 Collabora Ltd. and Nokia Corporation
Telepathy-Qt4 0.2.1