1 /***************************************************************************
2                                 logevents.h
3                               ----------------
4     begin                : Apr 01 2005
5     copyright            : (C) 2005 The University of Toronto
6     email                : netterfield@astro.utoronto.ca
7  ***************************************************************************/
8 
9 /***************************************************************************
10  *                                                                         *
11  *   This program is free software; you can redistribute it and/or modify  *
12  *   it under the terms of the GNU General Public License as published by  *
13  *   the Free Software Foundation; either version 2 of the License, or     *
14  *   (at your option) any later version.                                   *
15  *                                                                         *
16  ***************************************************************************/
17 
18 #ifndef LOGEVENTS_H
19 #define LOGEVENTS_H
20 
21 #include "debug.h"
22 #include "events.h"
23 //Added by qt3to4:
24 #include <QEvent>
25 
26 namespace Kst {
27 
28 class LogEvent : public QEvent {
29   public:
30     enum LogEventType { Unknown = 0, LogAdded, LogCleared };
31 
LogEvent(LogEventType et)32     LogEvent(LogEventType et) : QEvent(QEvent::Type(EventTypeLog)), _eventType(et) {}
~LogEvent()33     virtual ~LogEvent() {}
34 
35     LogEventType _eventType;
36     Debug::LogMessage _msg;
37 };
38 
39 }
40 
41 #endif
42 
43 // vim: ts=2 sw=2 et
44