Refactor Lifecycles
[platform/core/csapi/tizenfx.git] / Tizen.Applications / Tizen.Applications / Context.cs
index 7e0a786..2e28752 100755 (executable)
@@ -1,13 +1,9 @@
-/// Copyright 2016 by Samsung Electronics, Inc.,
-///
-/// This software is the confidential and proprietary information
-/// of Samsung Electronics, Inc. ("Confidential Information"). You
-/// shall not disclose such Confidential Information and shall use
-/// it only in accordance with the terms of the license agreement
-/// you entered into with Samsung.
-
-
 using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.IO;
 
 namespace Tizen.Applications
 {
@@ -16,91 +12,48 @@ namespace Tizen.Applications
     /// </summary>
     public abstract class Context
     {
-        internal AppControl _control;
-        
-        [Flags]
-        public enum ActorFlags
-        {
-            NewInstance = 1,
-            ClearTop = 2,
-            MoveToTop = 4,
-        }
-
         /// <summary>
         /// 
         /// </summary>
-        protected AppControl AppControl
+        public string ApplicationId
         {
             get
             {
-                return _control;
+                throw new NotImplementedException();
             }
         }
 
         /// <summary>
         /// 
         /// </summary>
-        /// <param name="actorType"></param>
-        /// <param name="control"></param>
-        protected void StartActor(Type actorType, AppControl control, ActorFlags flags = ActorFlags.NewInstance)
-        {
-            Application.StartActor(this, actorType, ActorFlags.NewInstance, control);
-        }
-
-        /// <summary>
-        /// 
-        /// </summary>
-        /// <param name="control"></param>
-        /// <param name="flags"></param>
-        protected void StartActor(AppControl control, ActorFlags flags = ActorFlags.NewInstance)
-        {
-            Application.StartActor(this, null, ActorFlags.NewInstance, control);
-        }
-
-        /// <summary>
-        /// 
-        /// </summary>
-        /// <param name="serviceType"></param>
-        /// <param name="control"></param>
-        protected void StartService(Type serviceType, AppControl control)
-        {
-            Application.StartService(serviceType, control);
-        }
-
-        /// <summary>
-        /// 
-        /// </summary>
-        /// <param name="control"></param>
-        protected void StartService(AppControl control)
-        {
-            Application.StartService(null, control);
-        }
-
-        /// <summary>
-        /// 
-        /// </summary>
-        /// <param name="serviceType"></param>
-        protected void StopService(Type serviceType)
+        public string ApplicationName
         {
-            Application.StopService(serviceType);
+            get
+            {
+                throw new NotImplementedException();
+            }
         }
 
         /// <summary>
         /// 
         /// </summary>
-        protected void Finish()
+        public string ApplicationVersion
         {
-            Application.Finish(this);
+            get
+            {
+                throw new NotImplementedException();
+            }
         }
 
         /// <summary>
         /// 
         /// </summary>
-        /// <param name="control"></param>
-        /// <param name="destination"></param>
-        protected void SendAppControl(AppControl control, string destination)
+        public IReadOnlyDictionary<string, string> ApplicationPath
         {
-            throw new NotImplementedException();
+            get
+            {
+                throw new NotImplementedException();
+            }
         }
     }
 }