KDevelop API Documentation

cvsdir.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 CVSDIR_H
00013 #define CVSDIR_H
00014 
00015 #include <qdir.h>
00016 #include <qstringlist.h>
00017 #include <qmap.h>
00018 
00019 #include "cvsentry.h"
00020 
00026 class CVSDir : public QDir
00027 {
00028 public:
00029     CVSDir();
00030     CVSDir( const QDir &dir );
00031     explicit CVSDir( const CVSDir & );
00032     CVSDir &operator=( const CVSDir & );
00033     virtual ~CVSDir();
00034 
00039     bool isValid() const;
00043     QStringList registeredEntryList() const;
00049     CVSEntry fileStatus( const QString &fileName, bool refreshCache = false ) const;
00052     VCSFileInfoMap dirStatus() const;
00053     VCSFileInfoMap *cacheableDirStatus() const;
00057     bool isRegistered( const QString fileName ) const;
00062     void ignoreFile( const QString &fileName );
00067     void doNotIgnoreFile( const QString &fileName );
00071     QString repository() const;
00075     QString root() const;
00079     QString entriesFileName() const;
00083     QString rootFileName() const;
00087     QString repoFileName() const;
00091     QString cvsIgnoreFileName() const;
00092 
00093 private:
00094     void refreshEntriesCache() const;
00095     static QByteArray cacheFile( const QString &fileName );
00096 
00097     QString m_cvsDir;
00098 
00099     typedef QMap<QString,CVSEntry> CVSEntriesCacheMap;
00100     mutable CVSEntriesCacheMap m_cachedEntries;
00101 };
00102 
00103 #endif
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:03:59 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003