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

roster/main.cpp

    #include <TelepathyQt/Debug>
    #include <TelepathyQt/Types>

    #include <QApplication>
    #include <QDebug>
    #include <QtGui>

    #include "roster-window.h"

    int main(int argc, char **argv)
    {
        QApplication app(argc, argv);

        if (argc < 2) {
            qDebug() << "usage:" << argv[0] << "<account name, as in mc-tool list>";
            return 1;
        }

        Tp::registerTypes();
        Tp::enableDebug(true);
        Tp::enableWarnings(true);

        QString accountPath = QLatin1String(argv[1]);
        RosterWindow w(accountPath);
        w.show();

        return app.exec();
    }