From 298daf1d13a5b913c25a8d3b3550c7d16f5cbdda Mon Sep 17 00:00:00 2001 From: "mk5004.lee" Date: Mon, 28 Jan 2019 19:25:41 +0900 Subject: Initialize Noti-ex Change-Id: I96813e041aee48027806f97fef8a28bdc5d49c27 Signed-off-by: mk5004.lee --- notification-ex/mock_listener.h | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 notification-ex/mock_listener.h (limited to 'notification-ex/mock_listener.h') diff --git a/notification-ex/mock_listener.h b/notification-ex/mock_listener.h new file mode 100644 index 0000000..1df439b --- /dev/null +++ b/notification-ex/mock_listener.h @@ -0,0 +1,40 @@ +/* + * Copyright (c) 2019 Samsung Electronics Co., Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef NOTIFICATION_EX_MOCK_LISTENER_H_ +#define NOTIFICATION_EX_MOCK_LISTENER_H_ + +#include "notification-ex/observer_interface.h" + +#ifndef EXPORT_API +#define EXPORT_API __attribute__((visibility("default"))) +#endif + +namespace notification { + +class EXPORT_API MockEventsListener : public IEventListener { + public: + MockEventsListener(); + virtual ~MockEventsListener(); + + void RegisterObserver(IEventObserver observer) override; + void UnRegisterObserver(IEventObserver observer) override; + void NotifyAll() override; +}; + +} // namespace notification + +#endif // NOTIFICATION_EX_MOCK_LISTENER_H_ -- cgit v1.2.3