Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added new PlayerStatusView/Presenter.
iOS: Updated MPfmNavigationController with "Now playing" indicator. Related to issue #405.
- Loading branch information
1 parent
7c70eb3
commit 6a9f2f0
Showing
12 changed files
with
233 additions
and
9 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
29 changes: 29 additions & 0 deletions
29
MPfm/MPfm.MVP/Presenters/Interfaces/IPlayerStatusPresenter.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,29 @@ | ||
// 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.Models; | ||
using MPfm.MVP.Views; | ||
|
||
namespace MPfm.MVP.Presenters.Interfaces | ||
{ | ||
/// <summary> | ||
/// Player status presenter interface. | ||
/// </summary> | ||
public interface IPlayerStatusPresenter : IBasePresenter<IPlayerStatusView> | ||
{ | ||
} | ||
} |
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,55 @@ | ||
// 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.Messages; | ||
using MPfm.MVP.Navigation; | ||
using MPfm.MVP.Presenters.Interfaces; | ||
using MPfm.MVP.Services.Interfaces; | ||
using MPfm.MVP.Views; | ||
using TinyMessenger; | ||
|
||
namespace MPfm.MVP.Presenters | ||
{ | ||
/// <summary> | ||
/// Player status view presenter. | ||
/// </summary> | ||
public class PlayerStatusPresenter : BasePresenter<IPlayerStatusView>, IPlayerStatusPresenter | ||
{ | ||
ITinyMessengerHub _messageHub; | ||
IPlayerService _playerService; | ||
|
||
public PlayerStatusPresenter(ITinyMessengerHub messageHub, IPlayerService playerService) | ||
{ | ||
this._playerService = playerService; | ||
this._messageHub = messageHub; | ||
} | ||
|
||
private void OnPlaylistIndexChanged(PlayerPlaylistIndexChangedMessage message) | ||
{ | ||
//View.RefreshAudioFile(message.Data.AudioFileStarted); | ||
} | ||
|
||
public override void BindView(IPlayerMetadataView view) | ||
{ | ||
// Subscribe to view actions | ||
base.BindView(view); | ||
|
||
_messageHub.Subscribe<PlayerPlaylistIndexChangedMessage>(OnPlaylistIndexChanged); | ||
} | ||
} | ||
} | ||
|
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,29 @@ | ||
// 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 System.Collections.Generic; | ||
using MPfm.Sound.AudioFiles; | ||
|
||
namespace MPfm.MVP.Views | ||
{ | ||
/// <summary> | ||
/// Player status view interface. | ||
/// </summary> | ||
public interface IPlayerStatusView : IBaseView | ||
{ | ||
} | ||
} |
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
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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