• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdevelop API Reference
  • KDE Home
  • Contact Us
 

kdevelop/kdevplatform/project

  • KDevelop
  • IProjectBuilder
Signals | Public Member Functions | List of all members
KDevelop::IProjectBuilder Class Referenceabstract

#include <iprojectbuilder.h>

Signals

void built (ProjectBaseItem *dom)
 
void cleaned (ProjectBaseItem *)
 
void configured (IProject *)
 
void failed (ProjectBaseItem *dom)
 
void installed (ProjectBaseItem *)
 
void pruned (IProject *)
 

Public Member Functions

virtual ~IProjectBuilder ()
 
virtual QList< IProjectBuilder * > additionalBuilderPlugins (IProject *project) const
 
virtual KJob * build (ProjectBaseItem *item)=0
 
virtual KJob * clean (ProjectBaseItem *item)=0
 
virtual KJob * configure (IProject *project)
 
virtual KJob * install (ProjectBaseItem *item, const QUrl &specificPrefix={})=0
 
virtual KJob * prune (IProject *project)
 

Detailed Description

IProjectBuilder Base class for the Project Builders.

Author
Roberto Raggi

Provides an interface that will bre useful to perform tasks upon projects, inspired on the unix-style way to build projects:

configure -> make -> make install

It will provide a job for each of the tasks and a signal to make sure it completed successfully.

Definition at line 48 of file iprojectbuilder.h.

Constructor & Destructor Documentation

KDevelop::IProjectBuilder::~IProjectBuilder ( )
virtual

Definition at line 24 of file iprojectbuilder.cpp.

Member Function Documentation

QList< IProjectBuilder * > KDevelop::IProjectBuilder::additionalBuilderPlugins ( IProject *  project) const
virtual

Provide access to the builders related to the project.

The list returned by this method is used to select the appropriate config pages for a project. This method may safely return an empty list, as does the default implementation.

Definition at line 39 of file iprojectbuilder.cpp.

virtual KJob* KDevelop::IProjectBuilder::build ( ProjectBaseItem *  item)
pure virtual

Builds the given project item, exact behaviour depends on the implementation.

void KDevelop::IProjectBuilder::built ( ProjectBaseItem *  dom)
signal

Emitted when the build for the given item was finished.

virtual KJob* KDevelop::IProjectBuilder::clean ( ProjectBaseItem *  item)
pure virtual

Cleans the given project item, exact behaviour depends on the implementation.

The cleaning should only include output files, like C/C++ object files, binaries, files that the builder needs shouldn't be removed.

void KDevelop::IProjectBuilder::cleaned ( ProjectBaseItem *  )
signal

Emitted when the clean for the given item was finished.

KJob * KDevelop::IProjectBuilder::configure ( IProject *  project)
virtual

Configures the given project, exact behaviour depends on the implementation.

After calling this a build() call should succeed (given the code doesn't have errors).

This function is optional, the default implementation does nothing.

Definition at line 29 of file iprojectbuilder.cpp.

void KDevelop::IProjectBuilder::configured ( IProject *  )
signal

Emitted when the configure for the given item was finished.

void KDevelop::IProjectBuilder::failed ( ProjectBaseItem *  dom)
signal

Emitted when any of the scheduled actions for the given item was failed.

virtual KJob* KDevelop::IProjectBuilder::install ( ProjectBaseItem *  item,
const QUrl &  specificPrefix = {} 
)
pure virtual

Installs the given project item, exact behaviour depends on the implementation.

Parameters
specificPrefixdefines where the project will be installed.
void KDevelop::IProjectBuilder::installed ( ProjectBaseItem *  )
signal

Emitted when the install for the given item was finished.

KJob * KDevelop::IProjectBuilder::prune ( IProject *  project)
virtual

Prunes the given project, exact behaviour depends on the implementation.

Additionally to what clean() does this may also remove files used for the builder (or a "subbuilder"), for example generated Makefiles in QMake/CMake/Automake projects

This function is optional, the default implementation does nothing.

Definition at line 34 of file iprojectbuilder.cpp.

void KDevelop::IProjectBuilder::pruned ( IProject *  )
signal

Emitted when the pruning for the given item was finished.


The documentation for this class was generated from the following files:
  • iprojectbuilder.h
  • iprojectbuilder.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2019 The KDE developers.
Generated on Sat Dec 7 2019 04:28:58 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kdevelop/kdevplatform/project

Skip menu "kdevelop/kdevplatform/project"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdevelop API Reference

Skip menu "kdevelop API Reference"
  •   kdevplatform
  •     debugger
  •     documentation
  •     interfaces
  •     language
  •       assistant
  •       backgroundparser
  •       checks
  •       classmodel
  •       codecompletion
  •       codegen
  •       duchain
  •       editor
  •       highlighting
  •       interfaces
  •       util
  •     outputview
  •     project
  •     serialization
  •     shell
  •     sublime
  •     tests
  •     util
  •     vcs

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal