/**************************************************************************** ** ** Copyright (C) 2008-$THISYEAR$ $TROLLTECH$. All rights reserved. ** ** This file is part of the SCXML project on Trolltech Labs. ** ** $TROLLTECH_GPL_LICENSE$ ** ****************************************************************************/ #ifndef QSCXMLGUI_H #define QSCXMLGUI_H #include "qscxml.h" class QMenu; class QMessageBox; class QScxmlMenuInvoker: public QScxmlInvoker { Q_OBJECT public: QScxmlMenuInvoker(QScxmlEvent* ievent, QScxml* p) : QScxmlInvoker(ievent,p),menu(0) { } static void initInvokerFactory(QScxml*); static bool isTypeSupported (const QString & s) { return s== "q-menu"; } public Q_SLOTS: void activate (); void cancel (); private: QMenu* menu; }; class QScxmlMessageBoxInvoker: public QScxmlInvoker { Q_OBJECT public: QScxmlMessageBoxInvoker(QScxmlEvent* ievent, QScxml* p) : QScxmlInvoker(ievent,p),messageBox(0) { } static void initInvokerFactory(QScxml*); static bool isTypeSupported (const QString & s) { return s== "q-messagebox"; } public Q_SLOTS: void activate (); void cancel (); private Q_SLOTS: void onFinished (int); private: QMessageBox* messageBox; }; #endif // QSSMGUIINVOKERS_P_H