#include "xapp.h"
#include <QDebug>
#include <iostream>

using namespace Schedule;

XApp::XApp(int argc, char **argv) : QApplication(argc, argv) {}

bool XApp::notify(QObject *receiver, QEvent *event) {
    try {
        return QApplication::notify(receiver, event);
    }  catch (std::exception *x) {
        std::cout << QString("XApplication::").toLocal8Bit().toStdString() << x->what() << std::endl;
        delete x;
    }

    return false;
}

CommandsDispatcher *const XApp::disp_core = new CommandsDispatcher(QDir::home(), true);
