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

interfaces

irunprovider.h

00001 /* This file is part of KDevelop
00002 Copyright 2007 Hamish Rodda <rodda@kde.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., 51 Franklin Street, Fifth Floor,
00017 Boston, MA 02110-1301, USA.
00018 */
00019 
00020 #ifndef IRUNPROVIDER_H
00021 #define IRUNPROVIDER_H
00022 
00023 #include "irun.h"
00024 
00025 #include "iextension.h"
00026 
00027 class KJob;
00028 
00029 namespace KDevelop
00030 {
00031 
00035 class KDEVPLATFORMINTERFACES_EXPORT IRunProvider
00036 {
00037 public:
00038     virtual ~IRunProvider();
00039 
00040     enum OutputTypes {
00041         StandardOutput ,
00042         StandardError  ,
00043         RunProvider    
00044     };
00045 
00049     virtual QStringList instrumentorsProvided() const = 0;
00050 
00054     virtual QString translatedInstrumentor(const QString& instrumentor) const = 0;
00055 
00059     virtual bool execute(const IRun& run, KJob* job) = 0;
00060 
00064     virtual void abort(KJob* job) = 0;
00065 
00066 Q_SIGNALS:
00070     void output(int serial, const QString& line, KDevelop::IRunProvider::OutputTypes type);
00071 };
00072 
00073 }
00074 
00075 KDEV_DECLARE_EXTENSION_INTERFACE_NS(KDevelop, IRunProvider, "org.kdevelop.IRunProvider")
00076 Q_DECLARE_INTERFACE(KDevelop::IRunProvider, "org.kdevelop.IRunProvider")
00077 Q_DECLARE_METATYPE(KDevelop::IRunProvider::OutputTypes)
00078 
00079 #endif

interfaces

Skip menu "interfaces"
  • Main Page
  • Namespace List
  • 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