/*
* Copyright (C) 2005-2013 Team XBMC
- * http://www.xbmc.org
+ * http://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
m_pObserver=NULL;
m_pProgressCallback=NULL;
m_pVecItems = NULL;
+ m_bIsLoading = false;
}
CBackgroundInfoLoader::~CBackgroundInfoLoader()
}
OnLoaderFinish();
+ m_bIsLoading = false;
}
catch (...)
{
+ m_bIsLoading = false;
CLog::Log(LOGERROR, "%s - Unhandled exception", __FUNCTION__);
}
}
m_pVecItems = &items;
m_bStop = false;
+ m_bIsLoading = true;
m_thread = new CThread(this, "BackgroundLoader");
m_thread->Create();
}
m_vecItems.clear();
m_pVecItems = NULL;
+ m_bIsLoading = false;
}
bool CBackgroundInfoLoader::IsLoading()
{
- return m_thread != NULL;
+ return m_bIsLoading;
}
void CBackgroundInfoLoader::SetObserver(IBackgroundLoaderObserver* pObserver)