diff options
Diffstat (limited to 'bindings/_common/SipEvent.h')
-rwxr-xr-x | bindings/_common/SipEvent.h | 112 |
1 files changed, 57 insertions, 55 deletions
diff --git a/bindings/_common/SipEvent.h b/bindings/_common/SipEvent.h index 85acb8d..c8b67a8 100755 --- a/bindings/_common/SipEvent.h +++ b/bindings/_common/SipEvent.h @@ -2,19 +2,19 @@ * Copyright (C) 2010-2011 Mamadou Diop. * * Contact: Mamadou Diop <diopmamadou(at)doubango.org> -* +* * This file is part of Open Source Doubango Framework. * * DOUBANGO 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 3 of the License, or * (at your option) any later version. -* +* * DOUBANGO 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 DOUBANGO. * @@ -48,25 +48,27 @@ class TINYWRAP_API SipEvent { public: #if !defined(SWIG) - SipEvent(const tsip_event_t *sipevent); + SipEvent(const tsip_event_t *sipevent); #endif - virtual ~SipEvent(); + virtual ~SipEvent(); public: - short getCode() const; - const char* getPhrase() const; - const SipSession* getBaseSession() const; - const SipMessage* getSipMessage() const; + short getCode() const; + const char* getPhrase() const; + const SipSession* getBaseSession() const; + const SipMessage* getSipMessage() const; #if !defined(SWIG) - const tsip_event_t * getWrappedEvent(){ return sipevent; } + const tsip_event_t * getWrappedEvent() { + return sipevent; + } #endif #if !defined(SWIG) - SipStack* getStack()const; + SipStack* getStack()const; #endif protected: - const tsip_event_t *sipevent; - SipMessage* sipmessage; + const tsip_event_t *sipevent; + SipMessage* sipmessage; }; @@ -75,9 +77,9 @@ class TINYWRAP_API DialogEvent: public SipEvent { public: #if !defined(SWIG) - DialogEvent(const tsip_event_t *sipevent); + DialogEvent(const tsip_event_t *sipevent); #endif - virtual ~DialogEvent(); + virtual ~DialogEvent(); public: /* Public API functions */ }; @@ -87,9 +89,9 @@ class TINYWRAP_API StackEvent: public SipEvent { public: #if !defined(SWIG) - StackEvent(const tsip_event_t *sipevent); + StackEvent(const tsip_event_t *sipevent); #endif - virtual ~StackEvent(); + virtual ~StackEvent(); public: /* Public API functions */ }; @@ -101,16 +103,16 @@ class TINYWRAP_API InviteEvent: public SipEvent { public: #if !defined(SWIG) - InviteEvent(const tsip_event_t *sipevent); + InviteEvent(const tsip_event_t *sipevent); #endif - virtual ~InviteEvent(); + virtual ~InviteEvent(); public: /* Public API functions */ - tsip_invite_event_type_t getType() const; - twrap_media_type_t getMediaType() const; - const InviteSession* getSession() const; - CallSession* takeCallSessionOwnership() const; - MsrpSession* takeMsrpSessionOwnership() const; + tsip_invite_event_type_t getType() const; + twrap_media_type_t getMediaType() const; + const InviteSession* getSession() const; + CallSession* takeCallSessionOwnership() const; + MsrpSession* takeMsrpSessionOwnership() const; }; @@ -120,14 +122,14 @@ class TINYWRAP_API MessagingEvent: public SipEvent { public: #if !defined(SWIG) - MessagingEvent(const tsip_event_t *sipevent); + MessagingEvent(const tsip_event_t *sipevent); #endif - virtual ~MessagingEvent(); + virtual ~MessagingEvent(); public: /* Public API functions */ - tsip_message_event_type_t getType() const; - const MessagingSession* getSession() const; - MessagingSession* takeSessionOwnership() const; + tsip_message_event_type_t getType() const; + const MessagingSession* getSession() const; + MessagingSession* takeSessionOwnership() const; }; /* ======================== InfoEvent ========================*/ @@ -135,14 +137,14 @@ class TINYWRAP_API InfoEvent: public SipEvent { public: #if !defined(SWIG) - InfoEvent(const tsip_event_t *sipevent); + InfoEvent(const tsip_event_t *sipevent); #endif - virtual ~InfoEvent(); + virtual ~InfoEvent(); public: /* Public API functions */ - tsip_info_event_type_t getType() const; - const InfoSession* getSession() const; - InfoSession* takeSessionOwnership() const; + tsip_info_event_type_t getType() const; + const InfoSession* getSession() const; + InfoSession* takeSessionOwnership() const; }; @@ -152,14 +154,14 @@ class TINYWRAP_API OptionsEvent: public SipEvent { public: #if !defined(SWIG) - OptionsEvent(const tsip_event_t *sipevent); + OptionsEvent(const tsip_event_t *sipevent); #endif - virtual ~OptionsEvent(); + virtual ~OptionsEvent(); public: /* Public API functions */ - tsip_options_event_type_t getType() const; - const OptionsSession* getSession() const; - OptionsSession* takeSessionOwnership() const; + tsip_options_event_type_t getType() const; + const OptionsSession* getSession() const; + OptionsSession* takeSessionOwnership() const; }; @@ -169,14 +171,14 @@ class TINYWRAP_API PublicationEvent: public SipEvent { public: #if !defined(SWIG) - PublicationEvent(const tsip_event_t *sipevent); + PublicationEvent(const tsip_event_t *sipevent); #endif - virtual ~PublicationEvent(); + virtual ~PublicationEvent(); public: /* Public API functions */ - tsip_publish_event_type_t getType() const; - const PublicationSession* getSession() const; - PublicationSession* takeSessionOwnership() const; + tsip_publish_event_type_t getType() const; + const PublicationSession* getSession() const; + PublicationSession* takeSessionOwnership() const; }; @@ -186,15 +188,15 @@ class TINYWRAP_API RegistrationEvent: public SipEvent { public: #if !defined(SWIG) - RegistrationEvent(const tsip_event_t *sipevent); + RegistrationEvent(const tsip_event_t *sipevent); #endif - virtual ~RegistrationEvent(); + virtual ~RegistrationEvent(); public: /* Public API functions */ - tsip_register_event_type_t getType() const; - const RegistrationSession* getSession() const; - RegistrationSession* takeSessionOwnership() const; - + tsip_register_event_type_t getType() const; + const RegistrationSession* getSession() const; + RegistrationSession* takeSessionOwnership() const; + }; @@ -203,14 +205,14 @@ class TINYWRAP_API SubscriptionEvent: public SipEvent { public: #if !defined(SWIG) - SubscriptionEvent(const tsip_event_t *sipevent); + SubscriptionEvent(const tsip_event_t *sipevent); #endif - virtual ~SubscriptionEvent(); + virtual ~SubscriptionEvent(); public: /* Public API functions */ - tsip_subscribe_event_type_t getType() const; - const SubscriptionSession* getSession() const; - SubscriptionSession* takeSessionOwnership() const; + tsip_subscribe_event_type_t getType() const; + const SubscriptionSession* getSession() const; + SubscriptionSession* takeSessionOwnership() const; }; #endif /* TINYWRAP_SIPEVENT_H */ |