OpenWalnut
1.5.0dev
src
qtgui
events
WLogEvent.h
1
//---------------------------------------------------------------------------
2
//
3
// Project: OpenWalnut ( http://www.openwalnut.org )
4
//
5
// Copyright 2009 OpenWalnut Community, BSV@Uni-Leipzig and CNCF@MPI-CBS
6
// For more information see http://www.openwalnut.org/copying
7
//
8
// This file is part of OpenWalnut.
9
//
10
// OpenWalnut is free software: you can redistribute it and/or modify
11
// it under the terms of the GNU Lesser General Public License as published by
12
// the Free Software Foundation, either version 3 of the License, or
13
// (at your option) any later version.
14
//
15
// OpenWalnut is distributed in the hope that it will be useful,
16
// but WITHOUT ANY WARRANTY; without even the implied warranty of
17
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
// GNU Lesser General Public License for more details.
19
//
20
// You should have received a copy of the GNU Lesser General Public License
21
// along with OpenWalnut. If not, see <http://www.gnu.org/licenses/>.
22
//
23
//---------------------------------------------------------------------------
24
25
#ifndef WLOGEVENT_H
26
#define WLOGEVENT_H
27
28
#include <QtCore/QEvent>
29
30
#include "core/common/WLogEntry.h"
31
32
/**
33
* This event is triggered when a new event is to be added to the log.
34
**/
35
class
WLogEvent
:
public
QEvent
36
{
37
public
:
38
/**
39
* constructor
40
*
41
* \param entry WLogEvent which is associated with the event
42
**/
43
explicit
WLogEvent
(
const
WLogEntry
& entry );
44
45
/**
46
* destructor
47
**/
48
virtual
~WLogEvent
();
49
50
/**
51
* To access the WLogEntry of associated with the event.
52
*
53
* \return the log entry
54
**/
55
const
WLogEntry
&
getEntry
()
const
;
56
57
protected
:
58
private
:
59
/**
60
* The associated WLogEntry to the event.
61
**/
62
const
WLogEntry
m_entry
;
63
};
64
65
#endif
// WLOGEVENT_H
66
QEvent
WLogEntry
Represents a simple log message with some attributes.
Definition:
WLogEntry.h:57
WLogEvent
This event is triggered when a new event is to be added to the log.
Definition:
WLogEvent.h:36
WLogEvent::getEntry
const WLogEntry & getEntry() const
To access the WLogEntry of associated with the event.
Definition:
WLogEvent.cpp:39
WLogEvent::m_entry
const WLogEntry m_entry
The associated WLogEntry to the event.
Definition:
WLogEvent.h:62
WLogEvent::WLogEvent
WLogEvent(const WLogEntry &entry)
constructor
Definition:
WLogEvent.cpp:29
WLogEvent::~WLogEvent
virtual ~WLogEvent()
destructor
Definition:
WLogEvent.cpp:35
Generated by
1.9.1