void CRLView::slotUpdateView()
{
  _updateButton->setEnabled( false );
  _textView->clear();
  _buffer.clear();
  if( !_process ) {
    _process = new KProcess();
    *_process << "gpgsm" << "--call-dirmngr" << "listcrls";
    connect( _process, SIGNAL(readyReadStandardOutput()), this, SLOT(slotReadStdout()));
    connect( _process, SIGNAL(finished(int,QProcess::ExitStatus)),
             this, SLOT(slotProcessExited(int,QProcess::ExitStatus)));
  }
Example #2
0
/**
 * Class constructor.
 * @param	nRecordSize	The number of fields in each record
 * @param	bAutoDelete	(Optional) true to delete the object when the process
 *						terminates, false (default) otherwise
 */
Frontend::Frontend(uint nRecordSize, bool bAutoDelete) : KProcess(),
	m_nRecords(0),
	m_pHeadToken(NULL),
	m_pTailToken(NULL),
	m_pCurToken(NULL),
	m_bAutoDelete(bAutoDelete),
	m_bInToken(false),
	m_nRecordSize(nRecordSize),
	m_bUseShell(false)
{
	// Parse data on the standard output
	connect(this, SIGNAL(readyReadStandardOutput()), this,
		SLOT(slotReadStdout()));

	// Parse data on the standard error
	connect(this, SIGNAL(readyReadStandardError()), this,
		SLOT(slotReadStderr()));

	// Delete the process object when the process exits
	connect(this, SIGNAL(finished(int, QProcess::ExitStatus)), this,
		SLOT(slotProcessExit(int, QProcess::ExitStatus)));
}
Example #3
0
void Frontend::slotReadStdout2()
{
    QByteArray output = this->readAllStandardOutput();
    slotReadStdout(this, output.data(), output.size());
}