File indexing completed on 2023-10-01 08:41:43

0001 /*
0002     Copyright (C) 2012 George Kiagiadakis <kiagiadakis.george@gmail.com>
0003 
0004     This library is free software; you can redistribute it and/or modify
0005     it under the terms of the GNU Lesser General Public License as published
0006     by the Free Software Foundation; either version 2.1 of the License, or
0007     (at your option) any later version.
0008 
0009     This program is distributed in the hope that it will be useful,
0010     but WITHOUT ANY WARRANTY; without even the implied warranty of
0011     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0012     GNU General Public License for more details.
0013 
0014     You should have received a copy of the GNU Lesser General Public License
0015     along with this program.  If not, see <http://www.gnu.org/licenses/>.
0016 */
0017 
0018 #ifndef CAPABILITIES_HACK_PRIVATE_H
0019 #define CAPABILITIES_HACK_PRIVATE_H
0020 
0021 #include <KTp/ktpcommoninternals_export.h>
0022 #include <TelepathyQt/CapabilitiesBase>
0023 
0024 /*
0025  * This is a hack to workaround a gabble bug.
0026  * https://bugs.freedesktop.org/show_bug.cgi?id=51978
0027  */
0028 
0029 namespace CapabilitiesHackPrivate {
0030 
0031 /* Equivalent to caps.audioCalls() */
0032 KTPCOMMONINTERNALS_NO_EXPORT bool audioCalls(const Tp::CapabilitiesBase &caps, const QString &cmName);
0033 
0034 /* Equivalent to caps.videoCalls() */
0035 KTPCOMMONINTERNALS_NO_EXPORT bool videoCalls(const Tp::CapabilitiesBase &caps, const QString &cmName);
0036 
0037 }
0038 
0039 #endif