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

contact-messenger/sender.h

    #ifndef _TelepathyQt_examples_contact_messenger_sender_h_HEADER_GUARD_
    #define _TelepathyQt_examples_contact_messenger_sender_h_HEADER_GUARD_

    #include <TelepathyQt/Types>

    #include <QObject>
    #include <QString>

    namespace Tp
    {
    class PendingOperation;
    }

    class Sender : public QObject
    {
        Q_OBJECT

    public:
        Sender(const QString &accountPath, const QString &contactIdentifier, const QString &message);
        ~Sender();

    private Q_SLOTS:
        void onSendMessageFinished(Tp::PendingOperation *op);

    private:
        Tp::ContactMessengerPtr messenger;
    };

    #endif