webpg-npapi 0.6.1
void webpgPluginAPI::progress_cb ( void *  self,
const char *  what,
int  type,
int  current,
int  total 
) [static]

Called by the long-running, asymmetric gpg genkey method to display the status.

Parameters:
selfA reference to webpgPluginAPI, since the method is called outside of the class.
whatThe current action status from gpg genkey.
typeThe type of of action.
current?
total?

Definition at line 1919 of file webpgPluginAPI.cpp.

Referenced by threaded_gpgGenKey(), and threaded_gpgGenSubKey().

{
    if (!strcmp (what, "primegen") && !current && !total
        && (type == '.' || type == '+' || type == '!'
        || type == '^' || type == '<' || type == '>')) {
        webpgPluginAPI* API = (webpgPluginAPI*) self;
        API->FireEvent("onkeygenprogress", FB::variant_list_of(type));
    }
    if (!strcmp (what, "complete")) {
        webpgPluginAPI* API = (webpgPluginAPI*) self;
        API->FireEvent("onkeygencomplete", FB::variant_list_of("complete"));
    }
}
 All Classes Functions