kdevversioncontrol.h
Go to the documentation of this file.00001 /* This file is part of the KDE project 00002 Copyright (C) 2001 Matthias Hoelzer-Kluepfel <hoelzer@kde.org> 00003 Copyright (C) 2002-2003 Roberto Raggi <roberto@kdevelop.org> 00004 Copyright (C) 2002 Simon Hausmann <hausmann@kde.org> 00005 Copyright (C) 2003 Mario Scalas <mario.scalas@libero.it> 00006 00007 This library is free software; you can redistribute it and/or 00008 modify it under the terms of the GNU Library General Public 00009 License as published by the Free Software Foundation; either 00010 version 2 of the License, or (at your option) any later version. 00011 00012 This library is distributed in the hope that it will be useful, 00013 but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 Library General Public License for more details. 00016 00017 You should have received a copy of the GNU Library General Public License 00018 along with this library; see the file COPYING.LIB. If not, write to 00019 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 00020 Boston, MA 02111-1307, USA. 00021 */ 00022 00023 #ifndef _KDEVVERSIONCONTROL_H_ 00024 #define _KDEVVERSIONCONTROL_H_ 00025 00026 #include <qobject.h> 00027 #include <qstring.h> 00028 #include <qwidget.h> 00029 #include <qmap.h> 00030 #include <qvaluelist.h> 00031 00032 #include "kdevplugin.h" 00033 #include "kdevvcsfileinfoprovider.h" 00034 00039 class KDevVersionControl : public KDevPlugin 00040 { 00041 Q_OBJECT 00042 00043 public: 00051 KDevVersionControl( const QString& pluginName, const QString& icon, QObject *parent, const char *name ); 00052 00056 virtual ~KDevVersionControl(); 00057 00061 virtual QWidget* newProjectWidget( QWidget */*parent*/ ); 00062 00066 virtual void createNewProject( const QString&/* dir*/ ); 00067 00071 virtual bool fetchFromRepository(); 00072 00076 virtual KDevVCSFileInfoProvider *fileInfoProvider() const; 00077 00085 virtual bool isValidDirectory( const QString &dirPath ) const; 00086 00091 QString uid() const; 00092 00096 void registerVersionControl( KDevVersionControl *vcs ); 00097 00102 void setVersionControl( KDevVersionControl *vcsToUse ); 00103 00107 KDevVersionControl *versionControlByName( const QString &uid ) const; 00108 00112 QStringList registeredVersionControls() const; 00113 00117 void unregisterVersionControl( KDevVersionControl *vcs ); 00118 00119 00120 signals: 00126 void finishedFetching( QString destinationDir ); 00127 00128 private: 00129 //@fixme - This is the same pointer as in the KDevPlugin baseclass, it is duplicated here 00130 // to maintain the encapsulation without redesigning the whole thing... // teatime 00131 class KDevApi * m_api; 00132 00133 }; 00134 00135 #endif