git » swiftpm » main » tree

[main] / Sources / c_borogove / iinclude / borogove / ChannelPinger.h

// Generated by Haxe 4.3.3
#ifndef INCLUDED_borogove_ChannelPinger
#define INCLUDED_borogove_ChannelPinger

#ifndef HXCPP_H
#include <hxcpp.h>
#endif

HX_DECLARE_CLASS1(borogove,Channel)
HX_DECLARE_CLASS1(borogove,ChannelPinger)
HX_DECLARE_CLASS1(borogove,Chat)
HX_DECLARE_CLASS1(borogove,EventEmitter)
HX_DECLARE_CLASS1(haxe,IMap)
HX_DECLARE_CLASS1(haxe,Timer)
HX_DECLARE_CLASS2(haxe,ds,StringMap)

namespace borogove{


class HXCPP_CLASS_ATTRIBUTES ChannelPinger_obj : public ::hx::Object
{
	public:
		typedef ::hx::Object super;
		typedef ChannelPinger_obj OBJ_;
		ChannelPinger_obj();

	public:
		enum { _hx_ClassId = 0x6ea167fd };

		void __construct( ::Dynamic now);
		inline void *operator new(size_t inSize, bool inContainer=true,const char *inName="borogove.ChannelPinger")
			{ return ::hx::Object::operator new(inSize,inContainer,inName); }
		inline void *operator new(size_t inSize, int extra)
			{ return ::hx::Object::operator new(inSize+extra,true,"borogove.ChannelPinger"); }
		static ::hx::ObjectPtr< ChannelPinger_obj > __new( ::Dynamic now);
		static ::hx::ObjectPtr< ChannelPinger_obj > __alloc(::hx::Ctx *_hx_ctx, ::Dynamic now);
		static void * _hx_vtable;
		static Dynamic __CreateEmpty();
		static Dynamic __Create(::hx::DynamicArray inArgs);
		//~ChannelPinger_obj();

		HX_DO_RTTI_ALL;
		::hx::Val __Field(const ::String &inString, ::hx::PropertyAccess inCallProp);
		::hx::Val __SetField(const ::String &inString,const ::hx::Val &inValue, ::hx::PropertyAccess inCallProp);
		void __GetFields(Array< ::String> &outFields);
		static void __register();
		void __Mark(HX_MARK_PARAMS);
		void __Visit(HX_VISIT_PARAMS);
		bool _hx_isInstanceOf(int inClassId);
		::String __ToString() const { return HX_("ChannelPinger",62,84,bf,e5); }

		 ::Dynamic now;
		Dynamic now_dyn() { return now;}
		 ::haxe::ds::StringMap scheduledChannels;
		 ::haxe::Timer timer;
		void startTimer();
		::Dynamic startTimer_dyn();

		void stopTimer();
		::Dynamic stopTimer_dyn();

		void schedule( ::borogove::Channel channel, ::Dynamic deadline);
		::Dynamic schedule_dyn();

		void remove( ::borogove::Channel channel);
		::Dynamic remove_dyn();

		void pingPastDue();
		::Dynamic pingPastDue_dyn();

		void pingDueInWindow();
		::Dynamic pingDueInWindow_dyn();

		void pingDueBy(Float cutoff);
		::Dynamic pingDueBy_dyn();

		::Array< ::Dynamic> getDueBy(Float cutoff);
		::Dynamic getDueBy_dyn();

};

} // end namespace borogove

#endif /* INCLUDED_borogove_ChannelPinger */