f670ca05dd608c9d5b0300ca1dc493f6ffd8afa1
Stefan Schuermans first version, plays videos...

Stefan Schuermans authored 13 years ago

src/noarch/Player.h   1) /* Blinker
Stefan Schuermans update copyright years

Stefan Schuermans authored 10 years ago

src/noarch/Player.h   2)    Copyright 2011-2014 Stefan Schuermans <stefan@blinkenarea.org>
Stefan Schuermans first version, plays videos...

Stefan Schuermans authored 13 years ago

src/noarch/Player.h   3)    Copyleft GNU public license - http://www.gnu.org/copyleft/gpl.html
src/noarch/Player.h   4)    a blinkenarea.org project */
src/noarch/Player.h   5) 
Stefan Schuermans namespace for preprocessor...

Stefan Schuermans authored 12 years ago

src/noarch/Player.h   6) #ifndef BLINKER_PLAYER_H
src/noarch/Player.h   7) #define BLINKER_PLAYER_H
Stefan Schuermans first version, plays videos...

Stefan Schuermans authored 13 years ago

src/noarch/Player.h   8) 
src/noarch/Player.h   9) #include <list>
src/noarch/Player.h  10) #include <string>
src/noarch/Player.h  11) 
src/noarch/Player.h  12) #include <BlinkenLib/BlinkenMovie.h>
src/noarch/Player.h  13) 
src/noarch/Player.h  14) #include "Directory.h"
src/noarch/Player.h  15) #include "File.h"
Stefan Schuermans implemented halting player...

Stefan Schuermans authored 12 years ago

src/noarch/Player.h  16) #include "InStreamFile.h"
Stefan Schuermans converted player module to...

Stefan Schuermans authored 12 years ago

src/noarch/Player.h  17) #include "ListTracker.h"
Stefan Schuermans put all managers in one str...

Stefan Schuermans authored 12 years ago

src/noarch/Player.h  18) #include "Mgrs.h"
Stefan Schuermans implemented halting player...

Stefan Schuermans authored 12 years ago

src/noarch/Player.h  19) #include "Module.h"
Stefan Schuermans implemented specialized set...

Stefan Schuermans authored 12 years ago

src/noarch/Player.h  20) #include "OutStreamFile.h"
Stefan Schuermans implemented halting player...

Stefan Schuermans authored 12 years ago

src/noarch/Player.h  21) #include "StreamRecv.h"
Stefan Schuermans first version, plays videos...

Stefan Schuermans authored 13 years ago

src/noarch/Player.h  22) #include "Time.h"
src/noarch/Player.h  23) #include "TimeCallee.h"
src/noarch/Player.h  24) 
src/noarch/Player.h  25) namespace Blinker {
src/noarch/Player.h  26) 
src/noarch/Player.h  27) /// a movie player
Stefan Schuermans implemented halting player...

Stefan Schuermans authored 12 years ago

src/noarch/Player.h  28) class Player: public Module, public StreamRecv, public TimeCallee
Stefan Schuermans first version, plays videos...

Stefan Schuermans authored 13 years ago

src/noarch/Player.h  29) {
src/noarch/Player.h  30) protected:
Stefan Schuermans converted player module to...

Stefan Schuermans authored 12 years ago

src/noarch/Player.h  31)   /// movie in playlist
src/noarch/Player.h  32)   class Movie;
src/noarch/Player.h  33) 
src/noarch/Player.h  34)   /// playlist tracker
src/noarch/Player.h  35)   typedef ListTracker<Player, Movie, File> PlaylistTracker;
src/noarch/Player.h  36) 
src/noarch/Player.h  37)   /// playlist iterator
src/noarch/Player.h  38)   typedef PlaylistTracker::ListIt PlaylistIt;
Stefan Schuermans first version, plays videos...

Stefan Schuermans authored 13 years ago

src/noarch/Player.h  39) 
src/noarch/Player.h  40) public:
src/noarch/Player.h  41)   /**
src/noarch/Player.h  42)    * @brief constructor
Stefan Schuermans make modules know their name

Stefan Schuermans authored 12 years ago

src/noarch/Player.h  43)    * @param[in] name module name
Stefan Schuermans put all managers in one str...

Stefan Schuermans authored 12 years ago

src/noarch/Player.h  44)    * @param[in] mgrs managers
Stefan Schuermans first version, plays videos...

Stefan Schuermans authored 13 years ago

src/noarch/Player.h  45)    * @param[in] dirBase base directory
src/noarch/Player.h  46)    */
Stefan Schuermans make modules know their name

Stefan Schuermans authored 12 years ago

src/noarch/Player.h  47)   Player(const std::string &name, Mgrs &mgrs, const Directory &dirBase);
Stefan Schuermans first version, plays videos...

Stefan Schuermans authored 13 years ago

src/noarch/Player.h  48) 
src/noarch/Player.h  49)   /// virtual destructor
src/noarch/Player.h  50)   virtual ~Player();
src/noarch/Player.h  51) 
src/noarch/Player.h  52) private:
src/noarch/Player.h  53)   /// copy constructor disabled
Stefan Schuermans whitespace fixes

Stefan Schuermans authored 13 years ago

src/noarch/Player.h  54)   Player(const Player &that);
Stefan Schuermans first version, plays videos...

Stefan Schuermans authored 13 years ago

src/noarch/Player.h  55) 
src/noarch/Player.h  56)   /// assignment operator disabled
Stefan Schuermans implemented base class for...

Stefan Schuermans authored 13 years ago

src/noarch/Player.h  57)   const Player & operator=(const Player &that);
Stefan Schuermans first version, plays videos...

Stefan Schuermans authored 13 years ago

src/noarch/Player.h  58) 
src/noarch/Player.h  59) public:
Stefan Schuermans implemented base class for...

Stefan Schuermans authored 13 years ago

src/noarch/Player.h  60)   /// check for update of configuration
src/noarch/Player.h  61)   virtual void updateConfig();
src/noarch/Player.h  62) 
Stefan Schuermans implemented halting player...

Stefan Schuermans authored 12 years ago

src/noarch/Player.h  63)   /**
src/noarch/Player.h  64)    * @brief set current frame
src/noarch/Player.h  65)    * @param[in] stream stream name
src/noarch/Player.h  66)    * @param[in] pFrame current frame (NULL for none)
src/noarch/Player.h  67)    */
src/noarch/Player.h  68)   virtual void setFrame(const std::string &stream, stBlinkenFrame *pFrame);
src/noarch/Player.h  69) 
Stefan Schuermans fixed comment typo

Stefan Schuermans authored 12 years ago

src/noarch/Player.h  70)   /// callback when requested time reached
Stefan Schuermans first version, plays videos...

Stefan Schuermans authored 13 years ago

src/noarch/Player.h  71)   virtual void timeCall();
src/noarch/Player.h  72) 
src/noarch/Player.h  73) protected:
Stefan Schuermans converted player module to...

Stefan Schuermans authored 12 years ago

src/noarch/Player.h  74)   /// check if current movie changed and react
src/noarch/Player.h  75)   void checkCurChanged();
Stefan Schuermans implemented automatic check...

Stefan Schuermans authored 13 years ago

src/noarch/Player.h  76) 
src/noarch/Player.h  77)   /// process current frame
src/noarch/Player.h  78)   void procFrame();
src/noarch/Player.h  79) 
src/noarch/Player.h  80)   /// send current frame to output stream
src/noarch/Player.h  81)   void sendFrame();
Stefan Schuermans first version, plays videos...

Stefan Schuermans authored 13 years ago

src/noarch/Player.h  82) 
src/noarch/Player.h  83) protected:
Stefan Schuermans converted player module to...

Stefan Schuermans authored 12 years ago

src/noarch/Player.h  84)   OutStreamFile   m_fileOutStream;   ///< output stream name file
Stefan Schuermans implemented halting player...

Stefan Schuermans authored 12 years ago

src/noarch/Player.h  85)   InStreamFile    m_fileHaltStream;  /**< halt stream name file
src/noarch/Player.h  86)                                           (player halts if stream active) */
Stefan Schuermans converted player module to...

Stefan Schuermans authored 12 years ago

src/noarch/Player.h  87)   PlaylistTracker m_playlistTracker; ///< current playlist
src/noarch/Player.h  88)   bool            m_curValid;        ///< if there is a current frame
src/noarch/Player.h  89)   PlaylistIt      m_curEntry;        ///< current playlist entry
src/noarch/Player.h  90)   int             m_curFrame;        ///< current frame in movie
src/noarch/Player.h  91)   bool            m_curChange;       ///< current movie changed
Stefan Schuermans implemented halting player...

Stefan Schuermans authored 12 years ago

src/noarch/Player.h  92)   bool            m_halted;          ///< if player is halted
src/noarch/Player.h  93)   Time            m_remainTime;      /**< remaining time of current frame
src/noarch/Player.h  94)                                           (valid if m_curValid && m_halted) */
src/noarch/Player.h  95)   Time            m_nextTime;        /**< when to show next frame
src/noarch/Player.h  96)                                           (valid if m_curValid && !m_halted) */
Stefan Schuermans first version, plays videos...

Stefan Schuermans authored 13 years ago

src/noarch/Player.h  97) }; // class Player
src/noarch/Player.h  98) 
src/noarch/Player.h  99) } // namespace Blinker
src/noarch/Player.h 100) 
Stefan Schuermans namespace for preprocessor...

Stefan Schuermans authored 12 years ago

src/noarch/Player.h 101) #endif // #ifndef BLINKER_PLAYER_H