2014-11-30 01:52:43 +00:00
|
|
|
/*
|
|
|
|
Copyright (C) 2014 Alexandr Akulich <akulichalexander@gmail.com>
|
|
|
|
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
|
|
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
|
|
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
|
|
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
|
|
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
|
|
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
|
|
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef CONNECTCM_TEXTCHANNEL_H
|
|
|
|
#define CONNECTCM_TEXTCHANNEL_H
|
|
|
|
|
|
|
|
#include <TelepathyQt/BaseChannel>
|
|
|
|
|
|
|
|
class ConnectTextChannel;
|
|
|
|
|
|
|
|
typedef Tp::SharedPtr<ConnectTextChannel> ConnectTextChannelPtr;
|
|
|
|
|
2016-06-16 09:16:35 +01:00
|
|
|
class ConnectTextChannel : public Tp::BaseChannelTextType
|
2014-11-30 01:52:43 +00:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
static ConnectTextChannelPtr create(QObject *connection, Tp::BaseChannel *baseChannel, uint targetHandle, const QString &identifier);
|
2016-06-20 08:05:02 +01:00
|
|
|
~ConnectTextChannel() override;
|
2014-11-30 01:52:43 +00:00
|
|
|
|
|
|
|
QString sendMessageCallback(const Tp::MessagePartList &messageParts, uint flags, Tp::DBusError *error);
|
|
|
|
|
|
|
|
private:
|
|
|
|
ConnectTextChannel(QObject *connection, Tp::BaseChannel *baseChannel, uint targetHandle, const QString &identifier);
|
|
|
|
|
|
|
|
QObject *m_connection;
|
|
|
|
|
|
|
|
QString m_identifier;
|
|
|
|
|
|
|
|
Tp::BaseChannelTextTypePtr m_channelTextType;
|
|
|
|
Tp::BaseChannelMessagesInterfacePtr m_messagesIface;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CONNECTCM_TEXTCHANNEL_H
|