File indexing completed on 2024-05-12 05:39:26
0001 #ifndef MAINCONTROLER_H 0002 #define MAINCONTROLER_H 0003 0004 #include <QObject> 0005 #include <QQmlApplicationEngine> 0006 0007 #include "commandmodel.h" 0008 #include "diceparser.h" 0009 0010 class MainControler : public QObject 0011 { 0012 Q_OBJECT 0013 public: 0014 explicit MainControler(QObject* parent= 0); 0015 0016 void initEngine(QQmlApplicationEngine*); 0017 signals: 0018 0019 public slots: 0020 void setConnections(QObject* root, QUrl url); 0021 void rollDice(QString cmd); 0022 0023 private: 0024 // CommandModel* m_model; 0025 DiceParser* m_diceParser; 0026 QQmlApplicationEngine* m_engine; 0027 }; 0028 0029 #endif // MAINCONTROLER_H