diff options
author | Alvaro Soliverez <alvaro.soliverez@collabora.co.uk> | 2011-08-23 12:31:29 -0700 |
---|---|---|
committer | Alvaro Soliverez <alvaro.soliverez@collabora.co.uk> | 2011-08-23 12:31:53 -0700 |
commit | 14a2ea14cd2cd0c379370e27aeef9b6cfbfd02be (patch) | |
tree | 075e80a86b92ec66e50d08d590a2a4ddba138e2a /TelepathyQt4Yell/connection-capabilities.h | |
parent | 25fa17d016015fab670ebcdd039b6383bdacc756 (diff) | |
parent | a0e5c7e3f16a40d05cbfbb1893bd81155fd3bf14 (diff) |
Reviewed-by: Andre Moreira Magalhaes (andrunko) <andre.magalhaes@collabora.co.uk>
Diffstat (limited to 'TelepathyQt4Yell/connection-capabilities.h')
-rw-r--r-- | TelepathyQt4Yell/connection-capabilities.h | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/TelepathyQt4Yell/connection-capabilities.h b/TelepathyQt4Yell/connection-capabilities.h new file mode 100644 index 0000000..568de37 --- /dev/null +++ b/TelepathyQt4Yell/connection-capabilities.h @@ -0,0 +1,61 @@ +/** + * This file is part of TelepathyQt4Yell + * + * @copyright Copyright (C) 2011 Collabora Ltd. <http://www.collabora.co.uk/> + * @license LGPL 2.1 + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#ifndef _TelepathyQt4Yell_connection_capabilities_h_HEADER_GUARD_ +#define _TelepathyQt4Yell_connection_capabilities_h_HEADER_GUARD_ + +#ifndef IN_TELEPATHY_QT4_YELL_HEADER +#error IN_TELEPATHY_QT4_YELL_HEADER +#endif + +#include <TelepathyQt4/ConnectionCapabilities> +#include <TelepathyQt4/Types> +#include <TelepathyQt4Yell/Types> + +namespace Tpy +{ + +class TELEPATHY_QT4_YELL_EXPORT ConnectionCapabilities : public Tp::ConnectionCapabilities +{ +public: + ConnectionCapabilities(); + ConnectionCapabilities(const Tp::ConnectionCapabilities &other); + virtual ~ConnectionCapabilities(); + + bool mediaCalls() const; + bool audioCalls() const; + bool videoCalls() const; + bool videoCallsWithAudio() const; + bool upgradingCalls() const; + bool fileTransfers() const; + +protected: + friend class AccountsModelItem; + + ConnectionCapabilities(const Tp::RequestableChannelClassList &rccs); + ConnectionCapabilities(const Tp::RequestableChannelClassSpecList &rccSpecs); +}; + +} // Tpy + +Q_DECLARE_METATYPE(Tpy::ConnectionCapabilities); + +#endif |