K&R formatting

This commit is contained in:
Petr Vanek
2010-10-01 16:08:14 +02:00
parent 88b5a11bb4
commit 57fd23bf39
40 changed files with 13725 additions and 12935 deletions
+31 -29
View File
@@ -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;
};
}