TelepathyQt4: types.h Source File

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