f670ca05dd608c9d5b0300ca1dc493f6ffd8afa1
Stefan Schuermans implement operator connecti...

Stefan Schuermans authored 12 years ago

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

Stefan Schuermans authored 10 years ago

src/noarch/OpPrinter.h   2)    Copyright 2011-2014 Stefan Schuermans <stefan@blinkenarea.org>
Stefan Schuermans implement operator connecti...

Stefan Schuermans authored 12 years ago

src/noarch/OpPrinter.h   3)    Copyleft GNU public license - http://www.gnu.org/copyleft/gpl.html
src/noarch/OpPrinter.h   4)    a blinkenarea.org project */
src/noarch/OpPrinter.h   5) 
src/noarch/OpPrinter.h   6) #ifndef BLINKER_OPPRINTER_H
src/noarch/OpPrinter.h   7) #define BLINKER_OPPRINTER_H
src/noarch/OpPrinter.h   8) 
Stefan Schuermans fix operator connection pri...

Stefan Schuermans authored 12 years ago

src/noarch/OpPrinter.h   9) #include <set>
Stefan Schuermans implement operator connecti...

Stefan Schuermans authored 12 years ago

src/noarch/OpPrinter.h  10) #include <string>
src/noarch/OpPrinter.h  11) 
src/noarch/OpPrinter.h  12) #include "Directory.h"
src/noarch/OpPrinter.h  13) #include "File.h"
src/noarch/OpPrinter.h  14) #include "Mgrs.h"
src/noarch/OpPrinter.h  15) #include "Module.h"
src/noarch/OpPrinter.h  16) #include "OpConn.h"
src/noarch/OpPrinter.h  17) #include "OpConnIf.h"
src/noarch/OpPrinter.h  18) #include "OpReqIf.h"
Stefan Schuermans OpPrinter: play sound on co...

Stefan Schuermans authored 12 years ago

src/noarch/OpPrinter.h  19) #include "TimeCallee.h"
Stefan Schuermans implement operator connecti...

Stefan Schuermans authored 12 years ago

src/noarch/OpPrinter.h  20) 
src/noarch/OpPrinter.h  21) namespace Blinker {
src/noarch/OpPrinter.h  22) 
src/noarch/OpPrinter.h  23) /// a operator connection printer
Stefan Schuermans OpPrinter: play sound on co...

Stefan Schuermans authored 12 years ago

src/noarch/OpPrinter.h  24) class OpPrinter: public Module, public OpReqIf, public TimeCallee
Stefan Schuermans implement operator connecti...

Stefan Schuermans authored 12 years ago

src/noarch/OpPrinter.h  25) {
Stefan Schuermans fix operator connection pri...

Stefan Schuermans authored 12 years ago

src/noarch/OpPrinter.h  26) public:
src/noarch/OpPrinter.h  27)   /// type for set of open operator connections
src/noarch/OpPrinter.h  28)   typedef std::set<OpConn *> OpConns;
src/noarch/OpPrinter.h  29) 
Stefan Schuermans implement operator connecti...

Stefan Schuermans authored 12 years ago

src/noarch/OpPrinter.h  30) public:
src/noarch/OpPrinter.h  31)   /**
src/noarch/OpPrinter.h  32)    * @brief constructor
Stefan Schuermans make modules know their name

Stefan Schuermans authored 12 years ago

src/noarch/OpPrinter.h  33)    * @param[in] name module name
Stefan Schuermans implement operator connecti...

Stefan Schuermans authored 12 years ago

src/noarch/OpPrinter.h  34)    * @param[in] mgrs managers
src/noarch/OpPrinter.h  35)    * @param[in] dirBase base directory
src/noarch/OpPrinter.h  36)    */
Stefan Schuermans make modules know their name

Stefan Schuermans authored 12 years ago

src/noarch/OpPrinter.h  37)   OpPrinter(const std::string &name, Mgrs &mgrs, const Directory &dirBase);
Stefan Schuermans implement operator connecti...

Stefan Schuermans authored 12 years ago

src/noarch/OpPrinter.h  38) 
src/noarch/OpPrinter.h  39)   /// virtual destructor
src/noarch/OpPrinter.h  40)   virtual ~OpPrinter();
src/noarch/OpPrinter.h  41) 
src/noarch/OpPrinter.h  42) private:
src/noarch/OpPrinter.h  43)   /// copy constructor disabled
src/noarch/OpPrinter.h  44)   OpPrinter(const OpPrinter &that);
src/noarch/OpPrinter.h  45) 
src/noarch/OpPrinter.h  46)   /// assignment operator disabled
src/noarch/OpPrinter.h  47)   const OpPrinter & operator=(const OpPrinter &that);
src/noarch/OpPrinter.h  48) 
src/noarch/OpPrinter.h  49) public:
src/noarch/OpPrinter.h  50)   /// check for update of configuration
src/noarch/OpPrinter.h  51)   virtual void updateConfig();
src/noarch/OpPrinter.h  52) 
Stefan Schuermans OpPrinter: play sound on co...

Stefan Schuermans authored 12 years ago

src/noarch/OpPrinter.h  53)   /// callback when requested time reached
src/noarch/OpPrinter.h  54)   virtual void timeCall();
src/noarch/OpPrinter.h  55) 
Stefan Schuermans implement operator connecti...

Stefan Schuermans authored 12 years ago

src/noarch/OpPrinter.h  56)   /**
src/noarch/OpPrinter.h  57)    * @brief check if accepting new operator connction is possible
src/noarch/OpPrinter.h  58)    * @param[in] name operator interface name
src/noarch/OpPrinter.h  59)    * @return if accepting new connection is possible
src/noarch/OpPrinter.h  60)    */
src/noarch/OpPrinter.h  61)   virtual bool acceptNewOpConn(const std::string &name);
src/noarch/OpPrinter.h  62) 
src/noarch/OpPrinter.h  63)   /**
src/noarch/OpPrinter.h  64)    * @brief new operator connection
src/noarch/OpPrinter.h  65)    * @param[in] name operator interface name
src/noarch/OpPrinter.h  66)    * @param[in] pConn operator connection object
Stefan Schuermans clarified operator connecti...

Stefan Schuermans authored 12 years ago

src/noarch/OpPrinter.h  67)    *
src/noarch/OpPrinter.h  68)    * The new connection may not yet be used for sending inside this callback.
Stefan Schuermans implement operator connecti...

Stefan Schuermans authored 12 years ago

src/noarch/OpPrinter.h  69)    */
src/noarch/OpPrinter.h  70)   virtual void newOpConn(const std::string &name, OpConn *pConn);
src/noarch/OpPrinter.h  71) 
Stefan Schuermans implemented play and key me...

Stefan Schuermans authored 12 years ago

src/noarch/OpPrinter.h  72)   /**
src/noarch/OpPrinter.h  73)    * @brief key command received on operator connection
src/noarch/OpPrinter.h  74)    * @param[in] pConn operator connection object
src/noarch/OpPrinter.h  75)    * @param[in] key key that was pressed
src/noarch/OpPrinter.h  76)    */
src/noarch/OpPrinter.h  77)   virtual void opConnRecvKey(OpConn *pConn, char key);
src/noarch/OpPrinter.h  78) 
src/noarch/OpPrinter.h  79)   /**
src/noarch/OpPrinter.h  80)    * @brief play command received on operator connection
src/noarch/OpPrinter.h  81)    * @param[in] pConn operator connection object
src/noarch/OpPrinter.h  82)    * @param[in] sound name of sound to play
src/noarch/OpPrinter.h  83)    */
src/noarch/OpPrinter.h  84)   virtual void opConnRecvPlay(OpConn *pConn, const std::string &sound);
src/noarch/OpPrinter.h  85) 
Stefan Schuermans implement operator connecti...

Stefan Schuermans authored 12 years ago

src/noarch/OpPrinter.h  86)   /**
src/noarch/OpPrinter.h  87)    * @brief operator connection is closed
src/noarch/OpPrinter.h  88)    * @param[in] pConn operator connection object
Stefan Schuermans clarified operator connecti...

Stefan Schuermans authored 12 years ago

src/noarch/OpPrinter.h  89)    *
src/noarch/OpPrinter.h  90)    * The connection may not be used for sending any more in this callback.
Stefan Schuermans implement operator connecti...

Stefan Schuermans authored 12 years ago

src/noarch/OpPrinter.h  91)    */
src/noarch/OpPrinter.h  92)   virtual void opConnClose(OpConn *pConn);
Stefan Schuermans fix operator connection pri...

Stefan Schuermans authored 12 years ago

src/noarch/OpPrinter.h  93) 
src/noarch/OpPrinter.h  94) protected:
Stefan Schuermans OpPrinter: play sound on co...

Stefan Schuermans authored 12 years ago

src/noarch/OpPrinter.h  95)   OpConns m_opConns;  ///< open operator connections
src/noarch/OpPrinter.h  96)   OpConns m_sendPlay; ///< connections to send play request on