lemAutoRun  1.0
PErrorHandler.h
Go to the documentation of this file.
1 /********************************************************************************************
2 
3  PErrorHandler.h
4 
5 *********************************************************************************************
6 
7  begin : Andreas Suter, 2006/03/14
8  modfied: :
9  copyright : (C) 2006 by
10  email : andreas.suter@psi.ch
11 
12 ********************************************************************************************/
13 
14 /***************************************************************************
15  * *
16  * This program is free software; you can redistribute it and/or modify *
17  * it under the terms of the GNU General Public License as published by *
18  * the Free Software Foundation; either version 2 of the License, or *
19  * (at your option) any later version. *
20  * *
21  ***************************************************************************/
22 
23 #ifndef _PERRORHANDLER_H_
24 #define _PERRORHANDLER_H_
25 
26 #include <QObject>
27 
28 class PErrorHandler : public QObject
29 {
30  Q_OBJECT
31 
32  public:
33  PErrorHandler();
35 
36  public slots:
37  void HandleErrors(int noOfErrors, int idx, int errorNo, int line, QString errorMsg);
38 
39  signals:
40  void Terminate();
41 
42  private:
44  int fErrCount;
45 
46  void CheckForAlarm(int errorNo, QString errorMsg);
47  void CheckErrorNo(int errorNo);
48 };
49 
50 #endif // _PERRORHANDLER_H_
void Terminate()
emitted in case a too severe error occured.
void CheckForAlarm(int errorNo, QString errorMsg)
void HandleErrors(int noOfErrors, int idx, int errorNo, int line, QString errorMsg)
void CheckErrorNo(int errorNo)