[pvr] add IsStopping() and IsStopped methods
authorSam Stenvall <neggelandia@gmail.com>
Tue, 19 Nov 2013 11:34:04 +0000 (13:34 +0200)
committerSam Stenvall <neggelandia@gmail.com>
Tue, 3 Dec 2013 09:43:25 +0000 (11:43 +0200)
xbmc/pvr/PVRManager.cpp
xbmc/pvr/PVRManager.h

index 6fec991..b6a9c80 100644 (file)
@@ -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);
index b4f466f..f29a4d1 100644 (file)
@@ -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.