Permalink
Browse files

[pvr] add IsStopping() and IsStopped methods

  • Loading branch information...
Jalle19 committed Nov 19, 2013
1 parent df478f1 commit 8043b29f428ef553c52e1d7030071ffd4528d35e
Showing with 22 additions and 0 deletions.
  1. +10 −0 xbmc/pvr/PVRManager.cpp
  2. +12 −0 xbmc/pvr/PVRManager.h
View
@@ -1346,6 +1346,16 @@ bool CPVRManager::IsStarted(void) const
return GetState() == ManagerStateStarted;
}
+bool CPVRManager::IsStopping() const
+{
+ return GetState() == ManagerStateStopping;
+}
+
+bool CPVRManager::IsStopped() const
+{
+ return GetState() == ManagerStateStopped;
+}
+
bool CPVRManager::EpgsCreated(void) const
{
CSingleLock lock(m_critSection);
View
@@ -228,6 +228,18 @@ namespace PVR
* @return True while the PVRManager is initialising.
*/
bool IsInitialising(void) const;
+
+ /*!
+ * @brief Check whether the PVRManager is stopping
+ * @return True while the PVRManager is stopping.
+ */
+ bool IsStopping(void) const;
+
+ /*!
+ * @brief Check whether the PVRManager has been stopped.
+ * @return True if stopped, false otherwise.
+ */
+ bool IsStopped(void) const;
/*!
* @brief Return the channel that is currently playing.

0 comments on commit 8043b29

Please sign in to comment.