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:

QObject 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 void 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).


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 72 of file cvspartimpl.cpp.

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

Referenced by CvsServicePartImpl().

CvsServicePartImpl::~CvsServicePartImpl  )  [virtual]
 

Destructor.

Definition at line 93 of file cvspartimpl.cpp.

References m_scheduler, 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 455 of file cvspartimpl.cpp.

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

Referenced by add(), 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 713 of file cvspartimpl.cpp.

References add(), addFilesToProject(), checkFileListAgainstCVS(), URLUtil::dump(), endl(), kdDebug(), and List.

Referenced by addFilesToProject(), and 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 264 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 250 of file cvspartimpl.cpp.

References addToIgnoreList(), KURL::directory(), endl(), KURL::fileName(), CVSDir::ignoreFile(), 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 609 of file cvspartimpl.cpp.

References addToIgnoreList(), and 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 764 of file cvspartimpl.cpp.

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

Referenced by addFilesToProject(), checkFileListAgainstCVS(), and removedFilesFromProject().

void CvsServicePartImpl::checkout  )  [virtual]
 

Do checkout of module from some remote directory.

Requested data will be collected here.

Definition at line 356 of file cvspartimpl.cpp.

References endl(), kdDebug(), m_cvsService, m_scheduler, main(), mainWindow(), CheckoutDialog::module(), modulePath, processWidget(), CheckoutDialog::pruneDirs(), JobScheduler::schedule(), CheckoutDialog::serverPath(), slotCheckoutFinished(), 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 383 of file cvspartimpl.cpp.

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

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

KDevCore * CvsServicePartImpl::core  )  const [private]
 

Definition at line 324 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 627 of file cvspartimpl.cpp.

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

Referenced by createNewProject(), and 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 531 of file cvspartimpl.cpp.

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

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

KDevDiffFrontend * CvsServicePartImpl::diffFrontend  )  const [private]
 

Definition at line 331 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 163 of file cvspartimpl.cpp.

References doneOperation(), endl(), and kdDebug().

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

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

Definition at line 780 of file cvspartimpl.cpp.

References emitFileStateModified().

Referenced by emitFileStateModified().

KDevVCSFileInfoProvider * CvsServicePartImpl::fileInfoProvider  )  const
 

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

Definition at line 786 of file cvspartimpl.cpp.

References m_fileInfoProvider.

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 179 of file cvspartimpl.cpp.

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

Referenced by add(), commit(), diff(), fileList(), 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 706 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 189 of file cvspartimpl.cpp.

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

Referenced by isRegisteredInRepository(), and 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 294 of file cvspartimpl.cpp.

References CVSDir::isValid(), and isValidDirectory().

Referenced by checkFileListAgainstCVS(), isValidDirectory(), 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 514 of file cvspartimpl.cpp.

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

Referenced by log(), 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 338 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 347 of file cvspartimpl.cpp.

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

Referenced by CvsServicePart::slotActionLogout().

KDevMainWindow * CvsServicePartImpl::mainWindow  )  const [private]
 

Definition at line 310 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 108 of file cvspartimpl.cpp.

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

Referenced by add(), commit(), diff(), log(), prepareOperation(), 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 303 of file cvspartimpl.cpp.

References m_widget.

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 317 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 694 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 472 of file cvspartimpl.cpp.

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

Referenced by remove(), 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 739 of file cvspartimpl.cpp.

References checkFileListAgainstCVS(), URLUtil::dump(), endl(), kdDebug(), List, remove(), and removedFilesFromProject().

Referenced by removedFilesFromProject(), and 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 284 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 274 of file cvspartimpl.cpp.

References KURL::directory(), CVSDir::doNotIgnoreFile(), endl(), KURL::fileName(), kdDebug(), and removeFromIgnoreList().

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

Commit the specified files (as KURL) to repository.

Parameters:
urlList 

Definition at line 616 of file cvspartimpl.cpp.

References projectDirectory(), and removeFromIgnoreList().

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 490 of file cvspartimpl.cpp.

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

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

bool CvsServicePartImpl::requestCvsService  )  [private]
 

Locate and setup DCOP CvsService.

Definition at line 668 of file cvspartimpl.cpp.

References m_cvsService, m_repository, and processWidget().

Referenced by CvsServicePartImpl().

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

Definition at line 849 of file cvspartimpl.cpp.

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

Referenced by checkout(), and slotCheckoutFinished().

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

Definition at line 795 of file cvspartimpl.cpp.

References core(), diff(), diffFrontend(), endl(), CvsProcessWidget::errors(), kdDebug(), m_part, CvsProcessWidget::output(), processWidget(), KDevCore::running(), KDevDiffFrontend::showDiff(), and slotDiffFinished().

Referenced by diff(), and slotDiffFinished().

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

Definition at line 864 of file cvspartimpl.cpp.

References endl(), kdDebug(), and slotJobFinished().

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

void CvsServicePartImpl::slotProjectOpened  )  [private, slot]
 

Definition at line 881 of file cvspartimpl.cpp.

References endl(), 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 561 of file cvspartimpl.cpp.

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

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

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

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

Parameters:
urlList 

Definition at line 585 of file cvspartimpl.cpp.

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

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

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 425 of file cvspartimpl.cpp.

References CvsOptions::createDirsWhenUpdate(), doneOperation(), endl(), 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(), slotJobFinished(), and update().

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

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

Urls which to work upon.

Definition at line 172 of file cvspartimpl.cpp.

References m_urlList.

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 219 of file cvspartimpl.cpp.

References endl(), isRegisteredInRepository(), kdDebug(), opAdd, and validateURLs().

Referenced by prepareOperation(), and validateURLs().

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


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 302 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 308 of file cvspartimpl.h.

Referenced by CvsServicePartImpl(), and fileInfoProvider().

CvsOperation CvsServicePartImpl::m_lastOperation [private]
 

Definition at line 331 of file cvspartimpl.h.

Referenced by prepareOperation().

CvsServicePart* CvsServicePartImpl::m_part [private]
 

Reference to owner part.

Definition at line 311 of file cvspartimpl.h.

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

Repository_stub* CvsServicePartImpl::m_repository [private]
 

Definition at line 303 of file cvspartimpl.h.

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

JobScheduler* CvsServicePartImpl::m_scheduler [private]
 

Definition at line 309 of file cvspartimpl.h.

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

KURL::List CvsServicePartImpl::m_urlList [private]
 

Definition at line 330 of file cvspartimpl.h.

Referenced by prepareOperation(), and urlList().

QGuardedPtr<CvsProcessWidget> CvsServicePartImpl::m_widget [private]
 

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

Definition at line 315 of file cvspartimpl.h.

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

QString CvsServicePartImpl::modulePath [private]
 

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

Definition at line 306 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.0.4.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Oct 19 08:02:01 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003