K&R formatting
This commit is contained in:
+31
-29
@@ -25,7 +25,8 @@
|
||||
// Qt
|
||||
#include <QtCore/QStringList>
|
||||
|
||||
namespace Konsole {
|
||||
namespace Konsole
|
||||
{
|
||||
|
||||
/**
|
||||
* A class to parse and extract information about shell commands.
|
||||
@@ -48,42 +49,43 @@ namespace Konsole {
|
||||
* </li>
|
||||
* </ul>
|
||||
*/
|
||||
class ShellCommand {
|
||||
class ShellCommand
|
||||
{
|
||||
public:
|
||||
/**
|
||||
* Constructs a ShellCommand from a command line.
|
||||
*
|
||||
* @param fullCommand The command line to parse.
|
||||
*/
|
||||
ShellCommand(const QString & fullCommand);
|
||||
/**
|
||||
* Constructs a ShellCommand with the specified @p command and @p arguments.
|
||||
*/
|
||||
ShellCommand(const QString & command , const QStringList & arguments);
|
||||
/**
|
||||
* Constructs a ShellCommand from a command line.
|
||||
*
|
||||
* @param fullCommand The command line to parse.
|
||||
*/
|
||||
ShellCommand(const QString & fullCommand);
|
||||
/**
|
||||
* Constructs a ShellCommand with the specified @p command and @p arguments.
|
||||
*/
|
||||
ShellCommand(const QString & command , const QStringList & arguments);
|
||||
|
||||
/** Returns the command. */
|
||||
QString command() const;
|
||||
/** Returns the arguments. */
|
||||
QStringList arguments() const;
|
||||
/** Returns the command. */
|
||||
QString command() const;
|
||||
/** Returns the arguments. */
|
||||
QStringList arguments() const;
|
||||
|
||||
/**
|
||||
* Returns the full command line.
|
||||
*/
|
||||
QString fullCommand() const;
|
||||
/**
|
||||
* Returns the full command line.
|
||||
*/
|
||||
QString fullCommand() const;
|
||||
|
||||
/** Returns true if this is a root command. */
|
||||
bool isRootCommand() const;
|
||||
/** Returns true if the program specified by @p command() exists. */
|
||||
bool isAvailable() const;
|
||||
/** Returns true if this is a root command. */
|
||||
bool isRootCommand() const;
|
||||
/** Returns true if the program specified by @p command() exists. */
|
||||
bool isAvailable() const;
|
||||
|
||||
/** Expands environment variables in @p text .*/
|
||||
static QString expand(const QString & text);
|
||||
/** Expands environment variables in @p text .*/
|
||||
static QString expand(const QString & text);
|
||||
|
||||
/** Expands environment variables in each string in @p list. */
|
||||
static QStringList expand(const QStringList & items);
|
||||
/** Expands environment variables in each string in @p list. */
|
||||
static QStringList expand(const QStringList & items);
|
||||
|
||||
private:
|
||||
QStringList _arguments;
|
||||
QStringList _arguments;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user