KDevelop API Documentation

CvsOptions Class Reference

#include <cvsoptions.h>

Collaboration diagram for CvsOptions:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual ~CvsOptions ()
void save (KDevProject *project)
void load (KDevProject *project)
void setRecursiveWhenCommitRemove (bool b)
bool recursiveWhenCommitRemove () const
void setPruneEmptyDirsWhenUpdate (bool b)
bool pruneEmptyDirsWhenUpdate () const
void setRecursiveWhenUpdate (bool b)
bool recursiveWhenUpdate () const
void setCreateDirsWhenUpdate (bool b)
bool createDirsWhenUpdate () const
void setDiffOptions (const QString &p)
QString diffOptions ()
void setRevertOptions (const QString &p)
QString revertOptions ()
void setCvsRshEnvVar (const QString &p)
QString cvsRshEnvVar ()
QString guessLocation (const QString &projectDir) const
 Will try to determine location by using CVS/Root file.
void setLocation (const QString &p)
 Set server path string (this should be called by the part when a new project is created or imported).
QString location ()
 
Returns:
remote path (i.e.

void setContextLines (unsigned int contextLines)
unsigned int contextLines () const
void setCompressionLevel (unsigned int compressionLevel=0)
unsigned int compressionLevel () const

Static Public Member Functions

CvsOptionsinstance ()

Static Public Attributes

QString invalidLocation

Private Member Functions

 CvsOptions ()

Private Attributes

bool m_recursiveWhenCommitRemove
bool m_pruneEmptyDirsWhenUpdate
bool m_recursiveWhenUpdate
bool m_createDirsWhenUpdate
QString m_revertOptions
QString m_diffOptions
QString m_cvsRshEnvVar
QString m_location
unsigned int m_compressionLevel
unsigned int m_contextLines
KConfigm_serviceConfig
 So we can access cvssservice configuration (repositories first of all).

Static Private Attributes

CvsOptionsm_instance = 0

Constructor & Destructor Documentation

CvsOptions::~CvsOptions  )  [virtual]
 

Definition at line 61 of file cvsoptions.cpp.

References kdDebug(), and m_instance.

CvsOptions::CvsOptions  )  [private]
 

Definition at line 43 of file cvsoptions.cpp.

References default_compression, default_contextLines, default_diff, default_revert, default_rsh, kdDebug(), and m_serviceConfig.

Referenced by instance().


Member Function Documentation

unsigned int CvsOptions::compressionLevel  )  const
 

Definition at line 263 of file cvsoptions.cpp.

unsigned int CvsOptions::contextLines  )  const
 

Definition at line 249 of file cvsoptions.cpp.

Referenced by CvsServicePartImpl::diff(), CvsOptionsWidget::readConfig(), save(), and CVSDiffPage::startDiff().

bool CvsOptions::createDirsWhenUpdate  )  const
 

Definition at line 179 of file cvsoptions.cpp.

Referenced by CvsOptionsWidget::readConfig(), CvsServicePartImpl::removeStickyFlag(), save(), and CvsServicePartImpl::update().

QString CvsOptions::cvsRshEnvVar  ) 
 

Definition at line 221 of file cvsoptions.cpp.

Referenced by CvsServicePartImpl::createNewProject(), CvsOptionsWidget::readConfig(), and save().

QString CvsOptions::diffOptions  ) 
 

Definition at line 207 of file cvsoptions.cpp.

Referenced by CvsServicePartImpl::diff(), CvsOptionsWidget::readConfig(), save(), and CVSDiffPage::startDiff().

QString CvsOptions::guessLocation const QString projectDir  )  const
 

Will try to determine location by using CVS/Root file.

Definition at line 270 of file cvsoptions.cpp.

References kdDebug().

Referenced by load(), and save().

CvsOptions * CvsOptions::instance  )  [static]
 

Definition at line 71 of file cvsoptions.cpp.

References CvsOptions(), and m_instance.

Referenced by CvsServicePartImpl::commit(), CvsServicePartImpl::createNewProject(), CvsServicePartImpl::diff(), CvsOptionsWidget::readConfig(), CvsServicePartImpl::removeStickyFlag(), CvsServicePart::slotProjectClosed(), CvsServicePart::slotProjectOpened(), CVSDiffPage::startDiff(), CvsOptionsWidget::storeConfig(), and CvsServicePartImpl::update().

void CvsOptions::load KDevProject project  ) 
 

Fixme:
parameter should be const!!

Definition at line 107 of file cvsoptions.cpp.

References default_contextLines, default_diff, default_revert, default_rsh, guessLocation(), kdDebug(), m_contextLines, m_createDirsWhenUpdate, m_cvsRshEnvVar, m_diffOptions, m_pruneEmptyDirsWhenUpdate, m_recursiveWhenCommitRemove, m_recursiveWhenUpdate, m_revertOptions, m_serviceConfig, KDevProject::projectDirectory(), KDevPlugin::projectDom(), DomUtil::readBoolEntry(), KConfigBase::readEntry(), DomUtil::readEntry(), KConfigBase::readUnsignedNumEntry(), and KConfigBase::setGroup().

Referenced by CvsServicePart::slotProjectOpened().

QString CvsOptions::location  ) 
 

Returns:
remote path (i.e.

:pserver:marios@cvs.kde.org:/home/kde)

Definition at line 228 of file cvsoptions.cpp.

Referenced by CvsServicePartImpl::createNewProject(), and CvsOptionsWidget::readConfig().

bool CvsOptions::pruneEmptyDirsWhenUpdate  )  const
 

Definition at line 151 of file cvsoptions.cpp.

Referenced by CvsOptionsWidget::readConfig(), CvsServicePartImpl::removeStickyFlag(), save(), and CvsServicePartImpl::update().

bool CvsOptions::recursiveWhenCommitRemove  )  const
 

Definition at line 137 of file cvsoptions.cpp.

Referenced by CvsServicePartImpl::commit(), CvsOptionsWidget::readConfig(), and save().

bool CvsOptions::recursiveWhenUpdate  )  const
 

Definition at line 165 of file cvsoptions.cpp.

Referenced by CvsOptionsWidget::readConfig(), CvsServicePartImpl::removeStickyFlag(), save(), and CvsServicePartImpl::update().

QString CvsOptions::revertOptions  ) 
 

Definition at line 193 of file cvsoptions.cpp.

Referenced by save(), and CvsServicePartImpl::update().

void CvsOptions::save KDevProject project  ) 
 

Definition at line 82 of file cvsoptions.cpp.

References contextLines(), createDirsWhenUpdate(), cvsRshEnvVar(), diffOptions(), guessLocation(), kdDebug(), m_serviceConfig, KDevProject::projectDirectory(), KDevPlugin::projectDom(), pruneEmptyDirsWhenUpdate(), recursiveWhenCommitRemove(), recursiveWhenUpdate(), revertOptions(), KConfigBase::setGroup(), DomUtil::writeBoolEntry(), KConfigBase::writeEntry(), and DomUtil::writeEntry().

Referenced by CvsServicePart::slotProjectClosed(), and CvsServicePart::slotProjectOpened().

void CvsOptions::setCompressionLevel unsigned int  compressionLevel = 0  ) 
 

Definition at line 256 of file cvsoptions.cpp.

References m_compressionLevel.

void CvsOptions::setContextLines unsigned int  contextLines  ) 
 

Definition at line 242 of file cvsoptions.cpp.

References m_contextLines.

Referenced by CvsOptionsWidget::storeConfig().

void CvsOptions::setCreateDirsWhenUpdate bool  b  ) 
 

Definition at line 172 of file cvsoptions.cpp.

References m_createDirsWhenUpdate.

Referenced by CvsOptionsWidget::storeConfig().

void CvsOptions::setCvsRshEnvVar const QString p  ) 
 

Definition at line 214 of file cvsoptions.cpp.

References m_cvsRshEnvVar.

Referenced by CvsServicePartImpl::createNewProject(), and CvsOptionsWidget::storeConfig().

void CvsOptions::setDiffOptions const QString p  ) 
 

Definition at line 200 of file cvsoptions.cpp.

References m_diffOptions.

Referenced by CvsOptionsWidget::storeConfig().

void CvsOptions::setLocation const QString p  ) 
 

Set server path string (this should be called by the part when a new project is created or imported).

Parameters:
p (i.e. :pserver:marios@cvs.kde.org:/home/kde)

Definition at line 235 of file cvsoptions.cpp.

References m_location.

Referenced by CvsServicePartImpl::createNewProject(), and CvsOptionsWidget::storeConfig().

void CvsOptions::setPruneEmptyDirsWhenUpdate bool  b  ) 
 

Definition at line 144 of file cvsoptions.cpp.

References m_pruneEmptyDirsWhenUpdate.

Referenced by CvsOptionsWidget::storeConfig().

void CvsOptions::setRecursiveWhenCommitRemove bool  b  ) 
 

Definition at line 130 of file cvsoptions.cpp.

References m_recursiveWhenCommitRemove.

Referenced by CvsOptionsWidget::storeConfig().

void CvsOptions::setRecursiveWhenUpdate bool  b  ) 
 

Definition at line 158 of file cvsoptions.cpp.

References m_recursiveWhenUpdate.

Referenced by CvsOptionsWidget::storeConfig().

void CvsOptions::setRevertOptions const QString p  ) 
 

Definition at line 186 of file cvsoptions.cpp.

References m_revertOptions.


Member Data Documentation

QString CvsOptions::invalidLocation [static]
 

unsigned int CvsOptions::m_compressionLevel [private]
 

Definition at line 92 of file cvsoptions.h.

Referenced by setCompressionLevel().

unsigned int CvsOptions::m_contextLines [private]
 

Definition at line 93 of file cvsoptions.h.

Referenced by load(), and setContextLines().

bool CvsOptions::m_createDirsWhenUpdate [private]
 

Definition at line 87 of file cvsoptions.h.

Referenced by load(), and setCreateDirsWhenUpdate().

QString CvsOptions::m_cvsRshEnvVar [private]
 

Definition at line 90 of file cvsoptions.h.

Referenced by load(), and setCvsRshEnvVar().

QString CvsOptions::m_diffOptions [private]
 

Definition at line 89 of file cvsoptions.h.

Referenced by load(), and setDiffOptions().

CvsOptions * CvsOptions::m_instance = 0 [static, private]
 

Definition at line 36 of file cvsoptions.cpp.

Referenced by instance(), and ~CvsOptions().

QString CvsOptions::m_location [private]
 

Definition at line 91 of file cvsoptions.h.

Referenced by setLocation().

bool CvsOptions::m_pruneEmptyDirsWhenUpdate [private]
 

Definition at line 85 of file cvsoptions.h.

Referenced by load(), and setPruneEmptyDirsWhenUpdate().

bool CvsOptions::m_recursiveWhenCommitRemove [private]
 

Definition at line 84 of file cvsoptions.h.

Referenced by load(), and setRecursiveWhenCommitRemove().

bool CvsOptions::m_recursiveWhenUpdate [private]
 

Definition at line 86 of file cvsoptions.h.

Referenced by load(), and setRecursiveWhenUpdate().

QString CvsOptions::m_revertOptions [private]
 

Definition at line 88 of file cvsoptions.h.

Referenced by load(), and setRevertOptions().

KConfig* CvsOptions::m_serviceConfig [private]
 

So we can access cvssservice configuration (repositories first of all).

Definition at line 95 of file cvsoptions.h.

Referenced by CvsOptions(), load(), and save().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for KDevelop Version 3.1.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Mar 23 00:21:52 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003