finalyze moving
This commit is contained in:
38
src/VisualizerCalls/SendMessage.h
Normal file
38
src/VisualizerCalls/SendMessage.h
Normal file
@@ -0,0 +1,38 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
class MessageManager
|
||||
{
|
||||
private:
|
||||
static std::vector<std::wstring> cachedMessages;
|
||||
static int WinHandler;
|
||||
static int Started;
|
||||
static std::wstring firstLvlMessage;
|
||||
static std::wstring secondLvlMessage;
|
||||
|
||||
static void sendMessage(const std::wstring &toSend);
|
||||
public:
|
||||
static void clearCache() { cachedMessages.clear(); }
|
||||
static void setWinHandler(const int winH);
|
||||
static void sendFirstLvl(const std::wstring &str)
|
||||
{
|
||||
firstLvlMessage = str;
|
||||
sendMessage(firstLvlMessage);
|
||||
}
|
||||
|
||||
static void sendSecondLvl(const std::wstring &str)
|
||||
{
|
||||
secondLvlMessage = str;
|
||||
sendMessage(firstLvlMessage + L"\n" + secondLvlMessage);
|
||||
}
|
||||
|
||||
static void sendProgress(const std::wstring& str);
|
||||
static int init();
|
||||
};
|
||||
|
||||
void sendMessage_1lvl(const std::wstring& toSend);
|
||||
void sendMessage_2lvl(const std::wstring& toSend);
|
||||
void sendMessage_progress(const std::wstring& toSend);
|
||||
unsigned int GetPid();
|
||||
Reference in New Issue
Block a user