mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-06 21:33:08 +00:00
feat(EventLog): better architecture
This commit is contained in:
parent
e4e40d183f
commit
a949778e70
21 changed files with 83 additions and 29 deletions
|
|
@ -90,14 +90,16 @@ set(LINPHONE_CXX_OBJECTS_PRIVATE_HEADER_FILES
|
|||
dial-plan/dial-plan-p.h
|
||||
dial-plan/dial-plan.h
|
||||
enums.h
|
||||
event-log/call-event.h
|
||||
event-log/chat-message-event.h
|
||||
event-log/conference-event-p.h
|
||||
event-log/conference-event.h
|
||||
event-log/conference-participant-device-event.h
|
||||
event-log/conference-participant-event-p.h
|
||||
event-log/conference-participant-event.h
|
||||
event-log/conference-subject-event.h
|
||||
event-log/call/call-event.h
|
||||
event-log/chat/chat-message-event.h
|
||||
event-log/conference/conference-event-p.h
|
||||
event-log/conference/conference-event.h
|
||||
event-log/conference/conference-notified-event-p.h
|
||||
event-log/conference/conference-notified-event.h
|
||||
event-log/conference/conference-participant-device-event.h
|
||||
event-log/conference/conference-participant-event-p.h
|
||||
event-log/conference/conference-participant-event.h
|
||||
event-log/conference/conference-subject-event.h
|
||||
event-log/event-log-p.h
|
||||
event-log/event-log.h
|
||||
hacks/hacks.h
|
||||
|
|
@ -170,12 +172,13 @@ set(LINPHONE_CXX_OBJECTS_SOURCE_FILES
|
|||
db/session/db-session-provider.cpp
|
||||
db/session/db-session.cpp
|
||||
dial-plan/dial-plan.cpp
|
||||
event-log/call-event.cpp
|
||||
event-log/chat-message-event.cpp
|
||||
event-log/conference-event.cpp
|
||||
event-log/conference-participant-device-event.cpp
|
||||
event-log/conference-participant-event.cpp
|
||||
event-log/conference-subject-event.cpp
|
||||
event-log/call/call-event.cpp
|
||||
event-log/chat/chat-message-event.cpp
|
||||
event-log/conference/conference-event.cpp
|
||||
event-log/conference/conference-notified-event.cpp
|
||||
event-log/conference/conference-participant-device-event.cpp
|
||||
event-log/conference/conference-participant-event.cpp
|
||||
event-log/conference/conference-subject-event.cpp
|
||||
event-log/event-log.cpp
|
||||
hacks/hacks.cpp
|
||||
logger/logger.cpp
|
||||
|
|
|
|||
|
|
@ -23,9 +23,9 @@
|
|||
#include "c-wrapper/c-wrapper.h"
|
||||
#include "call/call.h"
|
||||
#include "chat/chat-message/chat-message.h"
|
||||
#include "event-log/call-event.h"
|
||||
#include "event-log/chat-message-event.h"
|
||||
#include "event-log/conference-participant-event.h"
|
||||
#include "event-log/call/call-event.h"
|
||||
#include "event-log/chat/chat-message-event.h"
|
||||
#include "event-log/conference/conference-participant-event.h"
|
||||
|
||||
// =============================================================================
|
||||
|
||||
|
|
|
|||
|
|
@ -31,10 +31,10 @@
|
|||
#include "content/content-type.h"
|
||||
#include "content/content.h"
|
||||
#include "db/session/db-session-provider.h"
|
||||
#include "event-log/call-event.h"
|
||||
#include "event-log/chat-message-event.h"
|
||||
#include "event-log/conference-participant-device-event.h"
|
||||
#include "event-log/conference-subject-event.h"
|
||||
#include "event-log/call/call-event.h"
|
||||
#include "event-log/chat/chat-message-event.h"
|
||||
#include "event-log/conference/conference-participant-device-event.h"
|
||||
#include "event-log/conference/conference-subject-event.h"
|
||||
#include "event-log/event-log-p.h"
|
||||
#include "logger/logger.h"
|
||||
#include "main-db-p.h"
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@
|
|||
#define _DIAL_PLAN_H_
|
||||
|
||||
#include <list>
|
||||
|
||||
#include "object/clonable-object.h"
|
||||
|
||||
// =============================================================================
|
||||
|
|
@ -34,7 +35,7 @@ public:
|
|||
DialPlan (const std::string &country = "", const std::string &isoCountryCode = "", const std::string &ccc = "", int nnl = 0, const std::string &icp = "");
|
||||
DialPlan (const DialPlan &src);
|
||||
~DialPlan ();
|
||||
|
||||
|
||||
DialPlan &operator= (const DialPlan &src);
|
||||
|
||||
const std::string& getCountry() const;
|
||||
|
|
@ -54,7 +55,7 @@ public:
|
|||
|
||||
private:
|
||||
static std::list<DialPlan> const DialPlans;
|
||||
|
||||
|
||||
L_DECLARE_PRIVATE(DialPlan);
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@
|
|||
*/
|
||||
|
||||
#include "call-event.h"
|
||||
#include "event-log-p.h"
|
||||
#include "event-log/event-log-p.h"
|
||||
|
||||
// =============================================================================
|
||||
|
||||
|
|
@ -22,7 +22,7 @@
|
|||
|
||||
#include <memory>
|
||||
|
||||
#include "event-log.h"
|
||||
#include "event-log/event-log.h"
|
||||
|
||||
// =============================================================================
|
||||
|
||||
|
|
@ -18,7 +18,7 @@
|
|||
*/
|
||||
|
||||
#include "chat-message-event.h"
|
||||
#include "event-log-p.h"
|
||||
#include "event-log/event-log-p.h"
|
||||
|
||||
// =============================================================================
|
||||
|
||||
|
|
@ -22,7 +22,7 @@
|
|||
|
||||
#include <memory>
|
||||
|
||||
#include "event-log.h"
|
||||
#include "event-log/event-log.h"
|
||||
|
||||
// =============================================================================
|
||||
|
||||
|
|
@ -22,7 +22,7 @@
|
|||
|
||||
#include "address/address.h"
|
||||
#include "conference-event.h"
|
||||
#include "event-log-p.h"
|
||||
#include "event-log/event-log-p.h"
|
||||
|
||||
// =============================================================================
|
||||
|
||||
|
|
@ -20,7 +20,7 @@
|
|||
#ifndef _CONFERENCE_EVENT_H_
|
||||
#define _CONFERENCE_EVENT_H_
|
||||
|
||||
#include "event-log.h"
|
||||
#include "event-log/event-log.h"
|
||||
|
||||
// =============================================================================
|
||||
|
||||
0
src/event-log/conference/conference-notified-event-p.h
Normal file
0
src/event-log/conference/conference-notified-event-p.h
Normal file
0
src/event-log/conference/conference-notified-event.cpp
Normal file
0
src/event-log/conference/conference-notified-event.cpp
Normal file
50
src/event-log/conference/conference-notified-event.h
Normal file
50
src/event-log/conference/conference-notified-event.h
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
/*
|
||||
* conference-notified-event.h
|
||||
* Copyright (C) 2010-2017 Belledonne Communications SARL
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
* as published by the Free Software Foundation; either version 2
|
||||
* of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#ifndef _CONFERENCE_NOTIFIED_EVENT_H_
|
||||
#define _CONFERENCE_NOTIFIED_EVENT_H_
|
||||
|
||||
#include "conference-event.h"
|
||||
|
||||
// =============================================================================
|
||||
|
||||
LINPHONE_BEGIN_NAMESPACE
|
||||
|
||||
class Address;
|
||||
class ConferenceNotifiedEventPrivate;
|
||||
|
||||
class LINPHONE_PUBLIC ConferenceNotifiedEvent : public EventLog {
|
||||
public:
|
||||
ConferenceNotifiedEvent (Type type, std::time_t time, const Address &conferenceAddress);
|
||||
ConferenceNotifiedEvent (const ConferenceNotifiedEvent &src);
|
||||
|
||||
ConferenceNotifiedEvent &operator= (const ConferenceNotifiedEvent &src);
|
||||
|
||||
const Address &getConferenceAddress () const;
|
||||
|
||||
protected:
|
||||
ConferenceNotifiedEvent (ConferenceNotifiedEventPrivate &p, Type type, std::time_t time, const Address &conferenceAddress);
|
||||
|
||||
private:
|
||||
L_DECLARE_PRIVATE(ConferenceNotifiedEvent);
|
||||
};
|
||||
|
||||
LINPHONE_END_NAMESPACE
|
||||
|
||||
#endif // ifndef _CONFERENCE_NOTIFIED_EVENT_H_
|
||||
Loading…
Add table
Reference in a new issue