limal-runlevel

Runlevel.hpp

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------\
00002 |                                                                      |
00003 |                     _     _   _   _     __     _                     |
00004 |                    | |   | | | \_/ |   /  \   | |                    |
00005 |                    | |   | | | |_| |  / /\ \  | |                    |
00006 |                    | |__ | | | | | | / ____ \ | |__                  |
00007 |                    |____||_| |_| |_|/ /    \ \|____|                 |
00008 |                                                                      |
00009 |                             runlevel library                         |
00010 |                                                                      |
00011 |                                         (C) SUSE Linux Products GmbH |
00012 \----------------------------------------------------------------------/
00013 
00014   File:       Runlevel.hpp
00015 
00016   Author:     Marius Tomaschewski
00017   Maintainer: Marius Tomaschewski
00018 
00019   Purpose:
00020 
00021 /-*/
00026 #ifndef   LIMAL_RUNLEVEL_HPP
00027 #define   LIMAL_RUNLEVEL_HPP
00028 
00029 #include <limal/runlevel/config.h>
00030 #include <blocxx/String.hpp>
00031 #include <blocxx/Array.hpp>
00032 
00033 
00034 // -------------------------------------------------------------------
00035 namespace LIMAL_NAMESPACE
00036 {
00037 namespace RUNLEVEL_NAMESPACE
00038 {
00039 
00040 
00071 typedef char                        Runlevel;
00072 typedef blocxx::Array<Runlevel>     Runlevels;
00073 
00074 
00079 Runlevel
00080 getDefaultRunlevel();
00081 
00082 
00086 Runlevel
00087 getCurrentRunlevel();
00088 
00089 
00093 Runlevels
00094 getEnabledRunlevels();
00095 
00096 
00101 bool
00102 isRunlevelEnabled(Runlevel runlevel);
00103 
00104 
00111 bool
00112 setDefaultRunlevel(Runlevel runlevel);
00113 
00114 
00122 bool
00123 switchToRunlevel(Runlevel runlevel);
00124 
00125 
00126 // -------------------------------------------------------------------
00131 blocxx::Array<blocxx::String>
00132 getRunlevelServiceNames(Runlevel runlevel);
00133 
00134 
00135 // -------------------------------------------------------------------
00136 }      // End of RUNLEVEL_NAMESPACE
00137 }      // End of LIMAL_NAMESPACE
00138 #endif // LIMAL_RUNLEVEL_HPP