1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
|
// Copyright (C) 2017 Ford Motor Company
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#include <qdebug.h>
#include "mytestserver.h"
#include "rep_MyInterface_source.h"
MyTestServer::MyTestServer(QObject *parent)
: MyInterfaceSimpleSource(parent)
{
qDebug() << "Server started";
setInitialValue(18);
}
MyTestServer::~MyTestServer()
{
qDebug() << "Server stopped";
}
bool MyTestServer::start()
{
setStarted(true);
return true;
}
bool MyTestServer::stop()
{
setStarted(false);
return true;
}
bool MyTestServer::quit()
{
emit quitApp();
return true;
}
void MyTestServer::testEnumParamsInSlots(Enum1 enumSlotParam, bool slotParam2, int number)
{
setEnum1(enumSlotParam);
setStarted(slotParam2);
emit testEnumParamsInSignals(enum1(), started(), QString::number(number));
}
void MyTestServer::testExtPODListSlot(const QList<ExtPOD> &l)
{
emit testExtPODListSignal(l);
}
|