aboutsummaryrefslogtreecommitdiff
path: root/examples/example_5_rpcInterface/remoteinterface.cpp
blob: 7ddb40c73face382642e0fcf2c6e75d081712d30 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// SPDX-FileCopyrightText: 2009 Ian Geiser <ian.geiser@gmail.com>
//
// SPDX-License-Identifier: LGPL-2.1-or-later

#include "remoteinterface.h"

RemoteInterface::RemoteInterface(QObject *parent) : QXmppInvokable(parent)
{
}

bool RemoteInterface::isAuthorized(const QString &jid) const
{
    Q_UNUSED(jid);
    return true;
}

QString RemoteInterface::echoString(const QString &message)
{
    return "Echo: " + message;
}