1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/media/webrtc/signaling/include/CC_Observer.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,28 @@ 1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.7 + 1.8 +#pragma once 1.9 + 1.10 +#include "CC_Common.h" 1.11 + 1.12 +extern "C" 1.13 +{ 1.14 +#include "ccapi_types.h" 1.15 +} 1.16 + 1.17 +namespace CSF 1.18 +{ 1.19 + /** 1.20 + * These callbacks relate to the "core" Call Control API objects CC_Device, CC_Line and CC_Call. 1.21 + */ 1.22 + class ECC_API CC_Observer 1.23 + { 1.24 + public: 1.25 + virtual void onDeviceEvent ( ccapi_device_event_e deviceEvent, CC_DevicePtr device, CC_DeviceInfoPtr info ) = 0; 1.26 + virtual void onFeatureEvent ( ccapi_device_event_e deviceEvent, CC_DevicePtr device, CC_FeatureInfoPtr feature_info) = 0; 1.27 + virtual void onLineEvent ( ccapi_line_event_e lineEvent, CC_LinePtr line, CC_LineInfoPtr info ) = 0; 1.28 + virtual void onCallEvent ( ccapi_call_event_e callEvent, CC_CallPtr call, CC_CallInfoPtr infog ) = 0; 1.29 + }; 1.30 + 1.31 +}