Skip to content

Commit

Permalink
WindowsPhone/WindowsStore: Updated projects after changes on other pl…
Browse files Browse the repository at this point in the history
…atforms.
  • Loading branch information
ycastonguay committed Oct 5, 2013
1 parent f2902d2 commit e9c42a3
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 2 deletions.
4 changes: 4 additions & 0 deletions MPfm/MPfm.MVP/MPfm.MVP.WindowsPhone.csproj
Expand Up @@ -138,13 +138,15 @@
<Compile Include="Messages\PlayerSetPositionMessage.cs" />
<Compile Include="Messages\PlaylistListUpdatedMessage.cs" />
<Compile Include="Messages\PlaylistUpdatedMessage.cs" />
<Compile Include="Models\FolderEntity.cs" />
<Compile Include="Models\PlaylistEntity.cs" />
<Compile Include="Navigation\MobileNavigationManager.cs" />
<Compile Include="Presenters\AddMarkerPresenter.cs" />
<Compile Include="Presenters\AddPlaylistPresenter.cs" />
<Compile Include="Presenters\AudioPreferencesPresenter.cs" />
<Compile Include="Presenters\Interfaces\IAddMarkerPresenter.cs" />
<Compile Include="Presenters\Interfaces\IAddPlaylistPresenter.cs" />
<Compile Include="Presenters\Interfaces\ISelectFoldersPresenter.cs" />
<Compile Include="Presenters\Interfaces\ISelectPlaylistPresenter.cs" />
<Compile Include="Presenters\MobileFirstRunPresenter.cs" />
<Compile Include="Presenters\DesktopFirstRunPresenter.cs" />
Expand All @@ -159,6 +161,7 @@
<Compile Include="Presenters\LibraryPreferencesPresenter.cs" />
<Compile Include="Presenters\Interfaces\ILibraryPreferencesPresenter.cs" />
<Compile Include="Presenters\Interfaces\IAudioPreferencesPresenter.cs" />
<Compile Include="Presenters\SelectFoldersPresenter.cs" />
<Compile Include="Presenters\SelectPlaylistPresenter.cs" />
<Compile Include="Presenters\UpdateLibraryPresenter.cs" />
<Compile Include="Models\PlayerPositionEntity.cs" />
Expand All @@ -172,6 +175,7 @@
<Compile Include="Views\ILibraryPreferencesView.cs" />
<Compile Include="Views\IGeneralPreferencesView.cs" />
<Compile Include="Views\IAudioPreferencesView.cs" />
<Compile Include="Views\ISelectFoldersView.cs" />
<Compile Include="Views\ISelectPlaylistView.cs" />
<Compile Include="Views\IUpdateLibraryView.cs" />
<Compile Include="Bootstrap\Bootstrapper.cs" />
Expand Down
4 changes: 4 additions & 0 deletions MPfm/MPfm.MVP/MPfm.MVP.WindowsStore.csproj
Expand Up @@ -105,13 +105,15 @@
<Compile Include="Messages\PlayerSetPositionMessage.cs" />
<Compile Include="Messages\PlaylistListUpdatedMessage.cs" />
<Compile Include="Messages\PlaylistUpdatedMessage.cs" />
<Compile Include="Models\FolderEntity.cs" />
<Compile Include="Models\PlaylistEntity.cs" />
<Compile Include="Navigation\MobileNavigationManager.cs" />
<Compile Include="Presenters\AddMarkerPresenter.cs" />
<Compile Include="Presenters\AddPlaylistPresenter.cs" />
<Compile Include="Presenters\AudioPreferencesPresenter.cs" />
<Compile Include="Presenters\Interfaces\IAddMarkerPresenter.cs" />
<Compile Include="Presenters\Interfaces\IAddPlaylistPresenter.cs" />
<Compile Include="Presenters\Interfaces\ISelectFoldersPresenter.cs" />
<Compile Include="Presenters\Interfaces\ISelectPlaylistPresenter.cs" />
<Compile Include="Presenters\MobileFirstRunPresenter.cs" />
<Compile Include="Presenters\DesktopFirstRunPresenter.cs" />
Expand All @@ -126,6 +128,7 @@
<Compile Include="Presenters\LibraryPreferencesPresenter.cs" />
<Compile Include="Presenters\Interfaces\ILibraryPreferencesPresenter.cs" />
<Compile Include="Presenters\Interfaces\IAudioPreferencesPresenter.cs" />
<Compile Include="Presenters\SelectFoldersPresenter.cs" />
<Compile Include="Presenters\SelectPlaylistPresenter.cs" />
<Compile Include="Presenters\UpdateLibraryPresenter.cs" />
<Compile Include="Models\PlayerPositionEntity.cs" />
Expand All @@ -139,6 +142,7 @@
<Compile Include="Views\ILibraryPreferencesView.cs" />
<Compile Include="Views\IGeneralPreferencesView.cs" />
<Compile Include="Views\IAudioPreferencesView.cs" />
<Compile Include="Views\ISelectFoldersView.cs" />
<Compile Include="Views\ISelectPlaylistView.cs" />
<Compile Include="Views\IUpdateLibraryView.cs" />
<Compile Include="Bootstrap\Bootstrapper.cs" />
Expand Down
7 changes: 5 additions & 2 deletions MPfm/MPfm.MVP/Presenters/SelectFoldersPresenter.cs
Expand Up @@ -99,13 +99,16 @@ private void SearchFoldersRecursive(string path, List<FolderEntity> folders)
{
//Tracing.Log("SelectFoldersPresenter - SearchFoldersRecursive - path: {0} folders.Count: {1}", path, folders.Count);

#if !WINDOWS_PHONE && !WINDOWSSTORE
// Filter out system folders
if (!path.ToLower().Contains("android/data") && !path.ToLower().Contains("/.") && !path.ToLower().EndsWith("/dcim"))
directories = Directory.EnumerateDirectories(path).ToList();
}
#endif

}
catch (Exception ex)
{
Console.WriteLine("SelectFoldersPresenter - SearchFoldersRecursive - path: {0} exception: {1}", path, ex);
Tracing.Log("SelectFoldersPresenter - SearchFoldersRecursive - path: {0} exception: {1}", path, ex);
}

foreach (var directory in directories)
Expand Down
Expand Up @@ -85,6 +85,11 @@ public string GetMusicFolderPath()
return string.Empty;
}

public List<string> GetRootFolderPaths()
{
return new List<string>();
}

public void ReportNetworkStateChange(NetworkState networkState)
{
}
Expand Down
Expand Up @@ -16,6 +16,7 @@
// along with MPfm. If not, see <http://www.gnu.org/licenses/>.

using System;
using System.Collections.Generic;
using System.Linq;
using Windows.Networking.Connectivity;
using MPfm.Library;
Expand Down Expand Up @@ -67,6 +68,11 @@ public string GetMusicFolderPath()
return string.Empty;
}

public List<string> GetRootFolderPaths()
{
return new List<string>();
}

public void ReportNetworkStateChange(NetworkState networkState)
{
}
Expand Down

0 comments on commit e9c42a3

Please sign in to comment.