-
- public:
-
- /**
- * reads the status from a file which contains the
- * checksum and timestamp in each line.
- *
- * \returns An empty \ref RepoStatus if the file does not
- * exist or is not readable.
- */
- static RepoStatus fromCookieFile( const Pathname &path );
-
- /**
- * save the status information to a cookie file
- * \throws Exception if the file can't be saved
- */
- void saveToCookieFile( const Pathname &path ) const;
-
- /**
- * Checksum of the repository.
- * Usually the checksum of the index, but any
- * checksum that changes when the repository changes
- * in any way is sufficient.
- */
- std::string checksum() const;
-
- /**
- * timestamp of the repository. If the repository
- * changes, it has to be updated as well with the
- * new timestamp.
- */
- Date timestamp() const;
-
- /**
- * \short Is the status empty?
- *
- * An empty status means that the status
- * was not calculated.
- */
- bool empty() const;
-
- /**
- * set the repository checksum \see checksum
- * \param checksum
- */
- RepoStatus & setChecksum( const std::string &checksum );
-
- /**
- * set the repository timestamp \see timestamp
- * \param timestamp
- */
- RepoStatus & setTimestamp( const Date ×tamp );
-
- /** Implementation */
- class Impl;
+ friend RepoStatus operator&&( const RepoStatus & lhs, const RepoStatus & rhs );
+ friend bool operator==( const RepoStatus & lhs, const RepoStatus & rhs );