#include "sender.h"
#include "_gen/sender.moc.hpp"
#include <TelepathyQt/Account>
#include <TelepathyQt/Debug>
#include <TelepathyQt/Constants>
#include <TelepathyQt/ContactMessenger>
#include <TelepathyQt/PendingSendMessage>
#include <TelepathyQt/Types>
#include <QCoreApplication>
Sender::Sender(const QString &accountPath,
const QString &contactIdentifier, const QString &message)
{
accountPath);
connect(messenger->sendMessage(message),
}
Sender::~Sender()
{
}
{
QCoreApplication::exit(1);
return;
}
QCoreApplication::exit(0);
}
int main(int argc, char **argv)
{
QCoreApplication app(argc, argv);
if (argc < 4) {
qDebug() << "Usage: contact-messenger account_path contact_id message";
return -1;
}
Sender *sender = new Sender(QLatin1String(argv[1]), QLatin1String(argv[2]),
QLatin1String(argv[3]));
int ret = app.exec();
delete sender;
return ret;
}