====== Alert ====== ===== Description ===== tAlert.h Provides routines to alert the end user of a message or request a yes/no response from the end user. A formatting string must produce no more than 1024 characters. Both methods will block, waiting for user input. ===== Methods ===== static void tAlert::alert( const char *fmt, ... ); ^ parameter ^ type ^ description ^ | fmt | const char * | printf-style format control | | ... | //various// | optional arguments | static bool tAlert::confirm( const char *fmt, ... ); ^ parameter ^ type ^ description ^ | fmt | const char * | printf-style format control | | ... | //various// | optional arguments | ^ return type ^ description ^ | bool | returns **true** if the user selects yes, **false** otherwise | ===== Notes ===== * This class is singleton class that provides a global instance and starts automatically. * This class requires [[alertpeer]] to function properly. * A formatting string must produce no more than 1024 characters. * Method **alert** blocks until user chooses to continue; method **confirm** blocks until user chooses yes or no.