Signed-off-by: hyunho <hhstark.kang@samsung.com>
#endif
#define EXPORT_API __attribute__((visibility("default")))
+#define NOTIFY_CHANGED_EVENT_END_POINT "watch_holder,changed"
+#define NOTIFY_CHANGED_EVENT_APPID "watch_holder,changed,appid"
+
#endif // __WATCH_HOLDER_COMMON_HH__
#include <aul.h>
#include <dlog.h>
+#include <aul_app_com.h>
#include "watch.hh"
listener_->OnUpdated(*this);
}
+int Watch::NotifyChangedEvent() {
+ tizen_base::Bundle b;
+ b.Add(NOTIFY_CHANGED_EVENT_APPID, appid_);
+ int ret = aul_app_com_send(NOTIFY_CHANGED_EVENT_END_POINT, b.GetHandle());
+ if (ret != 0) {
+ LOGE("Fail to send noti (%d)", ret);
+ return -1;
+ }
+ return 0;
+}
+
} // namspace watch_holder
void Bind(Evas_Object* win);
void Unbind();
Evas_Object* GetCurrentImage() const ;
- void NotifyChangedEvent();
+ int NotifyChangedEvent();
bool IsBound();
std::string GetAppId();
int GetPid() const ;