KDevelop API Documentation

CVSFileInfoProvider Class Reference

Provider for CVS file information. More...

#include <cvsfileinfoprovider.h>

Inheritance diagram for CVSFileInfoProvider:

Inheritance graph
[legend]
Collaboration diagram for CVSFileInfoProvider:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CVSFileInfoProvider (CvsServicePart *parent, CvsService_stub *cvsService)
virtual ~CVSFileInfoProvider ()
virtual const VCSFileInfoMapstatus (const QString &dirPath) const
 Sync interface Status for the local files in the specified directory: the info are collected locally so they are necessarly in sync with the repository
virtual bool requestStatus (const QString &dirPath, void *callerData)
 Async interface for requesting data Start a request for directory status to the remote repository.

Private Member Functions

virtual void slotJobExited (bool normalExit, int exitStatus)
virtual void slotReceivedOutput (QString someOutput)
virtual void slotReceivedErrors (QString someErrors)
QString projectDirectory () const

Static Private Member Functions

VCSFileInfoMapparse (QStringList stringStream)
VCSFileInfo::FileState String2EnumState (QString stateAsString)
void printOutFileInfoMap (const VCSFileInfoMap &map)

Private Attributes

BufferedStringReader m_bufferedReader
QStringList m_statusLines
void * m_savedCallerData
CvsJob_stub * m_requestStatusJob
CvsService_stub * m_cvsService
QString m_previousDirPath
 Caching.
VCSFileInfoMapm_cachedDirEntries

Detailed Description

Provider for CVS file information.

Author:
Mario Scalas

Definition at line 31 of file cvsfileinfoprovider.h.


Constructor & Destructor Documentation

CVSFileInfoProvider::CVSFileInfoProvider CvsServicePart parent,
CvsService_stub *  cvsService
 

Definition at line 33 of file cvsfileinfoprovider.cpp.

CVSFileInfoProvider::~CVSFileInfoProvider  )  [virtual]
 

Definition at line 41 of file cvsfileinfoprovider.cpp.

References m_requestStatusJob.


Member Function Documentation

VCSFileInfoMap * CVSFileInfoProvider::parse QStringList  stringStream  )  [static, private]
 

Definition at line 136 of file cvsfileinfoprovider.cpp.

References kdDebug(), String2EnumState(), VCSFileInfo::toString(), and VCSFileInfoMap.

Referenced by slotJobExited().

void CVSFileInfoProvider::printOutFileInfoMap const VCSFileInfoMap map  )  [static, private]
 

Definition at line 244 of file cvsfileinfoprovider.cpp.

References kdDebug(), VCSFileInfo::toString(), and VCSFileInfoMap.

Referenced by slotJobExited().

QString CVSFileInfoProvider::projectDirectory  )  const [private]
 

Definition at line 129 of file cvsfileinfoprovider.cpp.

References KDevVCSFileInfoProvider::owner(), KDevPlugin::project(), and KDevProject::projectDirectory().

Referenced by status().

bool CVSFileInfoProvider::requestStatus const QString dirPath,
void *  callerData
[virtual]
 

Async interface for requesting data Start a request for directory status to the remote repository.

Requests and answers are asynchronous for obvious reasons: the caller must connect the statusReady() signal and check for the return value of this method.

Parameters:
dirPath the (relative to project directory) directory which status you are asking for
callerData a pointer to some data you want the provider will return to you when it has done
Returns:
true if the request has been successfully started, false otherwise

Implements KDevVCSFileInfoProvider.

Definition at line 67 of file cvsfileinfoprovider.cpp.

References DCOPRef::app(), DCOPObject::connectDCOPSignal(), kdDebug(), m_cachedDirEntries, m_cvsService, m_previousDirPath, m_requestStatusJob, m_savedCallerData, and DCOPRef::obj().

void CVSFileInfoProvider::slotJobExited bool  normalExit,
int  exitStatus
[private, virtual]
 

Implements CVSServiceDCOPIface.

Definition at line 95 of file cvsfileinfoprovider.cpp.

References kdDebug(), m_cachedDirEntries, m_savedCallerData, m_statusLines, parse(), printOutFileInfoMap(), and KDevVCSFileInfoProvider::statusReady().

void CVSFileInfoProvider::slotReceivedErrors QString  someErrors  )  [private, virtual]
 

Implements CVSServiceDCOPIface.

Definition at line 122 of file cvsfileinfoprovider.cpp.

void CVSFileInfoProvider::slotReceivedOutput QString  someOutput  )  [private, virtual]
 

Implements CVSServiceDCOPIface.

Definition at line 111 of file cvsfileinfoprovider.cpp.

References m_bufferedReader, m_statusLines, and BufferedStringReader::process().

const VCSFileInfoMap * CVSFileInfoProvider::status const QString dirPath  )  const [virtual]
 

Sync interface Status for the local files in the specified directory: the info are collected locally so they are necessarly in sync with the repository

Parameters:
dirPath relative (to project dir) directory path to stat
Returns:
status for all registered files

Implements KDevVCSFileInfoProvider.

Definition at line 51 of file cvsfileinfoprovider.cpp.

References CVSDir::cacheableDirStatus(), m_cachedDirEntries, m_previousDirPath, projectDirectory(), and VCSFileInfoMap.

VCSFileInfo::FileState CVSFileInfoProvider::String2EnumState QString  stateAsString  )  [static, private]
 

Definition at line 220 of file cvsfileinfoprovider.cpp.

Referenced by parse().


Member Data Documentation

BufferedStringReader CVSFileInfoProvider::m_bufferedReader [private]
 

Definition at line 58 of file cvsfileinfoprovider.h.

Referenced by slotReceivedOutput().

VCSFileInfoMap* CVSFileInfoProvider::m_cachedDirEntries [mutable, private]
 

Definition at line 67 of file cvsfileinfoprovider.h.

Referenced by requestStatus(), slotJobExited(), and status().

CvsService_stub* CVSFileInfoProvider::m_cvsService [private]
 

Definition at line 63 of file cvsfileinfoprovider.h.

Referenced by requestStatus().

QString CVSFileInfoProvider::m_previousDirPath [mutable, private]
 

Caching.

Definition at line 66 of file cvsfileinfoprovider.h.

Referenced by requestStatus(), and status().

CvsJob_stub* CVSFileInfoProvider::m_requestStatusJob [mutable, private]
 

Definition at line 62 of file cvsfileinfoprovider.h.

Referenced by requestStatus(), and ~CVSFileInfoProvider().

void* CVSFileInfoProvider::m_savedCallerData [mutable, private]
 

Definition at line 61 of file cvsfileinfoprovider.h.

Referenced by requestStatus(), and slotJobExited().

QStringList CVSFileInfoProvider::m_statusLines [private]
 

Definition at line 59 of file cvsfileinfoprovider.h.

Referenced by slotJobExited(), and slotReceivedOutput().


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