Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

changed: remove unused IFile callback from GUIWindowFileManager

  • Loading branch information...
commit 91313c382fb1f3f0cd26388936b2992e71a1fb86 1 parent 5024470
spiff authored
View
1  xbmc/interfaces/http-api/XBMChttp.cpp
@@ -47,6 +47,7 @@
#include "settings/AdvancedSettings.h"
#include "settings/GUISettings.h"
#include "filesystem/DirectoryFactory.h"
+#include "filesystem/File.h"
#include "guilib/LocalizeStrings.h"
#include "utils/StringUtils.h"
#include "utils/TimeUtils.h"
View
1  xbmc/windows/GUIMediaWindow.cpp
@@ -54,6 +54,7 @@
#include "utils/URIUtils.h"
#include "guilib/LocalizeStrings.h"
#include "utils/TimeUtils.h"
+#include "filesystem/File.h"
#include "filesystem/FileDirectoryFactory.h"
#include "utils/log.h"
#include "utils/FileUtils.h"
View
14 xbmc/windows/GUIWindowFileManager.cpp
@@ -843,20 +843,6 @@ void CGUIWindowFileManager::GoParentFolder(int iList)
Update(iList, strPath);
}
-bool CGUIWindowFileManager::OnFileCallback(void* pContext, int ipercent, float avgSpeed)
-{
- if (m_dlgProgress)
- {
- m_dlgProgress->SetPercentage(ipercent);
- CStdString speedString;
- speedString.Format("%2.2f KB/s", avgSpeed / 1024);
- m_dlgProgress->SetLine(0, speedString);
- m_dlgProgress->Progress();
- if (m_dlgProgress->IsCanceled()) return false;
- }
- return true;
-}
-
/// \brief Build a directory history string
/// \param pItem Item to build the history string from
/// \param strHistoryString History string build as return value
View
3  xbmc/windows/GUIWindowFileManager.h
@@ -24,7 +24,6 @@
#include "filesystem/VirtualDirectory.h"
#include "filesystem/DirectoryHistory.h"
#include "threads/CriticalSection.h"
-#include "filesystem/File.h"
#include "utils/Job.h"
class CFileItem;
@@ -33,7 +32,6 @@ class CGUIDialogProgress;
class CGUIWindowFileManager :
public CGUIWindow,
- public XFILE::IFileCallback,
public IJobCallback
{
public:
@@ -43,7 +41,6 @@ class CGUIWindowFileManager :
virtual bool OnMessage(CGUIMessage& message);
virtual bool OnAction(const CAction &action);
virtual bool OnBack(int actionID);
- virtual bool OnFileCallback(void* pContext, int ipercent, float avgSpeed);
const CFileItem &CurrentDirectory(int indx) const;
void ResetProgressBar(bool showProgress = true);
Please sign in to comment.
Something went wrong with that request. Please try again.