#include <string>
+#if HAVE_CONFIG_H
+#include "../config.h"
+#endif
+
#if defined(_WIN32) || defined(__WIN32__)
#include <windows.h>
#elif defined(__APPLE__) && defined(__MACH__)
#include <QMessageBox>
#endif
+#include <Moof/Log.hh>
#include <Moof/Resource.hh>
-#if HAVE_CONFIG_H
-#include "config.h"
-#endif
-
namespace Mf {
CRITICAL = 3
};
+
std::string title;
Type type;
std::string text1;
std::string text2;
+
void run() const
{
+ switch (type)
+ {
+ case WARNING:
+ logWarning("%s", text1.c_str());
+ logWarning("%s", text2.c_str());
+ break;
+ case CRITICAL:
+ logError("%s", text1.c_str());
+ logError("%s", text2.c_str());
+ break;
+ default:
+ logInfo("%s", text1.c_str());
+ logInfo("%s", text2.c_str());
+ break;
+ }
+
#if USE_GTK
int argc = 0;