X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=PPI%2FForwardSwitch.hh;h=20649bff8855b9272101c4cacad37fb4761aaaf0;hb=78807b8db22aec579bc99f9aca673f81ecfff6b0;hp=4d21415e3ca109f9b4ded2f2bd46386f4fff067e;hpb=0738966edad9188ad34d23b59bb284749e52150b;p=senf.git diff --git a/PPI/ForwardSwitch.hh b/PPI/ForwardSwitch.hh index 4d21415..20649bf 100644 --- a/PPI/ForwardSwitch.hh +++ b/PPI/ForwardSwitch.hh @@ -18,8 +18,8 @@ // Free Software Foundation, Inc., // 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -#ifndef FORWARDSWITCH_HH_ -#define FORWARDSWITCH_HH_ +#ifndef HH_SENF_PPI_ForwardSwitch_ +#define HH_SENF_PPI_ForwardSwitch_ // Custom includes #include "Connectors.hh" @@ -35,18 +35,20 @@ class ForwardSwitch SENF_PPI_MODULE(ForwardSwitch); public: - connector::ActiveInput<> input; + connector::PassiveInput<> input; connector::ActiveOutput<> output; ForwardSwitch(bool state); - -private: - bool forward_; bool forward(); bool forward(bool state); - void stopForwarding(); - void startForwarding(); + bool stopForwarding(); + bool startForwarding(); +private: + void onRequest(); + bool forward_; + }; }}} //namespaces -#endif /*FORWARDSWITCH_HH_*/ +#include "ForwardSwitch.cci" +#endif /*HH_SENF_PPI_ForwardSwitch_*/