dialog-owner.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef GCU_DIALOG_OWNER_H
00026 #define GCU_DIALOG_OWNER_H
00027
00028 #include <string>
00029 #include <map>
00030
00032 namespace gcu {
00033
00034 class Dialog;
00035
00042 class DialogOwner
00043 {
00044 friend class Dialog;
00045 public:
00049 DialogOwner ();
00053 virtual ~DialogOwner ();
00054
00060 Dialog *GetDialog (std::string name);
00061
00065 void ClearDialogs ();
00066
00067 private:
00068 bool AddDialog (std::string name, Dialog *dialog) ;
00069 void RemoveDialog (std::string name) {Dialogs.erase (name);}
00070
00071 private:
00072 std::map <std::string, Dialog*> Dialogs;
00073 };
00074
00075 }
00076
00077 #endif // GCU_DIALOG_OWNER_H