KDevelop API Documentation

cvsentry.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 CVSENTRY_H
00013 #define CVSENTRY_H
00014 
00015 #include <qstringlist.h>
00016 #include <kdevvcsfileinfoprovider.h>
00017 
00018 class CVSEntry
00019 {
00020 public:
00021     enum  EntryType { invalidEntry, fileEntry, directoryEntry };
00022 
00023     static const QString invalidMarker;
00024     static const QString directoryMarker;
00025     static const QString fileMarker;
00026     static const QString entrySeparator;
00027 
00028     static void parse( const QString &aLine, CVSEntry &entry );
00029 
00030     CVSEntry();
00031     CVSEntry( const QString &aLine );
00032 
00033     void clean();
00034     VCSFileInfo toVCSFileInfo() const;
00035     bool isValid() const { return type() != invalidEntry; }
00036     bool isDirectory() const { return type() == directoryEntry; }
00037 
00038     EntryType type() const;
00039     QString fileName() const;
00040     QString revision() const;
00041     QString timeStamp() const;
00042     QString options() const;
00043     QString tag() const;
00044 
00045 private:
00046     EntryType m_type;
00047     QStringList m_fields;
00048 };
00049 
00050 #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 Tue Feb 22 09:22:43 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003