aboutsummaryrefslogtreecommitdiff
path: root/examples/example_6_rpcClient/main.cpp
blob: 8e762fd63418d171fdcc0f87e0713c6d5365ff5e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// SPDX-FileCopyrightText: 2010 Ian Reinhart Geiser <geiseri@kde.org>
//
// SPDX-License-Identifier: LGPL-2.1-or-later

#include "QXmppLogger.h"

#include "rpcClient.h"
#include <QtCore/QCoreApplication>

int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);

    QXmppLogger::getLogger()->setLoggingType(QXmppLogger::StdoutLogging);

    rpcClient client;
    client.connectToServer("qxmpp.test2@qxmpp.org", "qxmpp456");
    return a.exec();
}