Confdump Agent
1.4.0
|
00001 /* 00002 * Confdump-Agent - Dump static and runtime system configuration 00003 * Copyright (C) 2009-2012 Straton IT, SAS 00004 * 00005 * This program is free software: you can redistribute it and/or modify 00006 * it under the terms of the GNU General Public License version 3 as 00007 * published by the Free Software Foundation. 00008 * 00009 * This program is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU General Public License 00015 * along with this program. If not, see <http://www.gnu.org/licenses/>. 00016 */ 00017 00018 #ifndef INCLUDED_SYSTEM_LINUX_ENVIRONMENT_VARIABLE_HPP 00019 #define INCLUDED_SYSTEM_LINUX_ENVIRONMENT_VARIABLE_HPP 00020 00021 #include <vector> 00022 00023 #include <QString> 00024 00025 #include "boost/shared_ptr.hpp" 00026 00027 #include "Confdump/System/ManagedElement.hpp" 00028 00029 namespace Confdump 00030 { 00031 00032 namespace System 00033 { 00034 00035 class LinuxDumper; 00036 00037 namespace Linux 00038 { 00039 00042 class EnvironmentVariable : public System::ManagedElement 00043 { 00044 Q_OBJECT 00045 Q_PROPERTY( QString name READ name ) 00046 Q_PROPERTY( QString value READ value ) 00047 00048 EnvironmentVariable(); 00049 00050 public: 00051 EnvironmentVariable( boost::shared_ptr<const LinuxDumper> driver, QString name ); 00052 EnvironmentVariable( QString name, QString value ); 00053 virtual ~EnvironmentVariable(); 00054 00055 static std::vector< boost::shared_ptr< EnvironmentVariable > > allSystemInstances( boost::shared_ptr<const LinuxDumper> driver ); 00056 00057 QString name() const; 00058 QString value() const; 00059 00060 private: 00061 QString name_, value_; 00062 }; 00063 00064 } 00065 00066 } 00067 00068 } 00069 00070 #endif /* INCLUDED_SYSTEM_LINUX_ENVIRONMENT_VARIABLE_HPP */ 00071