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
78bf713f
Commit
78bf713f
authored
May 03, 2017
by
Ronan Abhamon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(app): rename `Authentication` component to `AuthenticationNotifier`
parent
7b6eeec2
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
20 additions
and
20 deletions
+20
-20
CMakeLists.txt
linphone-desktop/CMakeLists.txt
+2
-2
en.ts
linphone-desktop/assets/languages/en.ts
+1
-1
fr.ts
linphone-desktop/assets/languages/fr.ts
+1
-1
App.cpp
linphone-desktop/src/app/App.cpp
+1
-1
Components.hpp
linphone-desktop/src/components/Components.hpp
+1
-1
AuthenticationNotifier.cpp
.../src/components/authentication/AuthenticationNotifier.cpp
+5
-5
AuthenticationNotifier.hpp
.../src/components/authentication/AuthenticationNotifier.hpp
+7
-7
AuthenticationRequest.qml
linphone-desktop/ui/views/App/Main/AuthenticationRequest.qml
+1
-1
MainWindow.qml
linphone-desktop/ui/views/App/Main/MainWindow.qml
+1
-1
No files found.
linphone-desktop/CMakeLists.txt
View file @
78bf713f
...
...
@@ -95,7 +95,7 @@ set(SOURCES
src/app/providers/ThumbnailProvider.cpp
src/app/translator/DefaultTranslator.cpp
src/components/assistant/AssistantModel.cpp
src/components/authentication/Authentication.cpp
src/components/authentication/Authentication
Notifier
.cpp
src/components/call/CallModel.cpp
src/components/calls/CallsListModel.cpp
src/components/camera/Camera.cpp
...
...
@@ -135,7 +135,7 @@ set(HEADERS
src/app/providers/ThumbnailProvider.hpp
src/app/translator/DefaultTranslator.hpp
src/components/assistant/AssistantModel.hpp
src/components/authentication/Authentication.hpp
src/components/authentication/Authentication
Notifier
.hpp
src/components/call/CallModel.hpp
src/components/calls/CallsListModel.hpp
src/components/camera/Camera.hpp
...
...
linphone-desktop/assets/languages/en.ts
View file @
78bf713f
...
...
@@ -170,7 +170,7 @@
<
translation
>
Password
<
/translation
>
<
/message
>
<
message
>
<
source
>
authenti
fi
cationRequestDescription
<
/source
>
<
source
>
authenticationRequestDescription
<
/source
>
<
translation
>
Unable
to
authenticate
.
Please
verify
your
password
.
<
/translation
>
<
/message
>
<
message
>
...
...
linphone-desktop/assets/languages/fr.ts
View file @
78bf713f
...
...
@@ -170,7 +170,7 @@
<
translation
>
Mot
de
passe
<
/translation
>
<
/message
>
<
message
>
<
source
>
authenti
fi
cationRequestDescription
<
/source
>
<
source
>
authenticationRequestDescription
<
/source
>
<
translation
>
Impossible
de
vous
authentifier
.
Merci
de
v
é
rifier
votre
mot
de
passe
.
<
/translation
>
<
/message
>
<
message
>
...
...
linphone-desktop/src/app/App.cpp
View file @
78bf713f
...
...
@@ -292,7 +292,7 @@ void App::registerTypes () {
qInfo
()
<<
"Registering types..."
;
qmlRegisterType
<
AssistantModel
>
(
"Linphone"
,
1
,
0
,
"AssistantModel"
);
qmlRegisterType
<
Authentication
>
(
"Linphone"
,
1
,
0
,
"Authentication
"
);
qmlRegisterType
<
Authentication
Notifier
>
(
"Linphone"
,
1
,
0
,
"AuthenticationNotifier
"
);
qmlRegisterType
<
Camera
>
(
"Linphone"
,
1
,
0
,
"Camera"
);
qmlRegisterType
<
CameraPreview
>
(
"Linphone"
,
1
,
0
,
"CameraPreview"
);
qmlRegisterType
<
ChatModel
>
(
"Linphone"
,
1
,
0
,
"ChatModel"
);
...
...
linphone-desktop/src/components/Components.hpp
View file @
78bf713f
...
...
@@ -24,7 +24,7 @@
#define COMPONENTS_H_
#include "assistant/AssistantModel.hpp"
#include "authentication/Authentication.hpp"
#include "authentication/Authentication
Notifier
.hpp"
#include "calls/CallsListModel.hpp"
#include "camera/Camera.hpp"
#include "camera/CameraPreview.hpp"
...
...
linphone-desktop/src/components/authentication/Authentication.cpp
→
linphone-desktop/src/components/authentication/Authentication
Notifier
.cpp
View file @
78bf713f
/*
* Authentication.cpp
* Authentication
Notifier
.cpp
* Copyright (C) 2017 Belledonne Communications, Grenoble, France
*
* This program is free software; you can redistribute it and/or
...
...
@@ -23,20 +23,20 @@
#include "../../Utils.hpp"
#include "../core/CoreManager.hpp"
#include "Authentication.hpp"
#include "Authentication
Notifier
.hpp"
using
namespace
std
;
// =============================================================================
Authentication
::
Authentication
(
QObject
*
parent
)
:
QObject
(
parent
)
{
Authentication
Notifier
::
AuthenticationNotifier
(
QObject
*
parent
)
:
QObject
(
parent
)
{
QObject
::
connect
(
&
(
*
CoreManager
::
getInstance
()
->
getHandlers
()),
&
CoreHandlers
::
authenticationRequested
,
this
,
&
Authentication
::
handleAuthenticationRequested
this
,
&
Authentication
Notifier
::
handleAuthenticationRequested
);
}
void
Authentication
::
handleAuthenticationRequested
(
const
shared_ptr
<
linphone
::
AuthInfo
>
&
authInfo
)
{
void
Authentication
Notifier
::
handleAuthenticationRequested
(
const
shared_ptr
<
linphone
::
AuthInfo
>
&
authInfo
)
{
emit
authenticationRequested
(
QVariant
::
fromValue
(
authInfo
),
::
Utils
::
linphoneStringToQString
(
authInfo
->
getRealm
()),
...
...
linphone-desktop/src/components/authentication/Authentication.hpp
→
linphone-desktop/src/components/authentication/Authentication
Notifier
.hpp
View file @
78bf713f
/*
* Authentication.hpp
* Authentication
Notifier
.hpp
* Copyright (C) 2017 Belledonne Communications, Grenoble, France
*
* This program is free software; you can redistribute it and/or
...
...
@@ -20,21 +20,21 @@
* Author: Ronan Abhamon
*/
#ifndef AUTHENTICATION_H_
#define AUTHENTICATION_H_
#ifndef AUTHENTICATION_
NOTIFIER_
H_
#define AUTHENTICATION_
NOTIFIER_
H_
#include <linphone++/linphone.hh>
#include <QObject>
// =============================================================================
class
Authentication
:
public
QObject
{
class
Authentication
Notifier
:
public
QObject
{
Q_OBJECT
;
public:
Authentication
(
QObject
*
parent
=
Q_NULLPTR
);
Authentication
Notifier
(
QObject
*
parent
=
Q_NULLPTR
);
~
Authentication
()
=
default
;
~
Authentication
Notifier
()
=
default
;
signals:
void
authenticationRequested
(
const
QVariant
&
authInfo
,
const
QString
&
realm
,
const
QString
&
sipAddress
,
const
QString
&
userId
);
...
...
@@ -45,4 +45,4 @@ private:
Q_DECLARE_METATYPE
(
std
::
shared_ptr
<
linphone
::
AuthInfo
>
);
#endif // AUTHENTICATION_H_
#endif // AUTHENTICATION_
NOTIFIER_
H_
linphone-desktop/ui/views/App/Main/AuthenticationRequest.qml
View file @
78bf713f
...
...
@@ -35,7 +35,7 @@ DialogPlus {
]
centeredButtons
:
true
descriptionText
:
qsTr
(
'
authenti
fi
cationRequestDescription
'
)
descriptionText
:
qsTr
(
'
authenticationRequestDescription
'
)
height
:
AuthenticationRequestStyle
.
height
width
:
AuthenticationRequestStyle
.
width
...
...
linphone-desktop/ui/views/App/Main/MainWindow.qml
View file @
78bf713f
...
...
@@ -87,7 +87,7 @@ ApplicationWindow {
// -----------------------------------------------------------------------
Authentication
{
Authentication
Notifier
{
onAuthenticationRequested
:
Logic
.
handleAuthenticationRequested
(
authInfo
,
realm
,
sipAddress
,
userId
)
}
...
...
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