summaryrefslogtreecommitdiffstats
path: root/tests/auto/restart/server/mytestserver.cpp
blob: 946ed27053b4ecdbfad7bcd40e0a954fce107d7a (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
// Copyright (C) 2019 Ford Motor Company
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

#include <qdebug.h>

#include "mytestserver.h"
#include "rep_subclass_source.h"

MyTestServer::MyTestServer(QObject *parent)
    : ParentClassSimpleSource(parent)
{
    qDebug() << "Server started";
}

MyTestServer::~MyTestServer()
{
    qDebug() << "Server stopped";
}

bool MyTestServer::start()
{
    setStarted(true);
    return true;
}

bool MyTestServer::quit()
{
    emit quitApp();
    return true;
}