#ifndef MLDestMimic_INCLUDED #define MLDestMimic_INCLUDED #include #ifdef WIN32 #ifdef DOEXPORT_SCRIPT #define EXPORT_SCRIPT __declspec(dllexport) #else #define EXPORT_SCRIPT #endif #else #define EXPORT_SCRIPT #endif class MLDestMimic : public bncs_script_helper { public: MLDestMimic( bncs_client_callback * parent, const char* path ); virtual ~MLDestMimic(); void buttonCallback( buttonNotify *b ); int revertiveCallback( revertiveNotify * r ); void databaseCallback( revertiveNotify * r ); bncs_string parentCallback( parentNotify *p ); void timerCallback( int ); private: bncs_string m_myMtxID; // Holds the user provided matrix ID used when no instance exists. bncs_string m_myDestID; // Holds the user selected destination id to monitor. bncs_string m_myStateSheet; // Holds the name of any statesheet used to control the text appearance. bncs_string m_myUnusedMsg; // Holds the string displayd when matrix id or destination are unused int m_myMatrixID; // Holds the numeric version of the matrix to monitor. int m_myDestination; // Holds the numeric version of the matrix output to monitor. int m_mySource; // Holds the current source number routed to m_myDestination bool m_RevertRxd; // Set true once a revertive has been received from the router. // Local method to test for valid combination of driver ID and destination ID. // Activates registration and polling if valid combination. bool checkAndActivate(int new_devID, int new_destID); }; #endif // MLDestMimic_INCLUDED