1 /* === S Y N F I G ========================================================= */
3 ** \brief Template Header
5 ** $Id: cvs.h,v 1.1.1.1 2005/01/07 03:34:37 darco Exp $
8 ** Copyright (c) 2002 Robert B. Quattlebaum Jr.
10 ** This software and associated documentation
11 ** are CONFIDENTIAL and PROPRIETARY property of
12 ** the above-mentioned copyright holder.
14 ** You may not copy, print, publish, or in any
15 ** other way distribute this software without
16 ** a prior written agreement with
17 ** the copyright holder.
20 /* ========================================================================= */
22 /* === S T A R T =========================================================== */
24 #ifndef __SYNFIG_CVS_H
25 #define __SYNFIG_CVS_H
27 /* === H E A D E R S ======================================================= */
29 #include <synfig/string.h>
32 /* === M A C R O S ========================================================= */
34 /* === T Y P E D E F S ===================================================== */
36 /* === C L A S S E S & S T R U C T S ======================================= */
42 synfig::String file_name_;
46 bool update_available_;
48 synfig::String cvs_version_;
49 time_t original_timestamp_;
53 void calc_repository_info();
55 CVSInfo(const synfig::String& file_name);
59 void set_file_name(const synfig::String& file_name);
61 // READ OPERATIONS --------------------------------------------------
63 //! Returns TRUE if \a file_name is in a sandbox
64 bool in_sandbox()const;
66 //! Returns TRUE if \a file_name is in the repository
67 bool in_repository()const;
69 //! Returns TRUE if \a file_name has modifications not yet on the repository
70 bool is_modified()const;
72 //! Returns TRUE if there is a new version of \a file_name on the repository
73 bool is_updated()const;
75 //! Returns the CVS version string
76 const synfig::String& get_cvs_version()const;
78 //! Returns the unix timestamp of the repository file
79 const time_t &get_original_timestamp()const;
81 //! Returns the unix timestamp of the checked out file
82 time_t get_current_timestamp()const;
85 synfig::String get_cvs_root()const;
87 //! Returns the name of the module
88 synfig::String get_cvs_module()const;
90 // WRITE OPERATIONS -------------------------------------------------
92 void cvs_add(const synfig::String& message=synfig::String());
96 void cvs_commit(const synfig::String& message=synfig::String());
97 }; // END of class CVSInfo
99 }; // END of namespace synfigapp
101 /* === E N D =============================================================== */