X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fvc-backend.h;h=d487b11c7785a95ac93f878d8b0cee43df7b0d57;hb=2c832e6578ae146a2b51967cbc78cd640959f196;hp=d5e90303f3d1c50109a8e214722058c5aa7fad86;hpb=44cd0fc9a1687cc63911c7f98d978594458e7813;p=lyx.git diff --git a/src/vc-backend.h b/src/vc-backend.h index d5e90303f3..d487b11c77 100644 --- a/src/vc-backend.h +++ b/src/vc-backend.h @@ -12,8 +12,13 @@ #ifndef VC_BACKEND_H #define VC_BACKEND_H +#include "support/filename.h" + #include + +namespace lyx { + class Buffer; /// A simple version control system interface @@ -41,7 +46,7 @@ public: * getLog - read the revision log into the given file * @param fname file name to read into */ - virtual void getLog(std::string const &) = 0; + virtual void getLog(support::FileName const &) = 0; /// return the current version description virtual std::string const versionString() const = 0; /// return the current version @@ -72,7 +77,7 @@ protected: * The master VC file. For RCS this is *,v or RCS/ *,v. master should * have full path. */ - std::string master_; + support::FileName master_; /// The status of the VC controlled file. VCStatus vcstatus; @@ -95,12 +100,12 @@ class RCS : public VCS { public: explicit - RCS(std::string const & m); + RCS(support::FileName const & m); /// return the revision file for the given file, if found - static std::string const find_file(std::string const & file); + static support::FileName const find_file(support::FileName const & file); - static void retrieve(std::string const & file); + static void retrieve(support::FileName const & file); virtual void registrer(std::string const & msg); @@ -112,7 +117,7 @@ public: virtual void undoLast(); - virtual void getLog(std::string const &); + virtual void getLog(support::FileName const &); virtual std::string const versionString() const { return "RCS: " + version_; @@ -128,10 +133,10 @@ class CVS : public VCS { public: /// explicit - CVS(std::string const & m, std::string const & f); + CVS(support::FileName const & m, support::FileName const & f); /// return the revision file for the given file, if found - static std::string const find_file(std::string const & file); + static support::FileName const find_file(support::FileName const & file); virtual void registrer(std::string const & msg); @@ -143,7 +148,7 @@ public: virtual void undoLast(); - virtual void getLog(std::string const &); + virtual void getLog(support::FileName const &); virtual std::string const versionString() const { return "CVS: " + version_; @@ -153,6 +158,9 @@ protected: virtual void scanMaster(); private: - std::string file_; + support::FileName file_; }; + +} // namespace lyx + #endif // VCBACKEND_H