00001 /* 00002 * MyObserver.h 00003 * 00004 * Created on: Feb 24, 2011 00005 * Author: lipari 00006 */ 00007 00008 #ifndef MYOBSERVER_H_ 00009 #define MYOBSERVER_H_ 00010 00011 #include "Button.h" 00012 #include "DialogBox.h" 00013 #include <string> 00014 00015 class MyObserver { 00016 std::string name; 00017 public: 00018 MyObserver(const std::string &n); 00019 virtual ~MyObserver(); 00020 void update(DialogBox &d); 00021 void update(Button &b); 00022 }; 00023 00024 #endif /* MYOBSERVER_H_ */