/*
 * This file is part of DesktopBSD, see the README file.
 *
 * Author: Peter Hofer <ph@desktopbsd.net>
 *         (C) 2004, 2005
 *
 * Copyright: BSD, see the COPYING file included in this distribution
 *
 */

#ifndef __RCCONF_H
#define __RCCONF_H

class QString;

/** @brief Modify /etc/rc.conf variables.
  *
  * This class provides easy access to the /etc/rc.conf
  * file. It tries to keep the file in a good shape
  * and does things like squeeze newlines to keep
  * clarity.
  */
class RCConf {
public:
   /** Sets a variable in /etc/rc.conf. */
   static bool  setVar(const QString &  name, const QString &  value);

   /** @return The value of an /etc/rc.conf variable. */
   static QString  getVar(const QString &  name);

   /** Removes a variable from /etc/rc.conf. */
   static bool  unsetVar(const QString &  name);
};

#endif /* __RCCONF_H */

