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

Konsole

  • kde-4.14
  • applications
  • konsole
  • src
ShellCommand.h
Go to the documentation of this file.
1 /*
2  Copyright 2007-2008 by Robert Knight <robertknight@gmail.com>
3 
4  This program is free software; you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation; either version 2 of the License, or
7  (at your option) any later version.
8 
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License
15  along with this program; if not, write to the Free Software
16  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17  02110-1301 USA.
18 */
19 
20 #ifndef SHELLCOMMAND_H
21 #define SHELLCOMMAND_H
22 
23 // Qt
24 #include <QtCore/QStringList>
25 
26 // Konsole
27 #include "konsole_export.h"
28 
29 namespace Konsole
30 {
52 class KONSOLEPRIVATE_EXPORT ShellCommand
53 {
54 public:
60  explicit ShellCommand(const QString& aCommand);
64  ShellCommand(const QString& aCommand, const QStringList& aArguments);
65 
67  QString command() const;
69  QStringList arguments() const;
70 
74  QString fullCommand() const;
75 
77  static QString expand(const QString& text);
78 
80  static QStringList expand(const QStringList& items);
81 
82 
83  static bool isValidEnvCharacter(const QChar& ch);
84 
85  static bool isValidLeadingEnvCharacter(const QChar& ch);
86 
87 private:
88  static bool expandEnv(QString& text);
89 
90  QStringList _arguments;
91 };
92 }
93 
94 #endif // SHELLCOMMAND_H
95 
QChar
konsole_export.h
Konsole::ShellCommand
A class to parse and extract information about shell commands.
Definition: ShellCommand.h:52
QString
QStringList
KONSOLEPRIVATE_EXPORT
#define KONSOLEPRIVATE_EXPORT
Definition: konsole_export.h:33
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Konsole

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

applications API Reference

Skip menu "applications API Reference"
  •   kate
  •       kate
  •   KTextEditor
  •   Kate
  • Konsole

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