X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FLyXVC.h;h=b304730700bb9baad739418e9624883cb236cb60;hb=874ad18178ac387c407534fd18e33c116c753430;hp=9b1c747b82b5b9f72cf6abfb62fa043e13b39cb1;hpb=0526eb9d47008ba8d63452a32e8cdc73a272b7f1;p=lyx.git diff --git a/src/LyXVC.h b/src/LyXVC.h index 9b1c747b82..b304730700 100644 --- a/src/LyXVC.h +++ b/src/LyXVC.h @@ -12,7 +12,8 @@ #ifndef LYX_VC_H #define LYX_VC_H -#include +#include "support/docstring.h" +#include "support/unique_ptr.h" #include @@ -44,12 +45,12 @@ public: Cancelled, ///< command was cancelled ErrorBefore, ///< error before executing command ErrorCommand, ///< error while executing command - Success ///< command was executed successfully + VCSuccess ///< command was executed successfully }; /// LyXVC(); - /// - ~LyXVC(); + /// Status of the underlying VCS + docstring vcstatus() const; /// Is \p fn under version control? static bool fileInVC(support::FileName const & fn); /** Not a good name perhaps. This function should be called whenever @@ -190,7 +191,7 @@ private: Buffer * owner_; /// - boost::scoped_ptr vcs; + unique_ptr vcs; };