Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
iOS: Updated project after changes on other platforms.
- Loading branch information
Showing
62 changed files
with
1,435 additions
and
1,257 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
MPfm/MPfm.Android/Classes/Providers/AndroidAppConfigProvider.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// Copyright © 2011-2013 Yanick Castonguay | ||
// | ||
// This file is part of MPfm. | ||
// | ||
// MPfm is free software: you can redistribute it and/or modify | ||
// it under the terms of the GNU General Public License as published by | ||
// the Free Software Foundation, either version 3 of the License, or | ||
// (at your option) any later version. | ||
// | ||
// MPfm is distributed in the hope that it will be useful, | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
// GNU General Public License for more details. | ||
// | ||
// You should have received a copy of the GNU General Public License | ||
// along with MPfm. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
using MPfm.MVP.Config; | ||
using MPfm.MVP.Config.Providers; | ||
|
||
namespace MPfm.Android.Classes.Providers | ||
{ | ||
public class AndroidAppConfigProvider : IAppConfigProvider | ||
{ | ||
public RootAppConfig Load(string filePath) | ||
{ | ||
return new RootAppConfig(); | ||
} | ||
|
||
public void Save(string filePath, RootAppConfig config) | ||
{ | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
// Copyright © 2011-2013 Yanick Castonguay | ||
// | ||
// This file is part of MPfm. | ||
// | ||
// MPfm is free software: you can redistribute it and/or modify | ||
// it under the terms of the GNU General Public License as published by | ||
// the Free Software Foundation, either version 3 of the License, or | ||
// (at your option) any later version. | ||
// | ||
// MPfm is distributed in the hope that it will be useful, | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
// GNU General Public License for more details. | ||
// | ||
// You should have received a copy of the GNU General Public License | ||
// along with MPfm. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
using MPfm.MVP.Bootstrap; | ||
using MPfm.MVP.Config.Providers; | ||
using MPfm.MVP.Helpers; | ||
using MPfm.Sound.AudioFiles; | ||
|
||
namespace MPfm.MVP.Config | ||
{ | ||
/// <summary> | ||
/// Singleton containing all application settings. | ||
/// </summary> | ||
public class AppConfig | ||
{ | ||
private readonly IAppConfigProvider _provider; | ||
public RootAppConfig Root { get; private set; } | ||
|
||
#region Singleton | ||
|
||
private static AppConfig instance; | ||
/// <summary> | ||
/// AppConfig instance. | ||
/// </summary> | ||
public static AppConfig Instance | ||
{ | ||
get | ||
{ | ||
if(instance == null) | ||
instance = new AppConfig(); | ||
return instance; | ||
} | ||
} | ||
|
||
#endregion | ||
|
||
public AppConfig() | ||
{ | ||
_provider = Bootstrapper.GetContainer().Resolve<IAppConfigProvider>(); | ||
Root = new RootAppConfig(); | ||
} | ||
|
||
public void Load() | ||
{ | ||
Root = _provider.Load(ConfigurationHelper.ConfigurationFilePath); | ||
} | ||
|
||
public void Save() | ||
{ | ||
_provider.Save(ConfigurationHelper.ConfigurationFilePath, Root); | ||
} | ||
} | ||
} |
Oops, something went wrong.