KDevelop API Documentation

CvsServicePartImpl Class Reference

This is the base class for implementation of the core service. More...

#include <cvspartimpl.h>

Inheritance diagram for CvsServicePartImpl:

Inheritance graph
[legend]
Collaboration diagram for CvsServicePartImpl:

Collaboration graph
[legend]
List of all members.

Public Types

enum  CvsOperation {
  opFakeStub, opAdd, opCommit, opUpdate,
  opRevert, opRemove, opLog, opDiff,
  opTag, opUnTag
}
 Available Cvs operations. More...

Signals

void warning (const QString &msg)
void checkoutFinished (QString checkedDir)
 Emitted when the component has terminated checkout operation.

Public Member Functions

 CvsServicePartImpl (CvsServicePart *part, const char *name=0)
 Costructor.
virtual ~CvsServicePartImpl ()
 Destructor.
virtual void login ()
 Do login into repository.
virtual void logout ()
 Do logout.
virtual bool checkout ()
 Do checkout of module from some remote directory.
virtual void commit (const KURL::List &urlList)
 Commit the specified files (as KURL) to repository.
virtual void update (const KURL::List &urlList)
 Update the specified files (as KURL): files will be updated if not locally modified.
virtual void add (const KURL::List &urlList, bool binary=false)
 Add the specified files (as KURL) to repository.
virtual void remove (const KURL::List &urlList)
 Remove the specified files (as KURL) from repository.
virtual void log (const KURL::List &urlList)
 Produce a log of changes about the specified files.
virtual void diff (const KURL::List &urlList)
 Produce a diff of the the specified files (as KURL).
virtual void tag (const KURL::List &urlList)
 Tag the specified files (as KURL) with a release or branch tag.
virtual void unTag (const KURL::List &urlList)
 Remove tag from the specified files (as KURL) in repository.
virtual void removeStickyFlag (const KURL::List &urlList)
 Remove tag from the specified files (as KURL) in repository.
virtual void addToIgnoreList (const KURL::List &urlList)
 Add the specified files (as KURL) to the .cvsignore file.
virtual void removeFromIgnoreList (const KURL::List &urlList)
 Commit the specified files (as KURL) to repository.
virtual void createNewProject (const QString &dirName, const QString &cvsRsh, const QString &location, const QString &message, const QString &module, const QString &vendor, const QString &release, bool mustInitRoot)
 Creates a new project with cvs support, that is will import the generated sources in the repository.
virtual bool isValidDirectory (const QDir &dir) const
KDevVCSFileInfoProviderfileInfoProvider () const
void flushJobs ()
 Stops the CVS job, both currently executing and queued.
CvsProcessWidgetprocessWidget () const

Private Slots

void slotJobFinished (bool normalExit, int exitStatus)
void slotDiffFinished (bool normalExit, int exitStatus)
void slotCheckoutFinished (bool normalExit, int exitStatus)
void slotProjectOpened ()

Private Member Functions

bool prepareOperation (const KURL::List &someUrls, CvsOperation op)
 Call this every time a slot for cvs operations starts!! (It will setup the state (file/dir URL, ...).
void doneOperation (const KURL::List &someUrls=KURL::List(), CvsOperation op=opFakeStub)
 Call this every time a slot for cvs operations ends!! (It will restore the state for a new operation) and notify clients about changes.
void emitFileStateModified (const KURL::List &urls, VCSFileInfo::FileState &commonState)
void addFilesToProject (const QStringList &filesToAdd)
 Implementation for requesting user input when files are added to project.
void removedFilesFromProject (const QStringList &filesToRemove)
 Implementation for requesting user input when files are removed from project.
QStringList checkFileListAgainstCVS (const QStringList &filesToCheck) const
 Check each file in the list against CVS and returns a new list with the files currently registered in the repository: if none is registered the returned list is (quite rightly) empty.
KDevMainWindowmainWindow () const
KDevCorecore () const
QString projectDirectory () const
KDevDiffFrontenddiffFrontend () const
bool requestCvsService ()
 Locate and setup DCOP CvsService.
void releaseCvsService ()
 De-initialize and release CvsService.
const KURL::ListurlList () const
 Urls which to work upon.
QStringList fileList (bool relativeToProjectDir=true) const
CvsOperation lastOperation () const
 Last operation type: we save it so we can retrieve and use in slot*Exited().

Static Private Member Functions

bool isRegisteredInRepository (const QString &projectDirectory, const KURL &url)
void validateURLs (const QString &projectDirectory, KURL::List &urls, CvsOperation op)
 Ideally this function will take a bunch of URLs and validate them (they are valid files, are files registered in CVS, are on a supported filesystem, ...).
void addToIgnoreList (const QString &projectDirectory, const KURL &url)
 Add file to it's respective ignore list.
void addToIgnoreList (const QString &projectDirectory, const KURL::List &urls)
 Add files to their respective ignore list.
void removeFromIgnoreList (const QString &projectDirectory, const KURL &url)
 Remove file from it's respective .ignore files.
void removeFromIgnoreList (const QString &projectDirectory, const KURL::List &urls)
 Remove files from their respective .ignore files.

Private Attributes

CvsService_stub * m_cvsService
Repository_stub * m_repository
QString modulePath
 Used for storing module path between start and ending of check-out.
CVSFileInfoProviderm_fileInfoProvider
JobSchedulerm_scheduler
CvsServicePartm_part
 Reference to owner part.
QGuardedPtr< CvsProcessWidgetm_widget
 Reference to widget integrated in the "bottom tabbar" (IDEAL) (_Must_ be initialized by derived class).
KURL::List m_urlList
CvsOperation m_lastOperation

Static Private Attributes

const QString changeLogFileName
 Changelog filename (currently "CHANGELOG" ).
const QString changeLogPrependString
 Four spaces for every log line (except the first which includes the developers name).

Friends

class CvsServicePart

Detailed Description

This is the base class for implementation of the core service.

This is an attempt to separate the container part (CvsServicePart) and its implementation for reducing code complexity for module (cvspart.{h,cpp} was becoming too cumbersome). So a CvsServicePart can have several implementations, one directly wrapping 'cvs' command and another using cervisia's cvsservice.

Author:
Mario Scalas

Definition at line 46 of file cvspartimpl.h.


Member Enumeration Documentation

enum CvsServicePartImpl::CvsOperation
 

Available Cvs operations.

Enumeration values:
opFakeStub 
opAdd 
opCommit 
opUpdate 
opRevert 
opRemove 
opLog 
opDiff 
opTag 
opUnTag 

Definition at line 53 of file cvspartimpl.h.


Constructor & Destructor Documentation

CvsServicePartImpl::CvsServicePartImpl CvsServicePart part,
const char *  name = 0
 

Costructor.

Parameters:
part the CvsServicePart component
name 

Definition at line 73 of file cvspartimpl.cpp.

References core(), kdDebug(), m_cvsService, m_fileInfoProvider, m_scheduler, m_widget, requestCvsService(), and slotProjectOpened().

CvsServicePartImpl::~CvsServicePartImpl  )  [virtual]
 

Destructor.

Definition at line 94 of file cvspartimpl.cpp.

References m_widget, mainWindow(), processWidget(), releaseCvsService(), and KDevMainWindow::removeView().


Member Function Documentation

void CvsServicePartImpl::add const KURL::List urlList,
bool  binary = false
[virtual]
 

Add the specified files (as KURL) to repository.

Parameters:
urlList 
binary is the file binary or plain text

Definition at line 463 of file cvspartimpl.cpp.

References doneOperation(), fileList(), kdDebug(), m_cvsService, m_scheduler, opAdd, prepareOperation(), processWidget(), JobScheduler::schedule(), and slotJobFinished().

Referenced by addFilesToProject(), CvsServicePart::slotActionAdd(), CvsServicePart::slotActionAddBinary(), CvsServicePart::slotAdd(), and CvsServicePart::slotAddBinary().

void CvsServicePartImpl::addFilesToProject const QStringList filesToAdd  )  [private]
 

Implementation for requesting user input when files are added to project.

Definition at line 728 of file cvspartimpl.cpp.

References add(), checkFileListAgainstCVS(), URLUtil::dump(), kdDebug(), and KMessageBox::questionYesNo().

Referenced by CvsServicePart::slotAddFilesToProject().

void CvsServicePartImpl::addToIgnoreList const QString projectDirectory,
const KURL::List urls
[static, private]
 

Add files to their respective ignore list.

This means that, for example, if you add '/home/mario/src/myprj/mylib/module1/bad.cpp' then the string 'bad.cpp' will be appended to file '/home/mario/src/myprj/mylib/module1/.cvsignore'.

Parameters:
projectDirectory 
urls list of urls to be added to the check list.

Definition at line 265 of file cvspartimpl.cpp.

References addToIgnoreList().

void CvsServicePartImpl::addToIgnoreList const QString projectDirectory,
const KURL url
[static, private]
 

Add file to it's respective ignore list.

This means that, for example, if you add '/home/mario/src/myprj/mylib/module1/bad.cpp' then the string 'bad.cpp' will be appended to file '/home/mario/src/myprj/mylib/module1/.cvsignore'.

Parameters:
projectDirectory 
url url to be added to the check list.

Definition at line 251 of file cvspartimpl.cpp.

References KURL::directory(), KURL::fileName(), kdDebug(), and KURL::path().

void CvsServicePartImpl::addToIgnoreList const KURL::List urlList  )  [virtual]
 

Add the specified files (as KURL) to the .cvsignore file.

Parameters:
urlList 

Definition at line 617 of file cvspartimpl.cpp.

References projectDirectory().

Referenced by addToIgnoreList(), CvsServicePart::slotActionAddToIgnoreList(), and CvsServicePart::slotAddToIgnoreList().

QStringList CvsServicePartImpl::checkFileListAgainstCVS const QStringList filesToCheck  )  const [private]
 

Check each file in the list against CVS and returns a new list with the files currently registered in the repository: if none is registered the returned list is (quite rightly) empty.

Definition at line 779 of file cvspartimpl.cpp.

References isValidDirectory(), m_part, KDevPlugin::project(), and KDevProject::projectDirectory().

Referenced by addFilesToProject(), and removedFilesFromProject().

bool CvsServicePartImpl::checkout  )  [virtual]
 

Do checkout of module from some remote directory.

Requested data will be collected here.

Returns:
true if the operation was successful

Definition at line 357 of file cvspartimpl.cpp.

References kdDebug(), m_cvsService, m_scheduler, main(), mainWindow(), CheckoutDialog::module(), modulePath, processWidget(), CheckoutDialog::pruneDirs(), JobScheduler::schedule(), CheckoutDialog::serverPath(), slotCheckoutFinished(), KMessageBox::sorry(), CheckoutDialog::tag(), and CheckoutDialog::workDir().

Referenced by CvsServicePart::fetchFromRepository().

void CvsServicePartImpl::checkoutFinished QString  checkedDir  )  [signal]
 

Emitted when the component has terminated checkout operation.

Parameters:
checkedDir directory where the module has been checked out (will be empty if the operation failed)

Referenced by slotCheckoutFinished().

void CvsServicePartImpl::commit const KURL::List urlList  )  [virtual]
 

Commit the specified files (as KURL) to repository.

Parameters:
urlList 

Definition at line 391 of file cvspartimpl.cpp.

References ChangeLogEntry::addLines(), ChangeLogEntry::addToLog(), CommitDialog::changeLogFileName(), changeLogPrependString, doneOperation(), fileList(), CvsOptions::instance(), kdDebug(), CommitDialog::logMessage(), m_cvsService, m_scheduler, CommitDialog::mustAddToChangeLog(), opCommit, prepareOperation(), processWidget(), projectDirectory(), CvsOptions::recursiveWhenCommitRemove(), JobScheduler::schedule(), slotJobFinished(), and ChangeLogEntry::toString().

Referenced by CvsServicePart::slotActionCommit(), and CvsServicePart::slotCommit().

KDevCore * CvsServicePartImpl::core  )  const [private]
 

Definition at line 325 of file cvspartimpl.cpp.

References KDevPlugin::core(), and m_part.

Referenced by CvsServicePartImpl(), and slotDiffFinished().

void CvsServicePartImpl::createNewProject const QString dirName,
const QString cvsRsh,
const QString location,
const QString message,
const QString module,
const QString vendor,
const QString release,
bool  mustInitRoot
[virtual]
 

Creates a new project with cvs support, that is will import the generated sources in the repository.

Parameters:
dirName path to project directory on local system
cvsRsh value for the CVS_RSH env var (for accessing :ext: repositories)
location cvs server path (i.e. :pserver:marios@cvs.kde.org:/home/kde)
message an initial creation message for the project
module the module into repository where to put this source tree
vendor vendor string
release release tag
mustInitRoot if true will attempt to initialize $CVSROOT if not already prepared

Definition at line 635 of file cvspartimpl.cpp.

References CvsOptions::cvsRshEnvVar(), endl(), CvsOptions::instance(), kdDebug(), locate(), CvsOptions::location(), m_part, KDevPlugin::makeFrontend(), message(), KDevMakeFrontend::queueCommand(), KShellProcess::quote(), CvsOptions::setCvsRshEnvVar(), and CvsOptions::setLocation().

Referenced by CvsServicePart::createNewProject().

void CvsServicePartImpl::diff const KURL::List urlList  )  [virtual]
 

Produce a diff of the the specified files (as KURL).

The diff could be displayed in the diff frontend or in an ad-hoc container.

Parameters:
urlList 

Definition at line 539 of file cvspartimpl.cpp.

References CvsOptions::contextLines(), CvsOptions::diffOptions(), doneOperation(), fileList(), CvsOptions::instance(), kdDebug(), m_cvsService, m_scheduler, opDiff, prepareOperation(), processWidget(), DiffDialog::revA(), DiffDialog::revB(), JobScheduler::schedule(), slotDiffFinished(), and KMessageBox::sorry().

Referenced by CvsServicePart::slotActionDiff(), CvsServicePart::slotDiff(), and slotDiffFinished().

KDevDiffFrontend * CvsServicePartImpl::diffFrontend  )  const [private]
 

Definition at line 332 of file cvspartimpl.cpp.

References KDevPlugin::diffFrontend(), and m_part.

Referenced by slotDiffFinished().

void CvsServicePartImpl::doneOperation const KURL::List someUrls = KURL::List(),
CvsOperation  op = opFakeStub
[private]
 

Call this every time a slot for cvs operations ends!! (It will restore the state for a new operation) and notify clients about changes.

Definition at line 164 of file cvspartimpl.cpp.

References kdDebug().

Referenced by add(), commit(), diff(), log(), remove(), removeStickyFlag(), tag(), unTag(), and update().

void CvsServicePartImpl::emitFileStateModified const KURL::List urls,
VCSFileInfo::FileState commonState
[private]
 

Definition at line 795 of file cvspartimpl.cpp.

KDevVCSFileInfoProvider * CvsServicePartImpl::fileInfoProvider  )  const
 

Returns:
a reference to the custom FileInforProvider object (FORWARDER)

Definition at line 801 of file cvspartimpl.cpp.

Referenced by CvsServicePart::fileInfoProvider().

QStringList CvsServicePartImpl::fileList bool  relativeToProjectDir = true  )  const [private]
 

Parameters:
relativeToProjectDir if true paths will be provided as relative to project directory, as absolute paths otherwise
Returns:
These are the file path contained in the urls provided for convenience has been requested for.

Definition at line 180 of file cvspartimpl.cpp.

References projectDirectory(), URLUtil::toRelativePaths(), KURL::List::toStringList(), and urlList().

Referenced by add(), commit(), diff(), log(), remove(), removeStickyFlag(), tag(), unTag(), and update().

void CvsServicePartImpl::flushJobs  ) 
 

Stops the CVS job, both currently executing and queued.

Todo:
queuing is not yet implemented

Definition at line 721 of file cvspartimpl.cpp.

References CvsProcessWidget::cancelJob(), and processWidget().

Referenced by CvsServicePart::slotStopButtonClicked().

bool CvsServicePartImpl::isRegisteredInRepository const QString projectDirectory,
const KURL url
[static, private]
 

Returns:
true if the url is present in CVS/Entry file

Definition at line 190 of file cvspartimpl.cpp.

References KURL::directory(), KURL::fileName(), CVSDir::fileStatus(), KURL::fromPathOrURL(), CVSEntry::isValid(), CVSDir::isValid(), kdDebug(), and KURL::url().

Referenced by validateURLs().

bool CvsServicePartImpl::isValidDirectory const QDir dir  )  const [virtual]
 

Returns:
true if the directory is valid as CVS directory (has the /CVS/ dir inside) (FORWARDER)

Definition at line 295 of file cvspartimpl.cpp.

References CVSDir::isValid().

Referenced by checkFileListAgainstCVS(), and CvsServicePart::isValidDirectory().

CvsOperation CvsServicePartImpl::lastOperation  )  const [private]
 

Last operation type: we save it so we can retrieve and use in slot*Exited().

void CvsServicePartImpl::log const KURL::List urlList  )  [virtual]
 

Produce a log of changes about the specified files.

Parameters:
urlList 

Definition at line 522 of file cvspartimpl.cpp.

References doneOperation(), fileList(), kdDebug(), m_cvsService, opLog, prepareOperation(), projectDirectory(), and CVSLogDialog::startLog().

Referenced by CvsServicePart::slotActionLog(), and CvsServicePart::slotLog().

void CvsServicePartImpl::login  )  [virtual]
 

Do login into repository.

The component will show a dialog requesting the needed data to the user.

Definition at line 339 of file cvspartimpl.cpp.

References m_cvsService, m_scheduler, and JobScheduler::schedule().

Referenced by CvsServicePart::slotActionLogin().

void CvsServicePartImpl::logout  )  [virtual]
 

Do logout.

Of course one must be logged into repository first ;-)

Definition at line 348 of file cvspartimpl.cpp.

References m_cvsService, m_scheduler, and JobScheduler::schedule().

Referenced by CvsServicePart::slotActionLogout().

KDevMainWindow * CvsServicePartImpl::mainWindow  )  const [private]
 

Definition at line 311 of file cvspartimpl.cpp.

References m_part, and KDevPlugin::mainWindow().

Referenced by checkout(), tag(), unTag(), update(), and ~CvsServicePartImpl().

bool CvsServicePartImpl::prepareOperation const KURL::List someUrls,
CvsOperation  op
[private]
 

Call this every time a slot for cvs operations starts!! (It will setup the state (file/dir URL, ...).

It will also display proper error messages so the caller must only exit if it fails (return false); if return true than basic requisites for cvs operation are satisfied.

Returns:
true and the valid URLs paths in m_fileList if the operation can be performed, false otherwise.

Definition at line 109 of file cvspartimpl.cpp.

References URLUtil::dump(), kdDebug(), m_cvsService, m_lastOperation, m_part, m_repository, m_urlList, m_widget, KDevPlugin::project(), projectDirectory(), KMessageBox::sorry(), validateURLs(), and KMessageBox::warningYesNo().

Referenced by add(), commit(), diff(), log(), remove(), removeStickyFlag(), tag(), unTag(), and update().

CvsProcessWidget * CvsServicePartImpl::processWidget  )  const
 

Returns:
a reference to the process widget: many worker methods display their output in it and the CvsServicePart will embed it in the bottom embedded view.

Definition at line 304 of file cvspartimpl.cpp.

Referenced by add(), checkout(), commit(), diff(), flushJobs(), CvsServicePart::init(), remove(), removeStickyFlag(), requestCvsService(), slotDiffFinished(), tag(), unTag(), update(), and ~CvsServicePartImpl().

QString CvsServicePartImpl::projectDirectory  )  const [private]
 

Definition at line 318 of file cvspartimpl.cpp.

References m_part, KDevPlugin::project(), and KDevProject::projectDirectory().

Referenced by addToIgnoreList(), commit(), fileList(), log(), prepareOperation(), removeFromIgnoreList(), and slotProjectOpened().

void CvsServicePartImpl::releaseCvsService  )  [private]
 

De-initialize and release CvsService.

Definition at line 709 of file cvspartimpl.cpp.

References m_cvsService, and m_repository.

Referenced by ~CvsServicePartImpl().

void CvsServicePartImpl::remove const KURL::List urlList  )  [virtual]
 

Remove the specified files (as KURL) from repository.

Parameters:
urlList 

Definition at line 480 of file cvspartimpl.cpp.

References doneOperation(), fileList(), kdDebug(), m_cvsService, m_scheduler, opRemove, prepareOperation(), processWidget(), JobScheduler::schedule(), and slotJobFinished().

Referenced by removedFilesFromProject(), CvsServicePart::slotActionRemove(), and CvsServicePart::slotRemove().

void CvsServicePartImpl::removedFilesFromProject const QStringList filesToRemove  )  [private]
 

Implementation for requesting user input when files are removed from project.

Definition at line 754 of file cvspartimpl.cpp.

References checkFileListAgainstCVS(), URLUtil::dump(), kdDebug(), KMessageBox::questionYesNo(), and remove().

Referenced by CvsServicePart::slotRemovedFilesFromProject().

void CvsServicePartImpl::removeFromIgnoreList const QString projectDirectory,
const KURL::List urls
[static, private]
 

Remove files from their respective .ignore files.

As specified for

See also:
addToIgnoreList function, this means that, for example, if you remove '/home/mario/src/myprj/mylib/module1/bad.cpp' then a search for the string 'bad.cpp' will be performed on file '/home/mario/src/myprj/mylib/module1/.cvsignore': if found, it will be removed, otherwise nothing will be removed.
Parameters:
projectDirectory 
urls list of urls to be removed from the check list.

Definition at line 285 of file cvspartimpl.cpp.

References removeFromIgnoreList().

void CvsServicePartImpl::removeFromIgnoreList const QString projectDirectory,
const KURL url
[static, private]
 

Remove file from it's respective .ignore files.

As specified for

See also:
addToIgnoreList function, this means that, for example, if you remove '/home/mario/src/myprj/mylib/module1/bad.cpp' then a search for the string 'bad.cpp' will be performed on file '/home/mario/src/myprj/mylib/module1/.cvsignore': if found, it will be removed, otherwise nothing will be removed.
Parameters:
projectDirectory 
url url to be removed from the check list.

Definition at line 275 of file cvspartimpl.cpp.

References KURL::directory(), KURL::fileName(), and kdDebug().

void CvsServicePartImpl::removeFromIgnoreList const KURL::List urlList  )  [virtual]
 

Commit the specified files (as KURL) to repository.

Parameters:
urlList 

Definition at line 624 of file cvspartimpl.cpp.

References projectDirectory().

Referenced by removeFromIgnoreList(), CvsServicePart::slotActionRemoveFromIgnoreList(), and CvsServicePart::slotRemoveFromIgnoreList().

void CvsServicePartImpl::removeStickyFlag const KURL::List urlList  )  [virtual]
 

Remove tag from the specified files (as KURL) in repository.

Parameters:
urlList 

Definition at line 498 of file cvspartimpl.cpp.

References CvsOptions::createDirsWhenUpdate(), doneOperation(), fileList(), CvsOptions::instance(), kdDebug(), m_cvsService, m_scheduler, opUpdate, prepareOperation(), processWidget(), CvsOptions::pruneEmptyDirsWhenUpdate(), CvsOptions::recursiveWhenUpdate(), JobScheduler::schedule(), and slotJobFinished().

Referenced by CvsServicePart::slotActionRemoveSticky(), and CvsServicePart::slotRemoveSticky().

bool CvsServicePartImpl::requestCvsService  )  [private]
 

Locate and setup DCOP CvsService.

Definition at line 683 of file cvspartimpl.cpp.

References KMessageBox::error(), m_cvsService, m_repository, processWidget(), and KApplication::startServiceByDesktopName().

Referenced by CvsServicePartImpl().

void CvsServicePartImpl::slotCheckoutFinished bool  normalExit,
int  exitStatus
[private, slot]
 

Definition at line 864 of file cvspartimpl.cpp.

References checkoutFinished(), kdDebug(), and modulePath.

Referenced by checkout().

void CvsServicePartImpl::slotDiffFinished bool  normalExit,
int  exitStatus
[private, slot]
 

Definition at line 810 of file cvspartimpl.cpp.

References core(), KMessageBox::detailedError(), diff(), diffFrontend(), CvsProcessWidget::errors(), KMessageBox::information(), kdDebug(), m_part, CvsProcessWidget::output(), processWidget(), KDevCore::running(), KDevDiffFrontend::showDiff(), and KMessageBox::warningContinueCancelList().

Referenced by diff().

void CvsServicePartImpl::slotJobFinished bool  normalExit,
int  exitStatus
[private, slot]
 

Definition at line 879 of file cvspartimpl.cpp.

References kdDebug().

Referenced by add(), commit(), remove(), removeStickyFlag(), tag(), unTag(), and update().

void CvsServicePartImpl::slotProjectOpened  )  [private, slot]
 

Definition at line 896 of file cvspartimpl.cpp.

References kdDebug(), m_repository, and projectDirectory().

Referenced by CvsServicePartImpl().

void CvsServicePartImpl::tag const KURL::List urlList  )  [virtual]
 

Tag the specified files (as KURL) with a release or branch tag.

Parameters:
urlList 

Definition at line 569 of file cvspartimpl.cpp.

References doneOperation(), fileList(), TagDialog::force(), TagDialog::isBranch(), kdDebug(), m_cvsService, m_scheduler, main(), mainWindow(), opTag, prepareOperation(), processWidget(), JobScheduler::schedule(), slotJobFinished(), and TagDialog::tagName().

Referenced by CvsServicePart::slotActionTag(), and CvsServicePart::slotTag().

void CvsServicePartImpl::unTag const KURL::List urlList  )  [virtual]
 

Remove tag from the specified files (as KURL) in repository.

Parameters:
urlList 

Definition at line 593 of file cvspartimpl.cpp.

References doneOperation(), fileList(), TagDialog::force(), TagDialog::isBranch(), kdDebug(), m_cvsService, m_scheduler, main(), mainWindow(), opUnTag, prepareOperation(), processWidget(), JobScheduler::schedule(), slotJobFinished(), and TagDialog::tagName().

Referenced by CvsServicePart::slotActionUnTag(), and CvsServicePart::slotUnTag().

void CvsServicePartImpl::update const KURL::List urlList  )  [virtual]
 

Update the specified files (as KURL): files will be updated if not locally modified.

Parameters:
urlList 

Definition at line 433 of file cvspartimpl.cpp.

References CvsOptions::createDirsWhenUpdate(), doneOperation(), fileList(), CvsOptions::instance(), ReleaseInputDialog::isRevert(), kdDebug(), m_cvsService, m_scheduler, main(), mainWindow(), opCommit, prepareOperation(), processWidget(), CvsOptions::pruneEmptyDirsWhenUpdate(), CvsOptions::recursiveWhenUpdate(), ReleaseInputDialog::release(), CvsOptions::revertOptions(), JobScheduler::schedule(), and slotJobFinished().

Referenced by CvsServicePart::slotActionUpdate(), and CvsServicePart::slotUpdate().

const KURL::List & CvsServicePartImpl::urlList  )  const [private]
 

Urls which to work upon.

Definition at line 173 of file cvspartimpl.cpp.

Referenced by fileList().

void CvsServicePartImpl::validateURLs const QString projectDirectory,
KURL::List urls,
CvsOperation  op
[static, private]
 

Ideally this function will take a bunch of URLs and validate them (they are valid files, are files registered in CVS, are on a supported filesystem, ...).

Currently checks only for files belonging to the repository ;)

Parameters:
projectDirectory 
urls list of KURL to check (the list can be modified during the operation)
op type of cvs operation, as pecified in
See also:
CvsOperation enum

Definition at line 220 of file cvspartimpl.cpp.

References isRegisteredInRepository(), and kdDebug().

Referenced by prepareOperation().

void CvsServicePartImpl::warning const QString msg  )  [signal]
 


Friends And Related Function Documentation

friend class CvsServicePart [friend]
 

Definition at line 48 of file cvspartimpl.h.


Member Data Documentation

const QString CvsServicePartImpl::changeLogFileName [static, private]
 

Changelog filename (currently "CHANGELOG" ).

const QString CvsServicePartImpl::changeLogPrependString [static, private]
 

Four spaces for every log line (except the first which includes the developers name).

Referenced by commit().

CvsService_stub* CvsServicePartImpl::m_cvsService [private]
 

Definition at line 303 of file cvspartimpl.h.

Referenced by add(), checkout(), commit(), CvsServicePartImpl(), diff(), log(), login(), logout(), prepareOperation(), releaseCvsService(), remove(), removeStickyFlag(), requestCvsService(), tag(), unTag(), and update().

CVSFileInfoProvider* CvsServicePartImpl::m_fileInfoProvider [private]
 

Definition at line 309 of file cvspartimpl.h.

Referenced by CvsServicePartImpl().

CvsOperation CvsServicePartImpl::m_lastOperation [private]
 

Definition at line 332 of file cvspartimpl.h.

Referenced by prepareOperation().

CvsServicePart* CvsServicePartImpl::m_part [private]
 

Reference to owner part.

Definition at line 312 of file cvspartimpl.h.

Referenced by checkFileListAgainstCVS(), core(), createNewProject(), diffFrontend(), mainWindow(), prepareOperation(), projectDirectory(), and slotDiffFinished().

Repository_stub* CvsServicePartImpl::m_repository [private]
 

Definition at line 304 of file cvspartimpl.h.

Referenced by prepareOperation(), releaseCvsService(), requestCvsService(), and slotProjectOpened().

JobScheduler* CvsServicePartImpl::m_scheduler [private]
 

Definition at line 310 of file cvspartimpl.h.

Referenced by add(), checkout(), commit(), CvsServicePartImpl(), diff(), login(), logout(), remove(), removeStickyFlag(), tag(), unTag(), and update().

KURL::List CvsServicePartImpl::m_urlList [private]
 

Definition at line 331 of file cvspartimpl.h.

Referenced by prepareOperation().

QGuardedPtr<CvsProcessWidget> CvsServicePartImpl::m_widget [private]
 

Reference to widget integrated in the "bottom tabbar" (IDEAL) (_Must_ be initialized by derived class).

Definition at line 316 of file cvspartimpl.h.

Referenced by CvsServicePartImpl(), CvsServicePart::init(), prepareOperation(), and ~CvsServicePartImpl().

QString CvsServicePartImpl::modulePath [private]
 

Used for storing module path between start and ending of check-out.

Definition at line 307 of file cvspartimpl.h.

Referenced by checkout(), and slotCheckoutFinished().


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:59 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003