Commit 7359bbe2 authored by Ronan Abhamon's avatar Ronan Abhamon

fix(app): coding style

parent e52b6f60
......@@ -182,7 +182,7 @@ void App::initContentApp () {
if (!commandArgument.isEmpty()) {
Cli::CommandFormat format;
mCli->executeCommand(commandArgument, &format);
if (format==Cli::UriFormat)
if (format == Cli::UriFormat)
mustBeIconified = true;
}
}
......@@ -229,12 +229,10 @@ void App::initContentApp () {
if (mEngine->rootObjects().isEmpty())
qFatal("Unable to open main window.");
QObject::connect(
CoreManager::getInstance()->getHandlers().get(),
&CoreHandlers::coreStarted, [this, mustBeIconified] () {
QObject::connect(CoreManager::getInstance()->getHandlers().get(),
&CoreHandlers::coreStarted, [this, mustBeIconified]() {
openAppAfterInit(mustBeIconified);
}
);
});
}
// -----------------------------------------------------------------------------
......
......@@ -31,7 +31,7 @@
// =============================================================================
namespace linphone {
class Address;
class Address;
}
class Cli : public QObject {
......@@ -54,7 +54,7 @@ class Cli : public QObject {
};
class Command {
public:
public:
Command () = default;
Command (
const QString &functionName,
......@@ -66,7 +66,7 @@ public:
void execute (QHash<QString, QString> &args) const;
void executeUri (const std::shared_ptr<linphone::Address> &address) const;
private:
private:
QString mFunctionName;
QString mDescription;
Function mFunction = nullptr;
......@@ -77,11 +77,11 @@ public:
Cli (QObject *parent = Q_NULLPTR);
~Cli () = default;
enum CommandFormat {
UnknownFormat,
CliFormat,
UriFormat
};
enum CommandFormat {
UnknownFormat,
CliFormat,
UriFormat
};
void executeCommand (const QString &command, CommandFormat *format = nullptr) const;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment