Add IStatePublisher.cs, IStateSubcriber.cs 93/134193/4
authorjjie.choi <jjie.choi@samsung.com>
Thu, 15 Jun 2017 06:52:46 +0000 (15:52 +0900)
committerGeunSun Lee <gs86.lee@samsung.com>
Thu, 15 Jun 2017 07:43:50 +0000 (07:43 +0000)
Change-Id: I46962de12b3dbe22f857249ba9c8349d562a8577
Signed-off-by: jjie.choi <jjie.choi@samsung.com>
LibTVRefCommonPortable/LibTVRefCommonPortable.csproj
LibTVRefCommonPortable/Utils/IStatePublisher.cs [new file with mode: 0644]
LibTVRefCommonPortable/Utils/IStateSubscriber.cs [new file with mode: 0644]
TVApps/TVApps/TVApps.csproj
TVApps/TVApps/ViewModels/FooterViewModel.cs [new file with mode: 0644]
TVApps/TVApps/ViewModels/ItemViewModel.cs [new file with mode: 0644]
TVApps/TVApps/ViewModels/ListViewModel.cs [new file with mode: 0644]
TVApps/TVApps/ViewModels/MainPageViewModel.cs

index 3d010df..aa58c74 100755 (executable)
@@ -60,6 +60,8 @@
     <Compile Include="Utils\AppShortcutStorage.cs" />
     <Compile Include="Utils\FileSystemUtils.cs" />
     <Compile Include="Utils\IMediaContentAPIs.cs" />
+    <Compile Include="Utils\IStatePublisher.cs" />
+    <Compile Include="Utils\IStateSubscriber.cs" />
     <Compile Include="Utils\ISystemSettings.cs" />
     <Compile Include="Utils\MediaContentUtils.cs" />
     <Compile Include="Utils\SizeUtils.cs" />
diff --git a/LibTVRefCommonPortable/Utils/IStatePublisher.cs b/LibTVRefCommonPortable/Utils/IStatePublisher.cs
new file mode 100644 (file)
index 0000000..4600c1a
--- /dev/null
@@ -0,0 +1,38 @@
+/*
+ * Copyright (c) 2017 Samsung Electronics Co., Ltd
+ *
+ * Licensed under the Flora License, Version 1.1 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://floralicense.org/license/
+ *
+ * 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.
+ */
+
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace LibTVRefCommonPortable.Utils
+{
+    public enum AppState
+    {
+
+    }
+    public interface IStatePublisher
+    {
+        AppState CurrentState
+        {
+            get;
+            set;
+        }
+
+    }
+}
diff --git a/LibTVRefCommonPortable/Utils/IStateSubscriber.cs b/LibTVRefCommonPortable/Utils/IStateSubscriber.cs
new file mode 100644 (file)
index 0000000..bb59eb7
--- /dev/null
@@ -0,0 +1,29 @@
+/*
+ * Copyright (c) 2017 Samsung Electronics Co., Ltd
+ *
+ * Licensed under the Flora License, Version 1.1 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://floralicense.org/license/
+ *
+ * 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.
+ */
+
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace LibTVRefCommonPortable.Utils
+{
+    public interface IStateSubscriber
+    {
+        void OnStateChanged(AppState state);
+    }
+}
index 529330b..d35cf47 100755 (executable)
     <Compile Include="Properties\AssemblyInfo.cs" />
     <Compile Include="ViewModels\AppsHolder.cs" />
     <Compile Include="ViewModels\AppsListSorter.cs" />
+    <Compile Include="ViewModels\FooterViewModel.cs" />
     <Compile Include="ViewModels\IAppsViewModel.cs" />
+    <Compile Include="ViewModels\ItemViewModel.cs" />
+    <Compile Include="ViewModels\ListViewModel.cs" />
     <Compile Include="ViewModels\MainPageViewModel.cs" />
     <Compile Include="Views\FooterDeleteStatus.xaml.cs">
       <DependentUpon>FooterDeleteStatus.xaml</DependentUpon>
diff --git a/TVApps/TVApps/ViewModels/FooterViewModel.cs b/TVApps/TVApps/ViewModels/FooterViewModel.cs
new file mode 100644 (file)
index 0000000..95d51ac
--- /dev/null
@@ -0,0 +1,33 @@
+/*
+ * Copyright (c) 2017 Samsung Electronics Co., Ltd
+ *
+ * Licensed under the Flora License, Version 1.1 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://floralicense.org/license/
+ *
+ * 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.
+ */
+
+using LibTVRefCommonPortable.Utils;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace TVApps.ViewModels
+{
+    class FooterViewModel : IStateSubscriber
+    {
+        public void OnStateChanged(AppState state)
+        {
+            throw new NotImplementedException();
+        }
+    }
+}
diff --git a/TVApps/TVApps/ViewModels/ItemViewModel.cs b/TVApps/TVApps/ViewModels/ItemViewModel.cs
new file mode 100644 (file)
index 0000000..362e05e
--- /dev/null
@@ -0,0 +1,33 @@
+/*
+ * Copyright (c) 2017 Samsung Electronics Co., Ltd
+ *
+ * Licensed under the Flora License, Version 1.1 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://floralicense.org/license/
+ *
+ * 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.
+ */
+
+using LibTVRefCommonPortable.Utils;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace TVApps.ViewModels
+{
+    class ItemViewModel : IStateSubscriber
+    {
+        public void OnStateChanged(AppState state)
+        {
+            throw new NotImplementedException();
+        }
+    }
+}
diff --git a/TVApps/TVApps/ViewModels/ListViewModel.cs b/TVApps/TVApps/ViewModels/ListViewModel.cs
new file mode 100644 (file)
index 0000000..2f75d1f
--- /dev/null
@@ -0,0 +1,33 @@
+/*
+ * Copyright (c) 2017 Samsung Electronics Co., Ltd
+ *
+ * Licensed under the Flora License, Version 1.1 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://floralicense.org/license/
+ *
+ * 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.
+ */
+
+using LibTVRefCommonPortable.Utils;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace TVApps.ViewModels
+{
+    class ListViewModel : IStateSubscriber
+    {
+        public void OnStateChanged(AppState state)
+        {
+            throw new NotImplementedException();
+        }
+    }
+}
index a61490a..bd30362 100755 (executable)
@@ -49,7 +49,7 @@ namespace TVApps.ViewModels
     /// <summary>
     /// A class for ViewModel of TV Apps
     /// </summary>
-    class MainPageViewModel : INotifyPropertyChanged, IAppsViewModel
+    class MainPageViewModel : INotifyPropertyChanged, IAppsViewModel, IStatePublisher
     {
         /// <summary>
         /// An instance of AppsHolder for getting application list
@@ -262,6 +262,8 @@ namespace TVApps.ViewModels
             }
         }
 
+        public AppState CurrentState { get => throw new NotImplementedException(); set => throw new NotImplementedException(); }
+
         /// <summary>
         /// Constructor
         /// Initialize Commands and EventListeners
@@ -457,6 +459,5 @@ namespace TVApps.ViewModels
                 handler(this, new PropertyChangedEventArgs(propertyName));
             }
         }
-
     }
 }