Merge "[4.0] new linebreak patch" into tizen_4.0
[platform/core/uifw/dali-adaptor.git] / adaptors / wearable / watch-application-impl.h
old mode 100644 (file)
new mode 100755 (executable)
index 6617805..9c162b4
@@ -35,6 +35,15 @@ namespace Adaptor
 class WatchApplication;
 typedef IntrusivePtr<WatchApplication> WatchApplicationPtr;
 
+enum WatchApplicationState
+{
+  UNINITIALIZED,
+  INITIALIZED,
+  PAUSED,
+  RESUMED = INITIALIZED,
+  TERMINATED
+};
+
 /**
  * Implementation of the WatchApplication class.
  */
@@ -68,6 +77,26 @@ public:
   virtual ~WatchApplication();
 
   /**
+   * Called when the framework is initialised.
+   */
+  virtual void OnInit();
+
+  /**
+   * Called when the framework is terminated.
+   */
+  virtual void OnTerminate();
+
+  /**
+   * Called when the framework is paused.
+   */
+  virtual void OnPause();
+
+  /**
+   * Called when the framework resumes from a paused state.
+   */
+  virtual void OnResume();
+
+  /**
    * Called every second
    */
   void OnTimeTick(WatchTime& time);
@@ -95,7 +124,10 @@ public:
   // Signals
   WatchTimeSignal                        mTickSignal;
   WatchTimeSignal                        mAmbientTickSignal;
-  WatchBoolSignal                      mAmbientChangeSignal;
+  WatchBoolSignal                        mAmbientChangeSignal;
+
+private:
+  WatchApplicationState                  mState;
 };
 
 inline WatchApplication& GetImplementation(Dali::WatchApplication& watch)