File indexing completed on 2024-05-12 05:46:53

0001 /*
0002     Copyright (C) 2010 Collabora Ltd. <info@collabora.co.uk>
0003       @author George Kiagiadakis <george.kiagiadakis@collabora.co.uk>
0004 
0005     This library is free software; you can redistribute it and/or modify
0006     it under the terms of the GNU Lesser General Public License as published
0007     by the Free Software Foundation; either version 2.1 of the License, or
0008     (at your option) any later version.
0009 
0010     This program is distributed in the hope that it will be useful,
0011     but WITHOUT ANY WARRANTY; without even the implied warranty of
0012     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0013     GNU General Public License for more details.
0014 
0015     You should have received a copy of the GNU Lesser General Public License
0016     along with this program.  If not, see <http://www.gnu.org/licenses/>.
0017 */
0018 #include "channelapprover.h"
0019 
0020 #include "callchannelapprover.h"
0021 
0022 ChannelApprover *ChannelApprover::create(const Tp::ChannelPtr & channel, QObject *parent)
0023 {
0024     if(channel->channelType() == TP_QT_IFACE_CHANNEL_TYPE_CALL) {
0025         return new CallChannelApprover(Tp::CallChannelPtr::dynamicCast(channel), parent);
0026     }
0027     return nullptr;
0028 }
0029