diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-02-17 01:24:36 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-02-17 01:24:36 +0000 |
commit | a8c9924456e5335c964e4e55b2dde1963c88726f (patch) | |
tree | f5bf107ba079ae460536da778ce2da5e6c68aa69 /knights/proto_base.h | |
download | knights-a8c9924456e5335c964e4e55b2dde1963c88726f.tar.gz knights-a8c9924456e5335c964e4e55b2dde1963c88726f.zip |
Added KDE3 version of Knights
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/knights@1091568 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'knights/proto_base.h')
-rw-r--r-- | knights/proto_base.h | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/knights/proto_base.h b/knights/proto_base.h new file mode 100644 index 0000000..43113c6 --- /dev/null +++ b/knights/proto_base.h @@ -0,0 +1,54 @@ +/*************************************************************************** + proto_base.h - description + ------------------- + begin : Sat Oct 26 2002 + copyright : (C) 2003 by Troy Corbin Jr. + email : tcorbin@users.sf.net + ***************************************************************************/ + +/*************************************************************************** + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + ***************************************************************************/ + +#ifndef PROTO_BASE_H +#define PROTO_BASE_H + +#include <qobject.h> +#include <qstring.h> +#include <qvaluelist.h> +#include "command.h" +#include "definitions.h" + +/** + *@author Troy Corbin Jr. + */ +typedef QValueList<Command> CommandList; + +class proto_base : public QObject +{ + Q_OBJECT + public: + proto_base( const int ID ); + virtual ~proto_base(); + int getID( void ); + void setID( const int ID ); + + public slots: + virtual void parse( const Command& ) = 0; + virtual void parse( const QString& ) = 0; + + signals: + void output( const QString& ); + void output( const Command& ); + + protected: + int myID; + ChessMove myMove; +}; + +#endif |