# synfigapp::CVSInfo Class Reference

`#include <cvs.h>`

Inheritance diagram for synfigapp::CVSInfo:

List of all members.

## Public Member Functions

void | calc_repository_info ()
| CVSInfo (const synfig::String &file_name)
| CVSInfo ()
| ~CVSInfo ()
void | set_file_name (const synfig::String &file_name)
bool | in_sandbox () const
| Returns TRUE if file_name is in a sandbox.
bool | in_repository () const
| Returns TRUE if file_name is in the repository.
bool | is_modified () const
| Returns TRUE if file_name has modifications not yet on the repository.
bool | is_updated () const
| Returns TRUE if there is a new version of file_name on the repository.
const synfig::String & | get_cvs_version () const
| Returns the CVS version string.
const time_t & | get_original_timestamp () const
| Returns the unix timestamp of the repository file.
time_t | get_current_timestamp () const
| Returns the unix timestamp of the checked out file.
synfig::String | get_cvs_root () const
| Returns the Root.
synfig::String | get_cvs_module () const
| Returns the name of the module.
void | cvs_add (const synfig::String &message=synfig::String())
void | cvs_update ()
void | cvs_commit (const synfig::String &message=synfig::String())

## Constructor & Destructor Documentation

CVSInfo::CVSInfo | ( | const synfig::String & | file_name | ) |

References set_file_name().

CVSInfo::CVSInfo | ( |  | ) |

CVSInfo::~CVSInfo | ( |  | ) |

## Member Function Documentation

void CVSInfo::calc_repository_info | ( |  | ) |

References get_current_timestamp(), get_cvs_module(), get_cvs_root(), get_cvs_version(), get_original_timestamp(), in_repository(), and in_sandbox().

Referenced by cvs_add(), cvs_commit(), cvs_update(), studio::Instance::dialog_cvs_add(), studio::Instance::dialog_cvs_commit(), studio::Instance::dialog_cvs_revert(), studio::Instance::dialog_cvs_update(), and set_file_name().

void CVSInfo::set_file_name | ( | const synfig::String & | file_name | ) |

Reimplemented in synfigapp::Instance.

References calc_repository_info().

Referenced by CVSInfo(), and synfigapp::Instance::set_file_name().

bool CVSInfo::in_sandbox | ( |  | ) | const

Returns TRUE if file_name is in a sandbox.

Referenced by calc_repository_info(), and is_modified().

bool CVSInfo::in_repository | ( |  | ) | const

Returns TRUE if file_name is in the repository.

Referenced by calc_repository_info(), studio::Instance::dialog_cvs_add(), studio::Instance::dialog_cvs_commit(), studio::Instance::dialog_cvs_revert(), studio::Instance::dialog_cvs_update(), is_modified(), and studio::CanvasView::update_title().

bool CVSInfo::is_modified | ( |  | ) | const

Returns TRUE if file_name has modifications not yet on the repository.

References get_current_timestamp(), get_original_timestamp(), in_repository(), and in_sandbox().

Referenced by cvs_commit(), studio::Instance::dialog_cvs_commit(), studio::Instance::safe_close(), and studio::CanvasView::update_title().

bool CVSInfo::is_updated | ( |  | ) | const

Returns TRUE if there is a new version of file_name on the repository.

Referenced by studio::Instance::dialog_cvs_update(), and studio::CanvasView::update_title().

const synfig::String & CVSInfo::get_cvs_version | ( |  | ) | const

Returns the CVS version string.

Referenced by calc_repository_info().

const time_t & CVSInfo::get_original_timestamp | ( |  | ) | const

Returns the unix timestamp of the repository file.

Referenced by calc_repository_info(), studio::Instance::dialog_cvs_update(), and is_modified().

time_t CVSInfo::get_current_timestamp | ( |  | ) | const

Returns the unix timestamp of the checked out file.

Referenced by calc_repository_info(), and is_modified().

synfig::String CVSInfo::get_cvs_root | ( |  | ) | const

Returns the Root.

Referenced by calc_repository_info().

synfig::String CVSInfo::get_cvs_module | ( |  | ) | const

Returns the name of the module.

Referenced by calc_repository_info().

void CVSInfo::cvs_add | ( | const synfig::String & | message = `synfig::String()` | ) |

References calc_repository_info(), cvs_command, and fix_msg().

Referenced by studio::Instance::dialog_cvs_add().

void CVSInfo::cvs_update | ( |  | ) |

References calc_repository_info(), and cvs_command.

Referenced by studio::Instance::dialog_cvs_revert(), and studio::Instance::dialog_cvs_update().

void CVSInfo::cvs_commit | ( | const synfig::String & | message = `synfig::String()` | ) |

References calc_repository_info(), cvs_command, fix_msg(), and is_modified().

Referenced by studio::Instance::dialog_cvs_commit().

The documentation for this class was generated from the following files:

- cvs.h
- cvs.cpp