File: mytestserver.cpp

package info (click to toggle)
qt6-remoteobjects 6.9.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,812 kB
  • sloc: cpp: 20,883; sh: 29; makefile: 26
file content (42 lines) | stat: -rw-r--r-- 752 bytes parent folder | download | duplicates (2)
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
// Copyright (C) 2019 Ford Motor Company
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

#include <qdebug.h>

#include "mytestserver.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;
}

ParentClassSource::MyEnum MyTestServer::enumSlot(QPoint p, MyEnum myEnum)
{
    Q_UNUSED(p)
    Q_UNUSED(myEnum)
    return ParentClassSource::foobar;
}

Qt::DateFormat MyTestServer::dateSlot(Qt::DateFormat date)
{
    Q_UNUSED(date)
    return Qt::RFC2822Date;
}