Implements WatchBase
[platform/core/appfw/widget-viewer.git] / watch-holder-base / src / ambient_listener.hh
similarity index 79%
rename from watch-holder/src/ambient_listener.hh
rename to watch-holder-base/src/ambient_listener.hh
index 332ce5a..23ebf16 100644 (file)
  * limitations under the License.
  */
 
-#ifndef __WATCH_HOLDER_AMBIENT_LISTENER_HH__
-#define __WATCH_HOLDER_AMBIENT_LISTENER_HH__
+#ifndef WATCH_HOLDER_BASE_SRC_AMBIENT_LISTENER_HH_
+#define WATCH_HOLDER_BASE_SRC_AMBIENT_LISTENER_HH_
 
 #include <bundle_cpp.h>
 #include <aul_app_com.h>
 
+#include <string>
+
 #include "common.hh"
 
 namespace watch_holder {
@@ -44,8 +46,10 @@ class AmbientListener {
   static int OnReceiveSignal(const char* endpoint, aul_app_com_result_e e,
       bundle* envelope, void* user_data);
 
-  virtual void OnAmbientChanged(bool enter, tizen_base::Bundle& extra) = 0;
-  virtual void OnAmbientEvent(EventType ev, std::string sender, tizen_base::Bundle extra) = 0;
+  virtual void OnAmbientChanged(bool enter,
+      const tizen_base::Bundle& extra) = 0;
+  virtual void OnAmbientEvent(EventType ev, std::string sender,
+      tizen_base::Bundle extra) = 0;
 
  private:
   aul_app_com_connection_h ambient_changed_signal_conn_ = nullptr;
@@ -54,4 +58,4 @@ class AmbientListener {
 
 }  // namespace watch_holder
 
-#endif  // __WATCH_HOLDER_AMBIENT_LISTENER_HH__
\ No newline at end of file
+#endif  // WATCH_HOLDER_BASE_SRC_AMBIENT_LISTENER_HH_