// -*- C++ -*-
+/**
+ * \file FuncStatus.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * \author Jean-Marc Lasgouttes
+ *
+ * Full author contact details are available in file CREDITS.
+ */
+
#ifndef FUNC_STATUS_H
#define FUNC_STATUS_H
+#include <string>
+
/// The status of a function.
class FuncStatus
unsigned int v_;
+ std::string message_;
+
public:
///
FuncStatus();
- //
- FuncStatus & clear ();
///
- void operator |= (FuncStatus const & f);
+ void clear();
+ ///
+ void operator|=(FuncStatus const & f);
///
- FuncStatus & unknown(bool b);
+ void unknown(bool b);
///
bool unknown() const;
///
- FuncStatus & disabled (bool b);
+ void enabled(bool b);
+ ///
+ bool enabled() const;
+
+ ///
+ void setOnOff(bool b);
///
- bool disabled () const;
+ bool onoff(bool b) const;
///
- void setOnOff (bool b);
+ void message(std::string const & m);
///
- bool onoff (bool b) const;
+ std::string const & message() const;
};
#endif