/*
 * 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 __VARIABLES_H
#define __VARIABLES_H

/* Qt */
#include <qmap.h>
#include <qstring.h>

/** @brief Stores (internal) global variables.
  *
  * This can be used to share data between two
  * DesktopBSD modules.
  *
  * @attention This doesn't work with the KDE control center.
  */
class Variables {
public:
   static bool     setValue(const QString &,  const  QString &,  bool = true);
   static QString  getValue(const QString &);
   static void     unsetVar(const QString &);

private:
   static QMap<QString, QString>  variables;
};

#endif /* __VARIABLES_H */
