Dev.... GUI, Log dispatcher, etc...

This commit is contained in:
2023-01-07 00:02:16 -05:00
parent 0f43eae694
commit c888a889f2
15 changed files with 796 additions and 27 deletions
@@ -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