void getKey::cancel( const QString& token ) { void * handle = zuluCryptPluginManagerOpenConnection( token.toLatin1().constData() ) ; if( handle ){ zuluCryptPluginManagerCloseConnection( handle ) ; } }
void getKey::run() { QByteArray key = m_function( m_exe,m_keyFile,m_key ) ; if( key.isEmpty() ){ m_status = getKey::wrongKey ; }else{ void * handle = zuluCryptPluginManagerOpenConnection( m_token.toLatin1().constData() ) ; if( handle ){ zuluCryptPluginManagerSendKey( handle,key.constData(),key.size() ) ; zuluCryptPluginManagerCloseConnection( handle ) ; m_status = getKey::complete ; }else{ m_status = getKey::wrongKey ; } } }
void MainWindow::setToken( const QString& token ) { m_handle = zuluCryptPluginManagerOpenConnection( token.toLatin1().constData() ) ; }
void MainWindow::setToken( char * const * e ) { m_handle = zuluCryptPluginManagerOpenConnection( *( e + 3 ) ) ; }
void MainWindow::pbCancel() { m_handle = zuluCryptPluginManagerOpenConnection( m_token.toLatin1().constData() ) ; QCoreApplication::exit( 1 ) ; }
void MainWindow::setToken( char * const * e ) { m_token = *( e + 3 ) ; m_handle = zuluCryptPluginManagerOpenConnection( m_token.toLatin1().constData() ) ; }