changed: split off IPlayer callback to a separate file
authorspiff <spiff@xbmc.org>
Sat, 16 Mar 2013 16:26:58 +0000 (17:26 +0100)
committerspiff <spiff@xbmc.org>
Sat, 16 Mar 2013 21:34:56 +0000 (22:34 +0100)
helps keep rebuilds down if IPlayer.h is touched.
brings it down from 149 files rebuilt to 30 (149 for new file).
thus no spurious rebuilds was found but callback should change
less

28 files changed:
xbmc/Application.cpp
xbmc/Application.h
xbmc/ApplicationMessenger.cpp
xbmc/GUIInfoManager.cpp
xbmc/addons/Visualisation.cpp
xbmc/cores/IPlayer.h
xbmc/cores/IPlayerCallback.h [new file with mode: 0644]
xbmc/cores/VideoRenderers/LinuxRendererGL.cpp
xbmc/cores/playercorefactory/PlayerCoreFactory.h
xbmc/guilib/GUIVideoControl.cpp
xbmc/guilib/GraphicContext.cpp
xbmc/interfaces/Builtins.cpp
xbmc/interfaces/json-rpc/PlayerOperations.cpp
xbmc/interfaces/legacy/Player.cpp
xbmc/interfaces/python/XBPython.h
xbmc/music/karaoke/karaokewindowbackground.h
xbmc/music/windows/GUIWindowMusicBase.cpp
xbmc/music/windows/GUIWindowMusicSongs.cpp
xbmc/network/AirPlayServer.cpp
xbmc/pvr/addons/PVRClients.cpp
xbmc/pvr/dialogs/GUIDialogPVRChannelsOSD.cpp
xbmc/pvr/windows/GUIWindowPVRCommon.cpp
xbmc/video/Teletext.cpp
xbmc/video/dialogs/GUIDialogAudioSubtitleSettings.cpp
xbmc/video/dialogs/GUIDialogTeletext.cpp
xbmc/video/dialogs/GUIDialogVideoBookmarks.cpp
xbmc/video/dialogs/GUIDialogVideoOSD.cpp
xbmc/video/windows/GUIWindowFullScreen.cpp

index b82c641..a976ecb 100644 (file)
@@ -30,6 +30,7 @@
 #include "Util.h"
 #include "URL.h"
 #include "guilib/TextureManager.h"
+#include "cores/IPlayer.h"
 #include "cores/dvdplayer/DVDFileInfo.h"
 #include "cores/AudioEngine/AEFactory.h"
 #include "cores/AudioEngine/Utils/AEUtil.h"
index 9bd8ab4..0b97e1c 100644 (file)
@@ -44,7 +44,7 @@ namespace MEDIA_DETECT
   class CAutorun;
 }
 
-#include "cores/IPlayer.h"
+#include "cores/IPlayerCallback.h"
 #include "cores/playercorefactory/PlayerCoreFactory.h"
 #include "PlayListPlayer.h"
 #if !defined(_WIN32) && defined(HAS_DVD_DRIVE)
@@ -68,6 +68,7 @@ class DPMSSupport;
 class CSplash;
 class CBookmark;
 class CWebServer;
+class IPlayer;
 #ifdef HAS_WEB_SERVER
 class CWebServer;
 class CHTTPImageHandler;
index 2d6da98..dd5696e 100644 (file)
@@ -40,6 +40,7 @@
 #include "guilib/GUIDialog.h"
 #include "GUIInfoManager.h"
 #include "utils/Splash.h"
+#include "cores/IPlayer.h"
 #include "cores/VideoRenderers/RenderManager.h"
 #include "cores/AudioEngine/AEFactory.h"
 #include "music/tags/MusicInfoTag.h"
index 686f31d..8a08de0 100644 (file)
@@ -74,6 +74,7 @@
 #include "video/VideoThumbLoader.h"
 #include "music/MusicThumbLoader.h"
 #include "video/VideoDatabase.h"
+#include "cores/IPlayer.h"
 #include "cores/AudioEngine/Utils/AEUtil.h"
 
 #define SYSHEATUPDATEINTERVAL 60000
index 418dcbc..f275fe9 100644 (file)
@@ -28,6 +28,7 @@
 #include "windowing/WindowingFactory.h"
 #include "utils/URIUtils.h"
 #include "utils/StringUtils.h"
+#include "cores/IPlayer.h"
 #include "cores/AudioEngine/AEFactory.h"
 #include "cores/AudioEngine/Utils/AEConvert.h"
 #ifdef _LINUX
index 08c5aa2..6b713dc 100644 (file)
@@ -22,6 +22,7 @@
 
 #include "system.h" // until we get sane int types used here
 #include "IAudioCallback.h"
+#include "IPlayerCallback.h"
 #include "utils/StdString.h"
 #include "guilib/Geometry.h"
 
@@ -35,21 +36,6 @@ namespace PVR
   class CPVRChannel;
 }
 
-class IPlayerCallback
-{
-public:
-  virtual ~IPlayerCallback() {}
-  virtual void OnPlayBackEnded() = 0;
-  virtual void OnPlayBackStarted() = 0;
-  virtual void OnPlayBackPaused() {};
-  virtual void OnPlayBackResumed() {};
-  virtual void OnPlayBackStopped() = 0;
-  virtual void OnQueueNextItem() = 0;
-  virtual void OnPlayBackSeek(int iTime, int seekOffset) {};
-  virtual void OnPlayBackSeekChapter(int iChapter) {};
-  virtual void OnPlayBackSpeedChanged(int iSpeed) {};
-};
-
 class CPlayerOptions
 {
 public:
diff --git a/xbmc/cores/IPlayerCallback.h b/xbmc/cores/IPlayerCallback.h
new file mode 100644 (file)
index 0000000..1ea65e1
--- /dev/null
@@ -0,0 +1,36 @@
+/*
+ *      Copyright (C) 2005-2013 Team XBMC
+ *      http://www.xbmc.org
+ *
+ *  This Program 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 2, or (at your option)
+ *  any later version.
+ *
+ *  This Program 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 XBMC; see the file COPYING.  If not, see
+ *  <http://www.gnu.org/licenses/>.
+ *
+ */
+
+#pragma once
+
+class IPlayerCallback
+{
+public:
+  virtual ~IPlayerCallback() {}
+  virtual void OnPlayBackEnded() = 0;
+  virtual void OnPlayBackStarted() = 0;
+  virtual void OnPlayBackPaused() {};
+  virtual void OnPlayBackResumed() {};
+  virtual void OnPlayBackStopped() = 0;
+  virtual void OnQueueNextItem() = 0;
+  virtual void OnPlayBackSeek(int iTime, int seekOffset) {};
+  virtual void OnPlayBackSeekChapter(int iChapter) {};
+  virtual void OnPlayBackSpeedChanged(int iSpeed) {};
+};
index 473e014..7771daf 100644 (file)
@@ -45,6 +45,7 @@
 #include "utils/GLUtils.h"
 #include "RenderCapture.h"
 #include "RenderFormats.h"
+#include "cores/IPlayer.h"
 
 #ifdef HAVE_LIBVDPAU
 #include "cores/dvdplayer/DVDCodecs/Video/VDPAU.h"
index 97fc87e..9e964ba 100644 (file)
  *
  */
 
-#include "cores/IPlayer.h"
+#include "cores/IPlayerCallback.h"
 #include "threads/CriticalSection.h"
+#include "utils/StdString.h"
+
+#include <vector>
 
 /*----------------------------------------------------------------------
 |   forward references
 +---------------------------------------------------------------------*/
 class TiXmlElement;
+class CFileItem;
 class CPlayerCoreConfig;
 class CPlayerSelectionRule;
+class IPlayer;
 
 // do not remove mplayer - will break scripts
 enum EPLAYERCORES
index 5b45108..fbebd4c 100644 (file)
@@ -22,6 +22,7 @@
 #include "GUIVideoControl.h"
 #include "GUIWindowManager.h"
 #include "Application.h"
+#include "cores/IPlayer.h"
 #ifdef HAS_VIDEO_PLAYBACK
 #include "cores/VideoRenderers/RenderManager.h"
 #else
index 3a24abd..ece7fdc 100644 (file)
@@ -33,6 +33,7 @@
 #include "GUIWindowManager.h"
 #include "utils/JobManager.h"
 #include "video/VideoReferenceClock.h"
+#include "cores/IPlayer.h"
 
 using namespace std;
 
index 8f320c4..93d34ea 100644 (file)
@@ -53,6 +53,7 @@
 #include "Util.h"
 #include "URL.h"
 #include "music/MusicDatabase.h"
+#include "cores/IPlayer.h"
 
 #include "filesystem/PluginDirectory.h"
 #ifdef HAS_FILESYSTEM_RAR
index 9bb7f72..f60e6f8 100644 (file)
@@ -41,6 +41,7 @@
 #include "pvr/PVRManager.h"
 #include "pvr/channels/PVRChannel.h"
 #include "pvr/channels/PVRChannelGroupsContainer.h"
+#include "cores/IPlayer.h"
 
 using namespace JSONRPC;
 using namespace PLAYLIST;
index 9d8b76e..433dea9 100644 (file)
@@ -30,6 +30,7 @@
 #include "AddonUtils.h"
 #include "utils/LangCodeExpander.h"
 #include "utils/log.h"
+#include "cores/IPlayer.h"
 
 namespace XBMCAddon
 {
index 23b60cf..3faa99f 100644 (file)
@@ -22,7 +22,7 @@
  */
 
 #include "XBPyThread.h"
-#include "cores/IPlayer.h"
+#include "cores/IPlayerCallback.h"
 #include "threads/CriticalSection.h"
 #include "interfaces/IAnnouncer.h"
 #include "addons/IAddon.h"
index 51e1753..d44b74e 100644 (file)
@@ -23,7 +23,7 @@
 
 // C++ Interface: karaokewindowbackground
 
-#include "cores/IPlayer.h"
+#include "cores/IPlayerCallback.h"
 
 class CGUIWindow;
 class CGUIImage;
index 5f43def..1ede03f 100644 (file)
@@ -64,6 +64,7 @@
 #include "utils/StringUtils.h"
 #include "URL.h"
 #include "music/infoscanner/MusicInfoScanner.h"
+#include "cores/IPlayer.h"
 
 using namespace std;
 using namespace XFILE;
index ec0ccdf..b4674bd 100644 (file)
@@ -37,6 +37,7 @@
 #include "utils/URIUtils.h"
 #include "Autorun.h"
 #include "cdrip/CDDARipper.h"
+#include "cores/IPlayer.h"
 
 #define CONTROL_BTNVIEWASICONS     2
 #define CONTROL_BTNSORTBY          3
index 8cf73af..11daa97 100644 (file)
@@ -37,6 +37,7 @@
 #include "utils/Variant.h"
 #include "guilib/GUIWindowManager.h"
 #include "URL.h"
+#include "cores/IPlayer.h"
 
 #ifdef TARGET_WINDOWS
 #define close closesocket
index 8a0cc1b..dc6324e 100644 (file)
@@ -34,6 +34,7 @@
 #include "pvr/channels/PVRChannelGroupInternal.h"
 #include "pvr/recordings/PVRRecordings.h"
 #include "pvr/timers/PVRTimers.h"
+#include "cores/IPlayer.h"
 
 #ifdef HAS_VIDEO_PLAYBACK
 #include "cores/VideoRenderers/RenderManager.h"
index 8b94e26..0334a66 100644 (file)
@@ -30,6 +30,7 @@
 #include "view/ViewState.h"
 #include "settings/GUISettings.h"
 #include "GUIInfoManager.h"
+#include "cores/IPlayer.h"
 
 #include "pvr/PVRManager.h"
 #include "pvr/channels/PVRChannelGroupsContainer.h"
index b92e115..06e3b38 100644 (file)
@@ -45,6 +45,7 @@
 #include "utils/log.h"
 #include "utils/URIUtils.h"
 #include "GUIUserMessages.h"
+#include "cores/IPlayer.h"
 
 using namespace std;
 using namespace PVR;
index bb74f90..edddd2d 100644 (file)
@@ -32,6 +32,7 @@
 #include "utils/TimeUtils.h"
 #include "filesystem/SpecialProtocol.h"
 #include "guilib/GraphicContext.h"
+#include "cores/IPlayer.h"
 
 #ifdef HAS_SDL
 #include <SDL/SDL_stdinc.h>
index ac4d6a6..06ae29b 100644 (file)
@@ -37,6 +37,7 @@
 #include "guilib/LocalizeStrings.h"
 #include "pvr/PVRManager.h"
 #include "cores/AudioEngine/Utils/AEUtil.h"
+#include "cores/IPlayer.h"
 
 using namespace std;
 using namespace XFILE;
index 91042c9..f70730c 100644 (file)
@@ -27,6 +27,7 @@
 #include "settings/Settings.h"
 #include "guilib/LocalizeStrings.h"
 #include "dialogs/GUIDialogKaiToast.h"
+#include "cores/IPlayer.h"
 
 using namespace std;
 
index 4ed7715..c095fc5 100644 (file)
@@ -41,6 +41,7 @@
 #include "utils/log.h"
 #include "utils/Variant.h"
 #include "Util.h"
+#include "cores/IPlayer.h"
 
 using namespace std;
 
index 20c879f..ffe3c68 100644 (file)
@@ -24,6 +24,7 @@
 #include "GUIUserMessages.h"
 #include "guilib/GUIWindowManager.h"
 #include "input/MouseStat.h"
+#include "cores/IPlayer.h"
 
 #include "pvr/PVRManager.h"
 #include "pvr/channels/PVRChannelGroupsContainer.h"
index fb11628..e7d0dbc 100644 (file)
@@ -56,6 +56,7 @@
 #include "pvr/PVRManager.h"
 #include "pvr/channels/PVRChannelGroupsContainer.h"
 #include "windowing/WindowingFactory.h"
+#include "cores/IPlayer.h"
 
 #include <stdio.h>
 #include <algorithm>