<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" />
--- /dev/null
+/*
+ * 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;
+ }
+
+ }
+}
--- /dev/null
+/*
+ * 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);
+ }
+}
<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>
--- /dev/null
+/*
+ * 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();
+ }
+ }
+}
--- /dev/null
+/*
+ * 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();
+ }
+ }
+}
--- /dev/null
+/*
+ * 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();
+ }
+ }
+}
/// <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
}
}
+ public AppState CurrentState { get => throw new NotImplementedException(); set => throw new NotImplementedException(); }
+
/// <summary>
/// Constructor
/// Initialize Commands and EventListeners
handler(this, new PropertyChangedEventArgs(propertyName));
}
}
-
}
}