ui: statusbar

statusbar added, listen to status- , error-  and parsingfinishedmessages
This commit is contained in:
Andreas Stallinger
2014-11-24 16:35:46 +01:00
parent 048fcb28b4
commit af4e3f7676
30 changed files with 392 additions and 6 deletions
@@ -0,0 +1,26 @@
#ifndef MESSAGE_ERROR_H
#define MESSAGE_ERROR_H
#include "utility/messaging/Message.h"
#include "utility/types.h"
class MessageError: public Message<MessageError>
{
public:
MessageError(
const std::string& error
)
: error(error)
{
}
static const std::string getStaticType()
{
return "MessageError";
}
const std::string error;
};
#endif // MESSAGE_ERROR_H
@@ -0,0 +1,26 @@
#ifndef MESSAGE_STATUS_H
#define MESSAGE_STATUS_H
#include "utility/messaging/Message.h"
#include "utility/types.h"
class MessageStatus: public Message<MessageStatus>
{
public:
MessageStatus(
const std::string& status
)
: status(status)
{
}
static const std::string getStaticType()
{
return "MessageStatus";
}
const std::string status;
};
#endif // MESSAGE_STATUS_H
+1
View File
@@ -1,5 +1,6 @@
#include "utility/utilityString.h"
#include <algorithm>
#include <cctype>
#include <string>