KDevelop API Documentation

kdevapi.h

Go to the documentation of this file.
00001 /* This file is part of the KDE project
00002    Copyright (C) 2000-2001 Bernd Gehrmann <bernd@kdevelop.org>
00003 
00004    This library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Library General Public
00006    License as published by the Free Software Foundation; either
00007    version 2 of the License, or (at your option) any later version.
00008 
00009    This library is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012    Library General Public License for more details.
00013 
00014    You should have received a copy of the GNU Library General Public License
00015    along with this library; see the file COPYING.LIB.  If not, write to
00016    the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00017    Boston, MA 02111-1307, USA.
00018 */
00019 
00020 #ifndef _KDEVAPI_H_
00021 #define _KDEVAPI_H_
00022 
00023 #include <qobject.h>
00024 
00025 class QStringList;
00026 class QDomDocument;
00027 class KDevCore;
00028 class KDevProject;
00029 class KDevVersionControl;
00030 class KDevLanguageSupport;
00031 class KDevMakeFrontend;
00032 class KDevAppFrontend;
00033 class CodeModel;
00034 class KDevPartController;
00035 class KDevMainWindow;
00036 class KDevDebugger;
00037 class KDevDiffFrontend;
00038 class KDevCreateFile;
00039 class KDevSourceFormatter;
00040 class KDevCodeRepository;
00041 
00042 class KDevApiPrivate;
00043 
00047 class KDevApi : public QObject
00048 {
00049     Q_OBJECT
00050 public:
00054     KDevApi();
00055 
00059     virtual ~KDevApi();
00060 
00065     virtual KDevMainWindow *mainWindow() const = 0;
00066 
00070     virtual bool mainWindowValid() const = 0;
00071 
00077     virtual KDevPartController *partController() const = 0;
00078 
00083     virtual KDevCore *core() const = 0;
00084 
00088     virtual CodeModel *codeModel() const = 0;
00089 
00093     virtual KDevDebugger *debugger() const = 0;
00094 
00099     QDomDocument *projectDom() const;
00104     void setProjectDom(QDomDocument *dom);
00105 
00110     KDevProject *project() const;
00115     void setProject(KDevProject *project);
00116 
00122     KDevMakeFrontend *makeFrontend() const;
00127     void setMakeFrontend(KDevMakeFrontend *makeFrontend);
00128 
00134     KDevAppFrontend *appFrontend() const;
00139     void setAppFrontend(KDevAppFrontend *appFrontend);
00140 
00144     KDevLanguageSupport *languageSupport() const;
00149     void setLanguageSupport(KDevLanguageSupport *languageSupport);
00150 
00155     KDevVersionControl *versionControl() const;
00160     void setVersionControl( KDevVersionControl *vcs );
00161 
00167     void registerVersionControl( KDevVersionControl *vcs );
00173     void unregisterVersionControl( KDevVersionControl *vcs );
00178     QStringList registeredVersionControls() const;
00185     KDevVersionControl *versionControlByName( const QString &uid ) const;
00186 
00193     KDevDiffFrontend *diffFrontend() const;
00198     void setDiffFrontend( KDevDiffFrontend *diffFrontend );
00199 
00206     KDevCreateFile *createFile() const;
00211     void setCreateFile( KDevCreateFile *createFile );
00212 
00218     KDevSourceFormatter *sourceFormatter() const;
00223     void setSourceFormatter(KDevSourceFormatter *sourceFormatter);
00224 
00229     KDevCodeRepository *codeRepository() const;
00230 
00231 private:
00232     KDevApiPrivate *d;
00233 };
00234 
00235 #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:52 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003