Dev.... GUI, Log dispatcher, etc...
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
#ifndef GENERALMESSAGESLOGDISPATCHER_H
|
||||
#define GENERALMESSAGESLOGDISPATCHER_H
|
||||
|
||||
#include <QString>
|
||||
#include "defines.h"
|
||||
#include "GeneralStatusPage.h"
|
||||
|
||||
|
||||
class CGeneralMessagesLogDispatcher
|
||||
{
|
||||
public:
|
||||
|
||||
//CGeneralMessagesLogDispatcher is a singleton class
|
||||
static CGeneralMessagesLogDispatcher* instance(){return &mSingleton;}
|
||||
static CGeneralMessagesLogDispatcher mSingleton;
|
||||
|
||||
CGeneralMessagesLogDispatcher();
|
||||
virtual ~CGeneralMessagesLogDispatcher();
|
||||
|
||||
int AddLogMessage(QString LogLine, bool AddToGUILogPanel = true);
|
||||
CGeneralStatusPage *mGeneralStatusPageHandle;
|
||||
int BindGuiPageHandle(CGeneralStatusPage *Handle);
|
||||
|
||||
private:
|
||||
QString mGeneralMsgGUILog;
|
||||
unsigned int mNbLinesInGUILog; //Keep the count of lines displayed in the GUI so we don't EVER buffer overrun
|
||||
|
||||
};
|
||||
|
||||
#endif // GENERALMESSAGESLOGDISPATCHER_H
|
||||
Reference in New Issue
Block a user