Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

SSHKeysApp Class Reference

#include </home/clem/local/src/opie/noncore/settings/sshkeys/sshkeys.h>

Collaboration diagram for SSHKeysApp:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SSHKeysApp (QWidget *parent=0, const char *name=0, WFlags fl=0)
 ~SSHKeysApp ()

Static Public Member Functions

static QString appName ()

Private Types

enum  { Noise, KeyName, KeySize, KeyFingerprint }

Private Slots

void doAddButton ()
void doRefreshListButton ()
void doRemoveAllButton ()
void get_list_keys_output (Opie::Core::OProcess *proc, char *buffer, int buflen)
void log_sshadd_output (Opie::Core::OProcess *proc, char *buffer, int buflen)
void log_sshadd_stderr (Opie::Core::OProcess *proc, char *buffer, int buflen)
void ssh_add_exited (Opie::Core::OProcess *proc)
void add_text_changed (const QString &text)

Private Member Functions

void log_text (const char *text)
void flush_sshadd_output (void)

Private Attributes

enum SSHKeysApp:: { ... }  keystate
QString incoming_keyname
QString incoming_keysize
QString incoming_keyfingerprint
QString incoming_noise
Opie::Core::OProcess addprocess
QString pending_stdout
QString pending_stderr

Member Enumeration Documentation

anonymous enum [private]
 

Enumeration values:
Noise 
KeyName 
KeySize 
KeyFingerprint 

Definition at line 42 of file sshkeys.h.


Constructor & Destructor Documentation

SSHKeysApp::SSHKeysApp QWidget *  parent = 0,
const char *  name = 0,
WFlags  fl = 0
 

Definition at line 55 of file sshkeys.cpp.

References add_text_changed(), addprocess, detachTerminal(), doAddButton(), doRefreshListButton(), doRemoveAllButton(), QFile::encodeName(), QDir::homeDirPath(), i, keynames, log_sshadd_output(), log_sshadd_stderr(), and ssh_add_exited().

SSHKeysApp::~SSHKeysApp  ) 
 

Definition at line 93 of file sshkeys.cpp.


Member Function Documentation

void SSHKeysApp::add_text_changed const QString text  )  [private, slot]
 

Definition at line 256 of file sshkeys.cpp.

References QString::ascii(), FALSE, QString::length(), and TRUE.

Referenced by SSHKeysApp().

static QString SSHKeysApp::appName void   )  [inline, static]
 

Definition at line 36 of file sshkeys.h.

References QString::fromLatin1().

void SSHKeysApp::doAddButton  )  [private, slot]
 

Definition at line 268 of file sshkeys.cpp.

References addprocess, OProcess::AllOutput, Opie::Core::OProcess::clearArguments(), doRefreshListButton(), flush_sshadd_output(), log_text(), OProcess::NotifyOnExit, Opie::Core::OProcess::start(), tr, and TRUE.

Referenced by SSHKeysApp().

void SSHKeysApp::doRefreshListButton  )  [private, slot]
 

Definition at line 97 of file sshkeys.cpp.

References OProcess::AllOutput, OProcess::Block, FALSE, flush_sshadd_output(), get_list_keys_output(), incoming_keyfingerprint, incoming_keyname, incoming_keysize, KeySize, keystate, log_sshadd_stderr(), log_text(), t, and tr.

Referenced by doAddButton(), doRemoveAllButton(), ssh_add_exited(), and SSHKeysApp().

void SSHKeysApp::doRemoveAllButton  )  [private, slot]
 

Definition at line 296 of file sshkeys.cpp.

References OProcess::AllOutput, OProcess::Block, doRefreshListButton(), flush_sshadd_output(), log_sshadd_output(), log_sshadd_stderr(), log_text(), Opie::Core::OProcess::start(), and tr.

Referenced by SSHKeysApp().

void SSHKeysApp::flush_sshadd_output void   )  [private]
 

Definition at line 200 of file sshkeys.cpp.

References QString::ascii(), QString::length(), log_text(), pending_stderr, and pending_stdout.

Referenced by doAddButton(), doRefreshListButton(), and doRemoveAllButton().

void SSHKeysApp::get_list_keys_output Opie::Core::OProcess proc,
char *  buffer,
int  buflen
[private, slot]
 

Definition at line 132 of file sshkeys.cpp.

References i, incoming_keyfingerprint, incoming_keyname, incoming_keysize, incoming_noise, KeyFingerprint, KeyName, KeySize, keystate, QString::local8Bit(), log_text(), and Noise.

Referenced by doRefreshListButton().

void SSHKeysApp::log_sshadd_output Opie::Core::OProcess proc,
char *  buffer,
int  buflen
[private, slot]
 

Definition at line 213 of file sshkeys.cpp.

References log_text(), and pending_stdout.

Referenced by doRemoveAllButton(), and SSHKeysApp().

void SSHKeysApp::log_sshadd_stderr Opie::Core::OProcess proc,
char *  buffer,
int  buflen
[private, slot]
 

Definition at line 229 of file sshkeys.cpp.

References log_text(), and pending_stderr.

Referenced by doRefreshListButton(), doRemoveAllButton(), and SSHKeysApp().

void SSHKeysApp::log_text const char *  text  )  [private]
 

Definition at line 290 of file sshkeys.cpp.

References FALSE.

Referenced by doAddButton(), doRefreshListButton(), doRemoveAllButton(), flush_sshadd_output(), get_list_keys_output(), log_sshadd_output(), and log_sshadd_stderr().

void SSHKeysApp::ssh_add_exited Opie::Core::OProcess proc  )  [private, slot]
 

Definition at line 245 of file sshkeys.cpp.

References doRefreshListButton(), Opie::Core::OProcess::exitStatus(), FALSE, and TRUE.

Referenced by SSHKeysApp().


Member Data Documentation

Opie::Core::OProcess SSHKeysApp::addprocess [private]
 

Definition at line 47 of file sshkeys.h.

Referenced by doAddButton(), and SSHKeysApp().

QString SSHKeysApp::incoming_keyfingerprint [private]
 

Definition at line 45 of file sshkeys.h.

Referenced by doRefreshListButton(), and get_list_keys_output().

QString SSHKeysApp::incoming_keyname [private]
 

Definition at line 43 of file sshkeys.h.

Referenced by doRefreshListButton(), and get_list_keys_output().

QString SSHKeysApp::incoming_keysize [private]
 

Definition at line 44 of file sshkeys.h.

Referenced by doRefreshListButton(), and get_list_keys_output().

QString SSHKeysApp::incoming_noise [private]
 

Definition at line 46 of file sshkeys.h.

Referenced by get_list_keys_output().

enum { ... } SSHKeysApp::keystate [private]
 

Referenced by doRefreshListButton(), and get_list_keys_output().

QString SSHKeysApp::pending_stderr [private]
 

Definition at line 49 of file sshkeys.h.

Referenced by flush_sshadd_output(), and log_sshadd_stderr().

QString SSHKeysApp::pending_stdout [private]
 

Definition at line 48 of file sshkeys.h.

Referenced by flush_sshadd_output(), and log_sshadd_output().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:52:21 2005 for OPIE by  doxygen 1.4.2