blob: d318279d206450968ea219ff1ae508334308157e (
plain)
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) 2018 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";
}
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;
}
bool MyTestServer::next()
{
emit nextStep();
return true;
}
void MyTestServer::testEnumParamsInSlots(Enum1 enumSlotParam, bool slotParam2, int number)
{
setEnum1(enumSlotParam);
setStarted(slotParam2);
emit testEnumParamsInSignals(enum1(), started(), QString::number(number));
}
|