Skip to content

Commit

Permalink
Merge pull request #9947 from notspiff/remove_pp_include
Browse files Browse the repository at this point in the history
changed: get rid of PlayListPlayer include in Application.h
  • Loading branch information
MartijnKaijser committed Jun 11, 2016
2 parents 5c84a06 + 6e5c67a commit af1fef1
Show file tree
Hide file tree
Showing 12 changed files with 18 additions and 3 deletions.
10 changes: 7 additions & 3 deletions xbmc/Application.h
Expand Up @@ -52,9 +52,13 @@ namespace MEDIA_DETECT
class CAutorun;
}

namespace PLAYLIST
{
class CPlayList;
}

#include "cores/IPlayerCallback.h"
#include "cores/playercorefactory/PlayerCoreFactory.h"
#include "PlayListPlayer.h"
#include "settings/lib/ISettingsHandler.h"
#include "settings/lib/ISettingCallback.h"
#include "settings/lib/ISubSettings.h"
Expand Down Expand Up @@ -177,8 +181,8 @@ class CApplication : public CXBApplicationEx, public IPlayerCallback, public IMs
virtual int GetMessageMask() override;
virtual void OnApplicationMessage(KODI::MESSAGING::ThreadMessage* pMsg) override;

bool PlayMedia(const CFileItem& item, const std::string &player, int iPlaylist = PLAYLIST_MUSIC);
bool PlayMediaSync(const CFileItem& item, int iPlaylist = PLAYLIST_MUSIC);
bool PlayMedia(const CFileItem& item, const std::string &player, int iPlaylist);
bool PlayMediaSync(const CFileItem& item, int iPlaylist);
bool ProcessAndStartPlaylist(const std::string& strPlayList, PLAYLIST::CPlayList& playlist, int iPlaylist, int track=0);
PlayBackRet PlayFile(CFileItem item, const std::string& player, bool bRestart = false);
void SaveFileState(bool bForeground = false);
Expand Down
1 change: 1 addition & 0 deletions xbmc/ApplicationPlayer.cpp
Expand Up @@ -21,6 +21,7 @@
#include "ApplicationPlayer.h"
#include "cores/IPlayer.h"
#include "Application.h"
#include "PlayListPlayer.h"
#include "settings/MediaSettings.h"

CApplicationPlayer::CApplicationPlayer()
Expand Down
1 change: 1 addition & 0 deletions xbmc/GUIInfoManager.cpp
Expand Up @@ -44,6 +44,7 @@
#include "music/tags/MusicInfoTag.h"
#include "guilib/IGUIContainer.h"
#include "guilib/GUIWindowManager.h"
#include "PlayListPlayer.h"
#include "playlists/PlayList.h"
#include "profiles/ProfilesManager.h"
#include "windowing/WindowingFactory.h"
Expand Down
1 change: 1 addition & 0 deletions xbmc/interfaces/legacy/ModuleXbmc.cpp
Expand Up @@ -43,6 +43,7 @@
#include "utils/Crc32.h"
#include "FileItem.h"
#include "LangInfo.h"
#include "PlayListPlayer.h"
#include "settings/AdvancedSettings.h"
#include "settings/Settings.h"
#include "guilib/TextureManager.h"
Expand Down
1 change: 1 addition & 0 deletions xbmc/network/AirPlayServer.cpp
Expand Up @@ -37,6 +37,7 @@
#include "FileItem.h"
#include "Application.h"
#include "messaging/ApplicationMessenger.h"
#include "PlayListPlayer.h"
#include "utils/md5.h"
#include "utils/Variant.h"
#include "settings/Settings.h"
Expand Down
1 change: 1 addition & 0 deletions xbmc/network/upnp/UPnPRenderer.cpp
Expand Up @@ -34,6 +34,7 @@
#include "pictures/PictureInfoTag.h"
#include "interfaces/AnnouncementManager.h"
#include "settings/Settings.h"
#include "PlayListPlayer.h"
#include "TextureDatabase.h"
#include "ThumbLoader.h"
#include "URL.h"
Expand Down
1 change: 1 addition & 0 deletions xbmc/pictures/GUIWindowPictures.cpp
Expand Up @@ -35,6 +35,7 @@
#include "input/Key.h"
#include "dialogs/GUIDialogOK.h"
#include "view/GUIViewState.h"
#include "PlayListPlayer.h"
#include "playlists/PlayList.h"
#include "settings/MediaSourceSettings.h"
#include "settings/Settings.h"
Expand Down
1 change: 1 addition & 0 deletions xbmc/pictures/GUIWindowSlideShow.cpp
Expand Up @@ -45,6 +45,7 @@
#include "interfaces/AnnouncementManager.h"
#include "pictures/GUIViewStatePictures.h"
#include "pictures/PictureThumbLoader.h"
#include "PlayListPlayer.h"
#ifdef TARGET_POSIX
#include "linux/XTimeUtils.h"
#endif
Expand Down
1 change: 1 addition & 0 deletions xbmc/platform/darwin/ios-common/AnnounceReceiver.mm
Expand Up @@ -31,6 +31,7 @@
#import "music/MusicDatabase.h"
#import "TextureCache.h"
#import "filesystem/SpecialProtocol.h"
#include "PlayListPlayer.h"
#import "playlists/PlayList.h"

#import "threads/Atomics.h"
Expand Down
1 change: 1 addition & 0 deletions xbmc/pvr/PVRManager.cpp
Expand Up @@ -39,6 +39,7 @@
#include "messaging/helpers/DialogHelper.h"
#include "music/tags/MusicInfoTag.h"
#include "network/Network.h"
#include "PlayListPlayer.h"
#include "pvr/addons/PVRClients.h"
#include "pvr/channels/PVRChannel.h"
#include "pvr/channels/PVRChannelGroupInternal.h"
Expand Down
1 change: 1 addition & 0 deletions xbmc/windows/GUIWindowFileManager.cpp
Expand Up @@ -41,6 +41,7 @@
#include "guilib/GUIKeyboardFactory.h"
#include "dialogs/GUIDialogProgress.h"
#include "filesystem/FavouritesDirectory.h"
#include "PlayListPlayer.h"
#include "playlists/PlayList.h"
#include "storage/MediaManager.h"
#include "settings/MediaSourceSettings.h"
Expand Down
1 change: 1 addition & 0 deletions xbmc/windows/GUIWindowLoginScreen.cpp
Expand Up @@ -42,6 +42,7 @@
#endif
#include "messaging/ApplicationMessenger.h"
#include "network/Network.h"
#include "PlayListPlayer.h"
#include "profiles/Profile.h"
#include "profiles/ProfilesManager.h"
#include "profiles/dialogs/GUIDialogProfileSettings.h"
Expand Down

0 comments on commit af1fef1

Please sign in to comment.