• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • KDevelop Platform Libraries
  • Sitemap
  • Contact Us
 

project

ibuildsystemmanager.h

00001 /*  This file is part of KDevelop
00002     Copyright 2006 Matt Rogers <mattr@kde.org>
00003     Copyright 2006 Hamish Rodda <rodda@kde.org>
00004     Copyright 2007 Andreas Pakulat <apaku@gmx.de>
00005 
00006     This library is free software; you can redistribute it and/or
00007     modify it under the terms of the GNU Library General Public
00008     License as published by the Free Software Foundation; either
00009     version 2 of the License, or (at your option) any later version.
00010 
00011     This library is distributed in the hope that it will be useful,
00012     but WITHOUT ANY WARRANTY; without even the implied warranty of
00013     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014     Library General Public License for more details.
00015 
00016     You should have received a copy of the GNU Library General Public License
00017     along with this library; see the file COPYING.LIB.  If not, write to
00018     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00019     Boston, MA 02110-1301, USA.
00020 */
00021 
00022 #ifndef IBUILDSYSTEMMANAGER_H
00023 #define IBUILDSYSTEMMANAGER_H
00024 
00025 #include "iprojectfilemanager.h"
00026 #include "../projectexport.h"
00027 
00028 namespace KDevelop
00029 {
00030 
00031 class IProjectBuilder;
00032 typedef QList<ProjectFileItem*> FileItemList;
00033 class ProjectTargetItem;
00038 class KDEVPLATFORMPROJECT_EXPORT IBuildSystemManager : public IProjectFileManager
00039 {
00040 public:
00041 
00042     virtual ~IBuildSystemManager();
00043 
00044     enum BuildFeature
00045     {
00046         Includes ,
00047         Defines  
00048     };
00049     Q_DECLARE_FLAGS( BuildFeatures, BuildFeature )
00050 
00051     
00056     virtual IProjectBuilder* builder(ProjectFolderItem*) const = 0;
00057 
00061     virtual KUrl::List includeDirectories(ProjectBaseItem*) const = 0;
00062 
00067     virtual QHash<QString,QString> defines(ProjectBaseItem*) const = 0;
00068 
00073     virtual QHash<QString,QString> environment(ProjectBaseItem*) const = 0;
00074 
00081     virtual ProjectTargetItem* createTarget(const QString& target, ProjectFolderItem *parent) = 0;
00082 
00089     virtual bool removeTarget(ProjectTargetItem *target) = 0;
00090 
00100     virtual QList<ProjectTargetItem*> targets(ProjectFolderItem*) const = 0;
00101 
00108     virtual bool addFileToTarget(ProjectFileItem *file, ProjectTargetItem *parent) = 0;
00109 
00117     virtual bool removeFileFromTarget(ProjectFileItem *file, ProjectTargetItem *parent) = 0;
00118 
00122     virtual KUrl buildDirectory(ProjectBaseItem*) const = 0;
00123 };
00124 
00125 }
00126 
00127 Q_DECLARE_OPERATORS_FOR_FLAGS( KDevelop::IBuildSystemManager::BuildFeatures )
00128 
00129 KDEV_DECLARE_EXTENSION_INTERFACE_NS( KDevelop, IBuildSystemManager, "org.kdevelop.IBuildSystemManager" )
00130 Q_DECLARE_INTERFACE( KDevelop::IBuildSystemManager, "org.kdevelop.IBuildSystemManager" )
00131 
00132 #endif
00133 
00134 

project

Skip menu "project"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

KDevelop Platform Libraries

Skip menu "KDevelop Platform Libraries"
  • interfaces
  • language
  •   codegen
  •   duchain
  •   editor
  • outputview
  •     interfaces
  • project
  • shell
  • sublime
  • util
  • vcs
Generated for KDevelop Platform Libraries by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal