00001 #ifndef _L_GUI_SESSION_WRITER_HH 00002 #define _L_GUI_SESSION_WRITER_HH 00003 00013 #include "QGlobalReader.hh" 00014 00015 class LGuiSessionReader : public QGlobalReader 00016 { 00017 public: 00018 LGuiSessionReader(); 00019 ~LGuiSessionReader(); 00020 00021 const QObject* GetQObject(const std::string& name) const; 00022 00023 std::string GetString(const std::string& name) const; 00024 00025 private: 00026 QError Open(const std::string& filename, const std::string& opt = ""); 00027 QError Close(); 00028 std::ifstream fGuiSessionFile; 00029 std::map<std::string, QObject*>* fQObjectCache; 00030 std::string fFilename; 00031 }; 00032 00033 #endif