Commit c2efb388 authored by Ronan Abhamon's avatar Ronan Abhamon

feat(app): fixes & refactoring

parent 32f09dd0
...@@ -21,6 +21,7 @@ public: ...@@ -21,6 +21,7 @@ public:
~MessageHandlers () = default; ~MessageHandlers () = default;
private:
void onFileTransferRecv ( void onFileTransferRecv (
const shared_ptr<linphone::ChatMessage> &message, const shared_ptr<linphone::ChatMessage> &message,
const shared_ptr<linphone::Content> &content, const shared_ptr<linphone::Content> &content,
...@@ -65,7 +66,6 @@ public: ...@@ -65,7 +66,6 @@ public:
emit chat.dataChanged(chat.index(row, 0), chat.index(row, 0)); emit chat.dataChanged(chat.index(row, 0), chat.index(row, 0));
} }
private:
ChatModel *m_chat_model; ChatModel *m_chat_model;
}; };
......
...@@ -11,7 +11,10 @@ class CoreHandlers : ...@@ -11,7 +11,10 @@ class CoreHandlers :
public linphone::CoreListener { public linphone::CoreListener {
Q_OBJECT; Q_OBJECT;
public: signals:
void receivedMessage (const std::shared_ptr<linphone::ChatMessage> &message);
private:
void onAuthenticationRequested ( void onAuthenticationRequested (
const std::shared_ptr<linphone::Core> &core, const std::shared_ptr<linphone::Core> &core,
const std::shared_ptr<linphone::AuthInfo> &auth_info, const std::shared_ptr<linphone::AuthInfo> &auth_info,
...@@ -30,9 +33,6 @@ public: ...@@ -30,9 +33,6 @@ public:
const std::shared_ptr<linphone::ChatRoom> &room, const std::shared_ptr<linphone::ChatRoom> &room,
const std::shared_ptr<linphone::ChatMessage> &message const std::shared_ptr<linphone::ChatMessage> &message
) override; ) override;
signals:
void receivedMessage (const std::shared_ptr<linphone::ChatMessage> &message);
}; };
#endif // CORE_HANDLERS_H_ #endif // CORE_HANDLERS_H_
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