00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef CONTROLLER_H
00017 #define CONTROLLER_H
00018
00019 #include "skXMLExecutable.h"
00020
00021 #include "Demo_View.h"
00022
00023 class Controller : public skXMLExecutable, public ViewCallback
00024
00025
00026
00027 {
00028 public:
00029 Controller(const skString& fileName);
00030 ~Controller();
00031 void buttonPressed(int id);
00032 bool method(const skString& s,skRValueArray& args,skRValue& ret);
00033 private:
00034 void init();
00035 skString getStringAttribute(DOM_Element elem,const skString& name);
00036 int getIntegerAttribute(DOM_Element elem,const skString& name);
00037 View * m_View;
00038 skString m_FileName;
00039 };
00040
00041 #endif