Planeshift
eeditreporter.h
Go to the documentation of this file.
1 /*
2  * Author: Andrew Robberts
3  *
4  * Copyright (C) 2003 Atomic Blue (info@planeshift.it, http://www.atomicblue.org)
5  *
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License
9  * as published by the Free Software Foundation (version 2 of the License)
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17  *
18  */
19 
20 #ifndef EEDIT_REPORTER_HEADER
21 #define EEDIT_REPORTER_HEADER
22 
23 #include <csutil/ref.h>
24 #include <csutil/refcount.h>
25 #include <csutil/scf_implementation.h>
26 #include <csutil/scf.h>
27 #include <csutil/threadmanager.h>
28 #include <csutil/weakref.h>
29 #include <ivaria/reporter.h>
30 
31 class EEditErrorToolbox;
32 
39 class EEditReporter : public scfImplementation1<EEditReporter, iReporterListener>,
40  public ThreadedCallable<EEditReporter>
41 {
42 public:
43  EEditReporter(iObjectRegistry* obj_reg);
44  virtual ~EEditReporter();
45 
46  THREADED_CALLABLE_DECL4(EEditReporter, Report, csThreadReturn, iReporter*, reporter,
47  int, severity, const char*, msgId, const char*, description, HIGH, false, false);
48 
49  void SetErrorToolbox(EEditErrorToolbox * toolbox);
50 
51  iObjectRegistry* GetObjectRegistry() const { return object_reg; }
52 
53 private:
54 
55  csWeakRef<EEditErrorToolbox> errorToolbox;
56  iObjectRegistry* object_reg;
57 };
58 
61 #endif
A csReporterListener for eedit.
Definition: eeditreporter.h:39
virtual ~EEditReporter()
THREADED_CALLABLE_DECL4(EEditReporter, Report, csThreadReturn, iReporter *, reporter, int, severity, const char *, msgId, const char *, description, HIGH, false, false)
EEditReporter(iObjectRegistry *obj_reg)
iObjectRegistry * GetObjectRegistry() const
Definition: eeditreporter.h:51
void SetErrorToolbox(EEditErrorToolbox *toolbox)
This displays effect errors.