add function to get current frame
Stefan Schuermans

Stefan Schuermans commited on 2011-11-13 20:53:37
Showing 2 changed files, with 18 additions and 0 deletions.

... ...
@@ -84,5 +84,16 @@ void Stream::setNoFrame()
84 84
     (*it)->setNoFrame();
85 85
 }
86 86
 
87
+/**
88
+ * @brief get current frame
89
+ * @param[out] pFrame current frame
90
+ * @return if a current frame exists
91
+ */
92
+bool Stream::getCurFrame(stBlinkenFrame *&pFrame)
93
+{
94
+  pFrame = m_pFrame;
95
+  return m_pFrame;
96
+}
97
+
87 98
 } // namespace Blinker
88 99
 
... ...
@@ -50,6 +50,13 @@ public:
50 50
   /// set current frame to none
51 51
   virtual void setNoFrame();
52 52
 
53
+  /**
54
+   * @brief get current frame
55
+   * @param[out] pFrame current frame
56
+   * @return if a current frame exists
57
+   */
58
+  bool getCurFrame(stBlinkenFrame *&pFrame);
59
+
53 60
 protected:
54 61
   /// current frame (or NULL if no frame)
55 62
   stBlinkenFrame *m_pFrame;
56 63