00001 #ifndef _RQT_MRTA_APPLICATION_CONFIG_APPLICATION_H_ 00002 #define _RQT_MRTA_APPLICATION_CONFIG_APPLICATION_H_ 00003 00004 #include "utilities/abstract_config.h" 00005 #include "rqt_mrta/config/application/robots.h" 00006 00007 namespace rqt_mrta 00008 { 00009 namespace config 00010 { 00011 namespace application 00012 { 00013 class Application : public utilities::AbstractConfig 00014 { 00015 Q_OBJECT 00016 public: 00017 Application(QObject* parent = NULL); 00018 virtual ~Application(); 00019 QString getName() const; 00020 QString getArchitecturePackage() const; 00021 Robots* getRobots() const; 00022 void setName(const QString& name); 00023 void setArchitecturePackage(const QString& package); 00024 void save(QSettings& settings) const; 00025 void load(QSettings& settings); 00026 void reset(); 00027 void write(QDataStream& stream) const; 00028 void read(QDataStream& stream); 00029 Application& operator=(const Application& config); 00030 00031 signals: 00032 void nameChanged(const QString& name); 00033 void architecturePackageChanged(const QString& package); 00034 00035 private: 00036 QString name_; 00037 QString architecture_; 00038 Robots* robots_; 00039 }; 00040 } 00041 } 00042 } 00043 00044 #endif // _RQT_MRTA_APPLICATION_CONFIG_APPLICATION_H_