Home · All Classes · All Namespaces · Modules · Functions · Files

channel-factory.h

00001 /*
00002  * This file is part of TelepathyQt4Yell
00003  *
00004  * Copyright (C) 2010 Collabora Ltd. <http://www.collabora.co.uk/>
00005  *
00006  * This library is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU Lesser General Public
00008  * License as published by the Free Software Foundation; either
00009  * version 2.1 of the License, or (at your option) any later version.
00010  *
00011  * This library is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  * Lesser General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU Lesser General Public
00017  * License along with this library; if not, write to the Free Software
00018  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00019  */
00020 
00021 #ifndef _TelepathyQt4Yell_channel_factory_h_HEADER_GUARD_
00022 #define _TelepathyQt4Yell_channel_factory_h_HEADER_GUARD_
00023 
00024 #ifndef IN_TELEPATHY_QT4_YELL_HEADER
00025 #error IN_TELEPATHY_QT4_YELL_HEADER
00026 #endif
00027 
00028 #include <TelepathyQt4Yell/Global>
00029 #include <TelepathyQt4Yell/Types>
00030 
00031 #include <TelepathyQt4/ChannelFactory>
00032 
00033 class QDBusConnection;
00034 
00035 namespace Tpy
00036 {
00037 
00038 class TELEPATHY_QT4_YELL_EXPORT ChannelFactory : public Tp::ChannelFactory
00039 {
00040     Q_DISABLE_COPY(ChannelFactory)
00041 
00042 public:
00043     static ChannelFactoryPtr create(const QDBusConnection &bus);
00044 
00045     virtual ~ChannelFactory();
00046 
00047     template<typename Subclass>
00048     void setSubclassForMediaCalls(const QVariantMap &additionalProps = QVariantMap())
00049     {
00050         setConstructorForMediaCalls(SubclassCtor<Subclass>::create(), additionalProps);
00051     }
00052 
00053     void setConstructorForMediaCalls(const ConstructorConstPtr &ctor,
00054             const QVariantMap &additionalProps = QVariantMap());
00055 
00056 protected:
00057     ChannelFactory(const QDBusConnection &bus);
00058 };
00059 
00060 } // Tpy
00061 
00062 #endif


Copyright © 2008-2010 Collabora Ltd. and Nokia Corporation
Telepathy-Qt4-Yell 0.1.6