mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-17 11:28:07 +00:00
fix(app): coding style
This commit is contained in:
parent
e52b6f6060
commit
7359bbe2e5
2 changed files with 12 additions and 14 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue