00001
00025 #ifndef PLAYER_QT_DOMINO_H
00026 #define PLAYER_QT_DOMINO_H 1
00027
00028 #include <dmn/dmn.h>
00029 #include <dmn/core.h>
00030 #include <dmn/player.h>
00031
00032 #include <qvbox.h>
00033
00034 namespace dmn
00035 {
00039 class QtDomino: public QVBox
00040 {
00041 Q_OBJECT public:
00051 QtDomino(Player* player, Core* core, Domino domino,
00052 QWidget* parent = NULL, const char* name = NULL);
00053
00059 Domino domino() const;
00060
00061 private:
00062 Domino domino_;
00063
00064 private slots:
00068 void half1Pushed();
00069
00073 void half2Pushed();
00074
00075 signals:
00079 void halfPushed(Domino, HalfDomino);
00080 };
00081 };
00082
00083 #endif // PLAYER_QT_DOMINO_H