summaryrefslogtreecommitdiff
path: root/src/hmi/hmi-launcher/dltif.cpp
blob: f9620b9b0d8fc5eee76517e967d99879945bc976 (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
50
51
52
53
54
55
56
57
58
59
60
61
62
/**
* @licence app begin@
* SPDX-License-Identifier: MPL-2.0
*
* \copyright Copyright (C) 2017, PSA GROUP
*
* \file dltif.cpp
*
* \brief This file is part of the FSA HMI.
*
* \author Philippe COLLIOT <philippe.colliot@mpsa.com>
*
* \version 1.0
*
* This Source Code Form is subject to the terms of the
* Mozilla Public License (MPL), v. 2.0.
* If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/.
*
* For further information see http://www.genivi.org/.
*
* List of changes:
*
* <date>, <name>, <description of change>
*
* @licence end@
*/

#include "log.h"
#include "dltif.h"

DLT_DECLARE_CONTEXT(gCtx);

DLTIf::DLTIf(QQuickItem * parent)
:  QQuickItem(parent)
{
    DLT_REGISTER_APP("FSAC","FUEL STOP ADVISOR CLIENT");
    DLT_REGISTER_CONTEXT(gCtx,"FSAC","Global Context");
}

DLTIf::~DLTIf()
{

}

QString
DLTIf::name() const
{
    return m_name;
}

void
DLTIf::setName(const QString & name)
{
    m_name = name;
    LOG_INFO(gCtx,"Menu: %s",name.toStdString().c_str());
}

void DLTIf::log_info_msg(QString message)
{
    LOG_INFO(gCtx,"%s",message.toStdString().c_str());
}