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


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