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

interfaces

irun.cpp

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 #include "irun.h"
00021 
00022 #include <QStringList>
00023 
00024 #include <limits.h>
00025 
00026 using namespace KDevelop;
00027 
00028 class IRun::IRunPrivate : public QSharedData
00029 {
00030     public:
00031         KUrl executable, workingDirectory;
00032         QString instrumentor, environmentKey;
00033         QStringList arguments, instrumentorArguments;
00034 };
00035 
00036 IRun::IRun()
00037     : d(new IRunPrivate)
00038 {
00039 }
00040 
00041 void IRun::setExecutable(const QString & executable)
00042 {
00043     d->executable = executable;
00044 }
00045 
00046 KUrl IRun::executable() const
00047 {
00048     return d->executable;
00049 }
00050 
00051 void IRun::setInstrumentor(const QString & instrumentor)
00052 {
00053     d->instrumentor = instrumentor;
00054 }
00055 
00056 QString IRun::instrumentor() const
00057 {
00058     return d->instrumentor;
00059 }
00060 
00061 void IRun::clearArguments()
00062 {
00063     d->arguments.clear();
00064 }
00065 
00066 void IRun::setArguments(const QStringList & arguments)
00067 {
00068     d->arguments = arguments;
00069 }
00070 
00071 void IRun::addArgument(const QString & argument)
00072 {
00073     d->arguments << argument;
00074 }
00075 
00076 QStringList IRun::arguments() const
00077 {
00078     return d->arguments;
00079 }
00080 
00081 void IRun::setEnvironmentKey(const QString& environmentKey)
00082 {
00083     d->environmentKey = environmentKey;
00084 }
00085 
00086 QString IRun::environmentKey() const
00087 {
00088     return d->environmentKey;
00089 }
00090 
00091 IRun::IRun(const IRun & rhs)
00092     : d(rhs.d)
00093 {
00094 }
00095 
00096 IRun & IRun::operator =(const IRun & rhs)
00097 {
00098     d.operator=(rhs.d);
00099     return *this;
00100 }
00101 
00102 IRun::~ IRun()
00103 {
00104 }
00105 
00106 KUrl IRun::workingDirectory() const
00107 {
00108     return d->workingDirectory;
00109 }
00110 
00111 void IRun::setWorkingDirectory(const QString & workingDirectory)
00112 {
00113     d->workingDirectory = workingDirectory;
00114 }
00115 
00116 QStringList IRun::instrumentorArguments() const
00117 {
00118     return d->instrumentorArguments;
00119 }
00120 
00121 void IRun::addInstrumentorArgument(const QString & argument)
00122 {
00123     d->instrumentorArguments.append(argument);
00124 }
00125 
00126 void IRun::setInstrumentorArguments(const QStringList & arguments)
00127 {
00128     d->instrumentorArguments = arguments;
00129 }
00130 
00131 void IRun::clearInstrumentorArguments()
00132 {
00133     d->instrumentorArguments.clear();
00134 }
00135 
00136 #include "irun.moc"

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
  •   duchain
  •   editor
  • outputview
  • 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