]> git.lyx.org Git - lyx.git/blobdiff - src/FuncStatus.h
Transform the name of the temp dir on Windows with GetLongPathName.
[lyx.git] / src / FuncStatus.h
index f6b1c7b95cd82a525fd1c1aef123b1dc5bb105b2..3f5d7b14c1293de2ae12af30751c849c96783568 100644 (file)
@@ -1,7 +1,19 @@
 // -*- 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
@@ -23,27 +35,34 @@ private:
 
        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