public static string async_get_server_status() { if (Settings.TransmitAgent == "hylafax") { hfax = new Hylafax(); if (!hfax.connect()) { return(Catalog.GetString("No Connection")); } hfax.asyncstatus("status"); hfax.close(); hfax = null; return(""); } if (Settings.TransmitAgent == "efax") { //TODO put modem ready status here if (firstRun) { firstRun = false; return(Catalog.GetString("Efax transmit process running...\nScanning job files every 30 seconds.")); } else { return(null); } } return(Catalog.GetString("Error transport agent not specified!")); }
public static ArrayList async_get_queue_status(string queue) { if (Settings.TransmitAgent == "hylafax") { hfax = new Hylafax(); if (hfax.connect()) { hfax.asyncstatus(queue); } hfax.close(); hfax = null; } if (Settings.TransmitAgent == "efax") { string reply = gfax.efax.status(queue); if (queue == "doneq" || queue == "sendq") { return(parse_senddone(reply)); } else // (queue == "recvq") { return(parse_receive(reply)); } } return(null); }