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

sshkeys.h

Go to the documentation of this file.
00001 /*
00002  *  ssh-agent key manipulation utility
00003  *
00004  *  (C) 2002 David Woodhouse <dwmw2@infradead.org>
00005  *
00006  *  This program is free software; you can redistribute it and/or modify
00007  *  it under the terms of the GNU General Public License as published by
00008  *  the Free Software Foundation; either version 2 of the License, or
00009  *  (at your option) any later version.
00010  *
00011  *  This program is distributed in the hope that it will be useful,
00012  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  *  GNU General Public License for more details.
00015  *
00016  *  You should have received a copy of the GNU General Public License
00017  *  along with this program; if not, write to the Free Software
00018  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00019  *
00020  */
00021 
00022 #ifndef SSHKEYSAPP_H
00023 #define SSHKEYSAPP_H
00024 
00025 #include "sshkeysbase.h"
00026 
00027 #include <opie2/oprocess.h>
00028 
00029 class SSHKeysApp : public SSHKeysBase
00030 {
00031     Q_OBJECT
00032 
00033  public:
00034     SSHKeysApp( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
00035     ~SSHKeysApp();
00036     static QString appName() { return QString::fromLatin1( QUICKAPP_NAME); }
00037 
00038  private:
00039     void log_text(const char *text);
00040     void flush_sshadd_output(void);
00041 
00042     enum { Noise, KeyName, KeySize, KeyFingerprint } keystate;
00043     QString incoming_keyname;
00044     QString incoming_keysize;
00045     QString incoming_keyfingerprint;
00046     QString incoming_noise;
00047     Opie::Core::OProcess addprocess;
00048     QString pending_stdout;
00049     QString pending_stderr;
00050 
00051  private slots:
00052     void doAddButton();
00053     void doRefreshListButton();
00054     void doRemoveAllButton();
00055     void get_list_keys_output(Opie::Core::OProcess *proc, char *buffer, int buflen);
00056     void log_sshadd_output(Opie::Core::OProcess *proc, char *buffer, int buflen);
00057     void log_sshadd_stderr(Opie::Core::OProcess *proc, char *buffer, int buflen);
00058     void ssh_add_exited(Opie::Core::OProcess *proc);
00059     void add_text_changed(const QString &text);
00060 };
00061 #endif
00062 

Generated on Sat Nov 5 16:17:57 2005 for OPIE by  doxygen 1.4.2