summaryrefslogtreecommitdiff
path: root/notification-ex/event_observer_interface.h
diff options
context:
space:
mode:
Diffstat (limited to 'notification-ex/event_observer_interface.h')
-rw-r--r--notification-ex/event_observer_interface.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/notification-ex/event_observer_interface.h b/notification-ex/event_observer_interface.h
new file mode 100644
index 0000000..e3192a5
--- /dev/null
+++ b/notification-ex/event_observer_interface.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_OBSERVER_INTERFACE_H_
+#define NOTIFICATION_EX_OBSERVER_INTERFACE_H_
+
+#include <list>
+
+#include "notification-ex/ex_bundle.h"
+#include "notification-ex/ievent_info.h"
+
+#ifndef EXPORT_API
+#define EXPORT_API __attribute__((visibility("default")))
+#endif
+
+namespace notification {
+
+class EXPORT_API IEventObserver {
+ public:
+ virtual ~IEventObserver() = default;
+ virtual void OnEvent(const IEventInfo& info, std::list<Bundle> serialized) = 0;
+ virtual std::list<Bundle> OnRequest(const IEventInfo& info) = 0;
+};
+
+} // namespace notification
+
+#endif