From c2efb388fc1d6a843cd3d4421ae6d82daeb05fee Mon Sep 17 00:00:00 2001 From: Ronan Abhamon Date: Wed, 11 Jan 2017 14:38:15 +0100 Subject: [PATCH] feat(app): fixes & refactoring --- tests/src/components/chat/ChatModel.cpp | 2 +- tests/src/components/core/CoreHandlers.hpp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/src/components/chat/ChatModel.cpp b/tests/src/components/chat/ChatModel.cpp index a4f1ab6c8..d74dbd551 100644 --- a/tests/src/components/chat/ChatModel.cpp +++ b/tests/src/components/chat/ChatModel.cpp @@ -21,6 +21,7 @@ public: ~MessageHandlers () = default; +private: void onFileTransferRecv ( const shared_ptr &message, const shared_ptr &content, @@ -65,7 +66,6 @@ public: emit chat.dataChanged(chat.index(row, 0), chat.index(row, 0)); } -private: ChatModel *m_chat_model; }; diff --git a/tests/src/components/core/CoreHandlers.hpp b/tests/src/components/core/CoreHandlers.hpp index b17106350..916faa0ba 100644 --- a/tests/src/components/core/CoreHandlers.hpp +++ b/tests/src/components/core/CoreHandlers.hpp @@ -11,7 +11,10 @@ class CoreHandlers : public linphone::CoreListener { Q_OBJECT; -public: +signals: + void receivedMessage (const std::shared_ptr &message); + +private: void onAuthenticationRequested ( const std::shared_ptr &core, const std::shared_ptr &auth_info, @@ -30,9 +33,6 @@ public: const std::shared_ptr &room, const std::shared_ptr &message ) override; - -signals: - void receivedMessage (const std::shared_ptr &message); }; #endif // CORE_HANDLERS_H_