Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[pvr] add IsStopping() and IsStopped methods

  • Loading branch information...
commit 8043b29f428ef553c52e1d7030071ffd4528d35e 1 parent df478f1
@Jalle19 Jalle19 authored
Showing with 22 additions and 0 deletions.
  1. +10 −0 xbmc/pvr/PVRManager.cpp
  2. +12 −0 xbmc/pvr/PVRManager.h
View
10 xbmc/pvr/PVRManager.cpp
@@ -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
12 xbmc/pvr/PVRManager.h
@@ -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.
Please sign in to comment.
Something went wrong with that request. Please try again.