Commit 78bf713f authored by Ronan's avatar Ronan

feat(app): rename `Authentication` component to `AuthenticationNotifier`

parent 7b6eeec2
......@@ -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/AuthenticationNotifier.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/AuthenticationNotifier.hpp
src/components/call/CallModel.hpp
src/components/calls/CallsListModel.hpp
src/components/camera/Camera.hpp
......
......@@ -170,7 +170,7 @@
<translation>Password</translation>
</message>
<message>
<source>authentificationRequestDescription</source>
<source>authenticationRequestDescription</source>
<translation>Unable to authenticate. Please verify your password.</translation>
</message>
<message>
......
......@@ -170,7 +170,7 @@
<translation>Mot de passe</translation>
</message>
<message>
<source>authentificationRequestDescription</source>
<source>authenticationRequestDescription</source>
<translation>Impossible de vous authentifier. Merci de vérifier votre mot de passe.</translation>
</message>
<message>
......
......@@ -292,7 +292,7 @@ void App::registerTypes () {
qInfo() << "Registering types...";
qmlRegisterType<AssistantModel>("Linphone", 1, 0, "AssistantModel");
qmlRegisterType<Authentication>("Linphone", 1, 0, "Authentication");
qmlRegisterType<AuthenticationNotifier>("Linphone", 1, 0, "AuthenticationNotifier");
qmlRegisterType<Camera>("Linphone", 1, 0, "Camera");
qmlRegisterType<CameraPreview>("Linphone", 1, 0, "CameraPreview");
qmlRegisterType<ChatModel>("Linphone", 1, 0, "ChatModel");
......
......@@ -24,7 +24,7 @@
#define COMPONENTS_H_
#include "assistant/AssistantModel.hpp"
#include "authentication/Authentication.hpp"
#include "authentication/AuthenticationNotifier.hpp"
#include "calls/CallsListModel.hpp"
#include "camera/Camera.hpp"
#include "camera/CameraPreview.hpp"
......
/*
* Authentication.cpp
* AuthenticationNotifier.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 "AuthenticationNotifier.hpp"
using namespace std;
// =============================================================================
Authentication::Authentication (QObject *parent) : QObject(parent) {
AuthenticationNotifier::AuthenticationNotifier (QObject *parent) : QObject(parent) {
QObject::connect(
&(*CoreManager::getInstance()->getHandlers()), &CoreHandlers::authenticationRequested,
this, &Authentication::handleAuthenticationRequested
this, &AuthenticationNotifier::handleAuthenticationRequested
);
}
void Authentication::handleAuthenticationRequested (const shared_ptr<linphone::AuthInfo> &authInfo) {
void AuthenticationNotifier::handleAuthenticationRequested (const shared_ptr<linphone::AuthInfo> &authInfo) {
emit authenticationRequested(
QVariant::fromValue(authInfo),
::Utils::linphoneStringToQString(authInfo->getRealm()),
......
/*
* Authentication.hpp
* AuthenticationNotifier.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 AuthenticationNotifier : public QObject {
Q_OBJECT;
public:
Authentication (QObject *parent = Q_NULLPTR);
AuthenticationNotifier (QObject *parent = Q_NULLPTR);
~Authentication () = default;
~AuthenticationNotifier () = 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_
......@@ -35,7 +35,7 @@ DialogPlus {
]
centeredButtons: true
descriptionText: qsTr('authentificationRequestDescription')
descriptionText: qsTr('authenticationRequestDescription')
height: AuthenticationRequestStyle.height
width: AuthenticationRequestStyle.width
......
......@@ -87,7 +87,7 @@ ApplicationWindow {
// -----------------------------------------------------------------------
Authentication {
AuthenticationNotifier {
onAuthenticationRequested: Logic.handleAuthenticationRequested(authInfo, realm, sipAddress, userId)
}
......
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