mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-28 16:49:20 +00:00
add local list event handler to core
This commit is contained in:
parent
9366856ee9
commit
0c333d794c
2 changed files with 4 additions and 0 deletions
|
|
@ -31,6 +31,7 @@
|
|||
LINPHONE_BEGIN_NAMESPACE
|
||||
|
||||
class CoreListener;
|
||||
class LocalConferenceListEventHandler;
|
||||
class RemoteConferenceListEventHandler;
|
||||
|
||||
class CorePrivate : public ObjectPrivate {
|
||||
|
|
@ -67,6 +68,7 @@ public:
|
|||
|
||||
std::unique_ptr<MainDb> mainDb;
|
||||
std::unique_ptr<RemoteConferenceListEventHandler> remoteListEventHandler;
|
||||
std::unique_ptr<LocalConferenceListEventHandler> localListEventHandler;
|
||||
|
||||
private:
|
||||
std::list<CoreListener *> listeners;
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@
|
|||
|
||||
#include "address/address-p.h"
|
||||
#include "call/call.h"
|
||||
#include "conference/handlers/local-conference-list-event-handler.h"
|
||||
#include "conference/handlers/remote-conference-list-event-handler.h"
|
||||
#include "core/core-listener.h"
|
||||
#include "core/core-p.h"
|
||||
|
|
@ -46,6 +47,7 @@ void CorePrivate::init () {
|
|||
L_Q();
|
||||
mainDb.reset(new MainDb(q->getSharedFromThis()));
|
||||
remoteListEventHandler = makeUnique<RemoteConferenceListEventHandler>(q->getSharedFromThis());
|
||||
localListEventHandler = makeUnique<LocalConferenceListEventHandler>();
|
||||
|
||||
AbstractDb::Backend backend;
|
||||
string uri = L_C_TO_STRING(lp_config_get_string(linphone_core_get_config(L_GET_C_BACK_PTR(q)), "storage", "uri", nullptr));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue