Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linphone-desktop
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
linphone-desktop
Commits
7359bbe2
Commit
7359bbe2
authored
Aug 09, 2017
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(app): coding style
parent
e52b6f60
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
14 deletions
+12
-14
App.cpp
src/app/App.cpp
+4
-6
Cli.hpp
src/app/cli/Cli.hpp
+8
-8
No files found.
src/app/App.cpp
View file @
7359bbe2
...
@@ -182,7 +182,7 @@ void App::initContentApp () {
...
@@ -182,7 +182,7 @@ void App::initContentApp () {
if
(
!
commandArgument
.
isEmpty
())
{
if
(
!
commandArgument
.
isEmpty
())
{
Cli
::
CommandFormat
format
;
Cli
::
CommandFormat
format
;
mCli
->
executeCommand
(
commandArgument
,
&
format
);
mCli
->
executeCommand
(
commandArgument
,
&
format
);
if
(
format
==
Cli
::
UriFormat
)
if
(
format
==
Cli
::
UriFormat
)
mustBeIconified
=
true
;
mustBeIconified
=
true
;
}
}
}
}
...
@@ -229,12 +229,10 @@ void App::initContentApp () {
...
@@ -229,12 +229,10 @@ void App::initContentApp () {
if
(
mEngine
->
rootObjects
().
isEmpty
())
if
(
mEngine
->
rootObjects
().
isEmpty
())
qFatal
(
"Unable to open main window."
);
qFatal
(
"Unable to open main window."
);
QObject
::
connect
(
QObject
::
connect
(
CoreManager
::
getInstance
()
->
getHandlers
().
get
(),
CoreManager
::
getInstance
()
->
getHandlers
().
get
(),
&
CoreHandlers
::
coreStarted
,
[
this
,
mustBeIconified
]()
{
&
CoreHandlers
::
coreStarted
,
[
this
,
mustBeIconified
]
()
{
openAppAfterInit
(
mustBeIconified
);
openAppAfterInit
(
mustBeIconified
);
}
});
);
}
}
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
...
...
src/app/cli/Cli.hpp
View file @
7359bbe2
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
// =============================================================================
// =============================================================================
namespace
linphone
{
namespace
linphone
{
class
Address
;
class
Address
;
}
}
class
Cli
:
public
QObject
{
class
Cli
:
public
QObject
{
...
@@ -54,7 +54,7 @@ class Cli : public QObject {
...
@@ -54,7 +54,7 @@ class Cli : public QObject {
};
};
class
Command
{
class
Command
{
public:
public:
Command
()
=
default
;
Command
()
=
default
;
Command
(
Command
(
const
QString
&
functionName
,
const
QString
&
functionName
,
...
@@ -66,7 +66,7 @@ public:
...
@@ -66,7 +66,7 @@ public:
void
execute
(
QHash
<
QString
,
QString
>
&
args
)
const
;
void
execute
(
QHash
<
QString
,
QString
>
&
args
)
const
;
void
executeUri
(
const
std
::
shared_ptr
<
linphone
::
Address
>
&
address
)
const
;
void
executeUri
(
const
std
::
shared_ptr
<
linphone
::
Address
>
&
address
)
const
;
private:
private:
QString
mFunctionName
;
QString
mFunctionName
;
QString
mDescription
;
QString
mDescription
;
Function
mFunction
=
nullptr
;
Function
mFunction
=
nullptr
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment