Source Code (Use browser search to find items of interest.)
Class Index
kdevelop'VersionControl (./kdevelop/kdevelop/vc/versioncontrol.h:17)
class VersionControl
{
public:
enum State { canBeCommited = 1, canBeAdded = 2 };
/**
* Adds to list the names of all supported
* version control systems.
*/
static QStringList getSupportedSystems();
/**
* Factory method for a new version control object for the
* system given by the parameter system.
* All communication with vc system should then be
* done via the returned object.
*/
static VersionControl *getVersionControl(const char *name);
/**
* Adds a file to the repository.
*/
virtual void add(const char *filename) = 0;
/**
* Removes a file from the repository.
*/
virtual void remove(const char *filename) = 0;
/**
* Updates a file or directory.
*/
virtual void update(const char *filename) = 0;
/**
* Commits a file to the repository.
*/
virtual void commit(const char *filename) = 0;
/**
* Tells whether the given file is registered
* in the version control system.
*/
virtual State registeredState(const char *filename) = 0;
};
kdevelop'VersionControl::getSupportedSystems() (./kdevelop/kdevelop/vc/versioncontrol.cpp:6)
QStringList VersionControl::getSupportedSystems()
{
QStringList list;
list.append("CVS");
return list;
}
kdevelop'VersionControl::getVersionControl() (./kdevelop/kdevelop/vc/versioncontrol.cpp:14)
VersionControl *VersionControl::getVersionControl(const char *name)
{
if (qstrcmp(name, "CVS") == 0)
return new CVS();
else
return 0;
}