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 namespace Tp
00035 {
00036 
00037 class AbstractClient;
00038 class Account;
00039 class AccountManager;
00040 class Channel;
00041 class ChannelRequest;
00042 class ClientObject;
00043 class ClientRegistrar;
00044 class Connection;
00045 class ConnectionManager;
00046 class FileTransfer;
00047 class RoomList;
00048 class MediaStream;
00049 class StreamedMediaChannel;
00050 class TextChannel;
00051 
00052 typedef SharedPtr<AbstractClient> AbstractClientPtr;
00053 typedef SharedPtr<Account> AccountPtr;
00054 typedef SharedPtr<AccountManager> AccountManagerPtr;
00055 typedef SharedPtr<Channel> ChannelPtr;
00056 typedef SharedPtr<ChannelRequest> ChannelRequestPtr;
00057 typedef SharedPtr<ClientObject> ClientObjectPtr;
00058 typedef SharedPtr<ClientRegistrar> ClientRegistrarPtr;
00059 typedef SharedPtr<Connection> ConnectionPtr;
00060 typedef SharedPtr<ConnectionManager> ConnectionManagerPtr;
00061 typedef SharedPtr<FileTransfer> FileTransferPtr;
00062 typedef SharedPtr<RoomList> RoomListPtr;
00063 typedef SharedPtr<MediaStream> MediaStreamPtr;
00064 typedef SharedPtr<StreamedMediaChannel> StreamedMediaChannelPtr;
00065 typedef SharedPtr<TextChannel> TextChannelPtr;
00066 
00067 template<typename T1 = MethodInvocationContextTypes::Nil, typename T2 = MethodInvocationContextTypes::Nil,
00068          typename T3 = MethodInvocationContextTypes::Nil, typename T4 = MethodInvocationContextTypes::Nil,
00069          typename T5 = MethodInvocationContextTypes::Nil, typename T6 = MethodInvocationContextTypes::Nil,
00070          typename T7 = MethodInvocationContextTypes::Nil, typename T8 = MethodInvocationContextTypes::Nil>
00071 class MethodInvocationContextPtr : public SharedPtr<MethodInvocationContext<T1, T2, T3, T4, T5, T6, T7, T8> >
00072 {
00073 public:
00074     inline MethodInvocationContextPtr() { }
00075     explicit inline MethodInvocationContextPtr(MethodInvocationContext<T1, T2, T3, T4, T5, T6, T7, T8> *d)
00076         : SharedPtr<MethodInvocationContext<T1, T2, T3, T4, T5, T6, T7, T8> >(d) { }
00077     inline MethodInvocationContextPtr(const SharedPtr<MethodInvocationContext<T1, T2, T3, T4, T5, T6, T7, T8> > &o)
00078         : SharedPtr<MethodInvocationContext<T1, T2, T3, T4, T5, T6, T7, T8> >(o) { }
00079     explicit inline MethodInvocationContextPtr(const WeakPtr<MethodInvocationContext<T1, T2, T3, T4, T5, T6, T7, T8> > &o)
00080         : SharedPtr<MethodInvocationContext<T1, T2, T3, T4, T5, T6, T7, T8> >(o) { }
00081 };
00082 
00083 } // Tp
00084 
00085 #endif


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