OpenStructure
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
build-2.7-doc
stage
include
ost
gui
messages
log_reader.hh
Go to the documentation of this file.
1
//------------------------------------------------------------------------------
2
// This file is part of the OpenStructure project <www.openstructure.org>
3
//
4
// Copyright (C) 2008-2020 by the OpenStructure authors
5
//
6
// This library is free software; you can redistribute it and/or modify it under
7
// the terms of the GNU Lesser General Public License as published by the Free
8
// Software Foundation; either version 3.0 of the License, or (at your option)
9
// any later version.
10
// This library is distributed in the hope that it will be useful, but WITHOUT
11
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12
// FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
13
// details.
14
//
15
// You should have received a copy of the GNU Lesser General Public License
16
// along with this library; if not, write to the Free Software Foundation, Inc.,
17
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
//------------------------------------------------------------------------------
19
#ifndef OST_GUI_MESSAGES_LOG_READER_HH
20
#define OST_GUI_MESSAGES_LOG_READER_HH
21
22
23
#include <
ost/log_sink.hh
>
24
25
#include <
ost/gui/module_config.hh
>
26
27
#include <QObject>
28
#include <QMap>
29
#include <QMessageBox>
30
/*
31
Author: Stefan Scheuber
32
*/
33
34
namespace
ost {
namespace
gui {
35
36
class
DLLEXPORT_OST_GUI
LogReader
:
public
QObject,
public
LogSink
37
{
38
Q_OBJECT;
39
public
:
40
LogReader
(QObject* parent=NULL);
41
~
LogReader
();
42
43
void
LogMessage(
const
String
& message,
int
severity);
44
45
private
:
46
QMap<int, QString> log_cache_;
47
QMessageBox::Icon GetIconForSeverity(
int
severity);
48
};
49
50
}}
// ns
51
52
#endif
module_config.hh
String
std::string String
Definition:
base.hh:54
DLLEXPORT_OST_GUI
#define DLLEXPORT_OST_GUI
Definition:
module_config.hh:33
log_sink.hh
ost::LogSink
Definition:
log_sink.hh:35
ost::gui::LogReader
Definition:
log_reader.hh:36
Generated by
1.8.5