X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FProtocols%2FDVB%2FDVBFrontendHandle.hh;h=b7c659c5f315c839202ed7134ab02b40c2fa55f0;hb=843af10167d5d6b156e9d85773d949be228bcbda;hp=626a37233520303c255bd701a59222bbdbf3b2ab;hpb=6f50bf49e282c0528f51faa0a245bbfa2b867399;p=senf.git diff --git a/Socket/Protocols/DVB/DVBFrontendHandle.hh b/Socket/Protocols/DVB/DVBFrontendHandle.hh index 626a372..b7c659c 100644 --- a/Socket/Protocols/DVB/DVBFrontendHandle.hh +++ b/Socket/Protocols/DVB/DVBFrontendHandle.hh @@ -1,8 +1,8 @@ // $Id$ // // Copyright (C) 2007 -// Fraunhofer Institute for Open Communication Systems (FOKUS) -// Competence Center NETwork research (NET), St. Augustin, GERMANY +// Fraunhofer Institute for Open Communication Systems (FOKUS) +// Competence Center NETwork research (NET), St. Augustin, GERMANY // Thorsten Horstmann // // This program is free software; you can redistribute it and/or modify @@ -28,7 +28,7 @@ // Custom includes #include -#include +#include #include "../../../Socket/FramingPolicy.hh" #include "../../../Socket/CommunicationPolicy.hh" #include "../../../Socket/ReadWritePolicy.hh" @@ -44,17 +44,19 @@ namespace senf { /// @{ typedef MakeSocketPolicy< - NoAddressingPolicy, + NoAddressingPolicy, DatagramFramingPolicy, UnconnectedCommunicationPolicy, NotReadablePolicy, NotWriteablePolicy - >::policy DVBFrontend_Policy; ///< Socket Policy for xxxx + >::policy DVBFrontend_Policy; ///< Socket Policy for DVBFrontendSocketProtocol - /** \brief xxx + /** \brief SocketProtocol for the dvb frontend device + + The DVB frontend device controls the tuner and DVB demodulator hardware. */ - class DVBFrontendProtocol - : public ConcreteSocketProtocol + class DVBFrontendSocketProtocol + : public ConcreteSocketProtocol { public: /////////////////////////////////////////////////////////////////////////// @@ -63,7 +65,8 @@ namespace senf { ///\name Constructors ///@{ - void init_client(boost::uint8_t adapter=0, boost::uint8_t device=0) const; ///< xxx + void init_client(boost::uint8_t adapter=0, boost::uint8_t device=0) const; + ///< Opens the specified frontend device in read-only mode. /**< \note This member is implicitly called from the ProtocolClientSocketHandle::ProtocolClientSocketHandle() constructor */ @@ -71,16 +74,22 @@ namespace senf { ///@} ///\name Abstract Interface Implementation ///@{ - - unsigned available() const; - bool eof() const; + + unsigned available() const; ///< Returns always 0 + /**< Returns always 0, since the DVB frontend + socket is not readable. */ + bool eof() const; ///< Returns always false + /**< Returns always false, since the DVB frontend + socket does not support the notion of EOF. */ ///@} - - void signalStrength(int16_t *strength) const; + + int16_t signalStrength() const; ///< Return current signal strength + /**< Returns the signal strength value for the signal + currently received by the front-end. */ }; - typedef ProtocolClientSocketHandle DVBFrontendHandle; + typedef ProtocolClientSocketHandle DVBFrontendHandle; ///@} } @@ -92,7 +101,7 @@ namespace senf { //#include "DVBFrontendHandle.cti" #endif - + // Local Variables: // mode: c++ // fill-column: 100