• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

Konsole

ShellCommand.h

Go to the documentation of this file.
00001 /*
00002     Copyright 2007-2008 by Robert Knight <robertknight@gmail.com>
00003 
00004     This program is free software; you can redistribute it and/or modify
00005     it under the terms of the GNU General Public License as published by
00006     the Free Software Foundation; either version 2 of the License, or
00007     (at your option) any later version.
00008 
00009     This program 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
00012     GNU General Public License for more details.
00013 
00014     You should have received a copy of the GNU General Public License
00015     along with this program; if not, write to the Free Software
00016     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00017     02110-1301  USA.
00018 */
00019 
00020 #ifndef SHELLCOMMAND_H
00021 #define SHELLCOMMAND_H
00022 
00023 // Qt
00024 #include <QtCore/QStringList>
00025 
00026 namespace Konsole
00027 {
00028 
00050 class ShellCommand
00051 {
00052 public:
00058     ShellCommand(const QString& fullCommand);
00062     ShellCommand(const QString& command , const QStringList& arguments);
00063 
00065     QString command() const;
00067     QStringList arguments() const;
00068 
00072     QString fullCommand() const;
00073 
00075     bool isRootCommand() const;
00077     bool isAvailable() const;
00078 
00080     static QString expand(const QString& text);
00081 
00083     static QStringList expand(const QStringList& items);
00084 
00085 private:
00086     QStringList _arguments;    
00087 };
00088 
00089 }
00090 
00091 #endif // SHELLCOMMAND_H
00092 

Konsole

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

API Reference

Skip menu "API Reference"
  • Konsole
  • Libraries
  •   libkonq
Generated for API Reference 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