Confdump Agent  1.4.0
InittabEntry.hpp
Go to the documentation of this file.
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_INITTAB_ENTRY_HPP
00019 #define INCLUDED_SYSTEM_LINUX_INITTAB_ENTRY_HPP
00020 
00021 #include <vector>
00022 
00023 #include "QObject"
00024 #include "QString"
00025 
00026 #include "boost/shared_ptr.hpp"
00027 #include "boost/filesystem/path.hpp"
00028 
00029 #include "Confdump/System/ManagedElement.hpp"
00030 
00031 namespace Confdump
00032 {
00033 
00034 namespace System
00035 {
00036 
00037 class LinuxDumper;
00038 
00039 namespace Linux
00040 {
00041 
00042 class InittabEntry : public System::ManagedElement
00043 {
00044     Q_OBJECT
00045     Q_PROPERTY( QString identifier READ identifier )
00046     Q_PROPERTY( QString runlevels READ runlevels )
00047     Q_PROPERTY( QString action READ action )
00048     Q_PROPERTY( QString path READ path )
00049 
00050     InittabEntry();
00051     InittabEntry( QString line );
00052 
00053 public:
00054     static std::vector< boost::shared_ptr< InittabEntry > > allInittabEntries( boost::shared_ptr<LinuxDumper> driver );
00055     virtual ~InittabEntry();
00056 
00057     QString identifier() const;
00058     QString runlevels() const;
00059     QString action() const;
00060     QString path() const;
00061 
00062 private:
00063     QString id_;
00064     QString runlevels_;
00065     QString action_;
00066     QString path_;
00067 };
00068 
00069 }
00070 
00071 }
00072 
00073 }
00074 
00075 #endif /* INCLUDED_SYSTEM_LINUX_INITTAB_ENTRY_HPP */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends