KDevelop API Documentation

CVSFileInfoProvider Class Reference

Provider for CVS file information. More...

#include <cvsfileinfoprovider.h>

Inheritance diagram for CVSFileInfoProvider:

KDevVCSFileInfoProvider CVSServiceDCOPIface QObject DCOPObject 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.

References CVSFileInfoProvider().

Referenced by CVSFileInfoProvider().

CVSFileInfoProvider::~CVSFileInfoProvider  )  [virtual]
 

Definition at line 41 of file cvsfileinfoprovider.cpp.

References m_cachedDirEntries, and m_requestStatusJob.


Member Function Documentation

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

Definition at line 136 of file cvsfileinfoprovider.cpp.

References endl(), kdDebug(), parse(), String2EnumState(), and VCSFileInfo::toString().

Referenced by parse(), and slotJobExited().

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

Definition at line 244 of file cvsfileinfoprovider.cpp.

References endl(), kdDebug(), printOutFileInfoMap(), and VCSFileInfo::toString().

Referenced by printOutFileInfoMap(), and 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(), endl(), kdDebug(), m_cachedDirEntries, m_cvsService, m_previousDirPath, m_requestStatusJob, m_savedCallerData, DCOPRef::obj(), and requestStatus().

Referenced by requestStatus().

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

Implements CVSServiceDCOPIface.

Definition at line 95 of file cvsfileinfoprovider.cpp.

References endl(), kdDebug(), m_cachedDirEntries, m_savedCallerData, m_statusLines, parse(), printOutFileInfoMap(), and slotJobExited().

Referenced by slotJobExited().

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

Implements CVSServiceDCOPIface.

Definition at line 122 of file cvsfileinfoprovider.cpp.

References slotReceivedErrors().

Referenced by slotReceivedErrors().

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

Implements CVSServiceDCOPIface.

Definition at line 111 of file cvsfileinfoprovider.cpp.

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

Referenced by slotReceivedOutput().

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 status().

Referenced by status().

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

Definition at line 220 of file cvsfileinfoprovider.cpp.

References String2EnumState().

Referenced by parse(), and String2EnumState().


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(), status(), and ~CVSFileInfoProvider().

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.0.4.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Oct 6 17:39:22 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003