KDevelop API Documentation

vcs/cvsservice/cvsfileinfoprovider.h

Go to the documentation of this file.
00001 /*************************************************************************** 00002 * Copyright (C) 2003 by Mario Scalas * 00003 * mario.scalas@libero.it * 00004 * * 00005 * This program is free software; you can redistribute it and/or modify * 00006 * it under the terms of the GNU General Public License as published by * 00007 * the Free Software Foundation; either version 2 of the License, or * 00008 * (at your option) any later version. * 00009 * * 00010 ***************************************************************************/ 00011 00012 #ifndef CVSFILEINFOPROVIDER_H 00013 #define CVSFILEINFOPROVIDER_H 00014 00015 #include <qmap.h> 00016 00017 #include <kdevvcsfileinfoprovider.h> 00018 #include "cvsservicedcopIface.h" 00019 #include "cvsdir.h" 00020 #include "bufferedstringreader.h" 00021 00022 class CvsServicePart; 00023 class CvsService_stub; 00024 class CvsJob_stub; 00025 00031 class CVSFileInfoProvider : public KDevVCSFileInfoProvider, virtual public CVSServiceDCOPIface 00032 { 00033 Q_OBJECT 00034 public: 00035 CVSFileInfoProvider( CvsServicePart *parent, CvsService_stub *cvsService ); 00036 virtual ~CVSFileInfoProvider(); 00037 00038 // -- Sync interface 00039 virtual const VCSFileInfoMap *status( const QString &dirPath ) const; 00040 00041 // -- Async interface for requesting data 00042 virtual bool requestStatus( const QString &dirPath, void *callerData ); 00043 00044 private: 00045 // DCOP Iface 00046 virtual void slotJobExited( bool normalExit, int exitStatus ); 00047 virtual void slotReceivedOutput( QString someOutput ); 00048 virtual void slotReceivedErrors( QString someErrors ); 00049 00050 QString projectDirectory() const; 00051 00052 static VCSFileInfoMap *parse( QStringList stringStream ); 00053 00054 static VCSFileInfo::FileState String2EnumState( QString stateAsString ); 00055 00056 static void printOutFileInfoMap( const VCSFileInfoMap &map ); 00057 00058 BufferedStringReader m_bufferedReader; 00059 QStringList m_statusLines; 00060 00061 mutable void *m_savedCallerData; 00062 mutable CvsJob_stub *m_requestStatusJob; 00063 CvsService_stub *m_cvsService; 00064 00066 mutable QString m_previousDirPath; 00067 mutable VCSFileInfoMap *m_cachedDirEntries; 00068 }; 00069 00070 #endif
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:01:53 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003