#ifndef QT_COMMAND_BOOL_H
#define QT_COMMAND_BOOL_H

#ifndef COMMAND_H
#include "Command.h"
#endif

#ifndef OWN_H
#include "Own.h"
#endif

#include <qobject.h>

namespace MM
{

class Qt_command_bool : public QObject, public Command_1 <bool>
{
    Q_OBJECT

    Own <Command_1 <bool> >           impl_;

public:
    Qt_command_bool (Command_1 <bool> * command) :
       impl_(Own <Command_1 <bool> > (command)) { }

public slots:
    virtual void execute(bool value) {impl_().execute (value);}
};

}//MM

#endif //QT_COMMAND_BOOL_H
