Diffstat (limited to 'noncore/settings/sshkeys/sshkeys.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/sshkeys/sshkeys.h | 53 |
1 files changed, 27 insertions, 26 deletions
diff --git a/noncore/settings/sshkeys/sshkeys.h b/noncore/settings/sshkeys/sshkeys.h index bbc6993..7483bbc 100644 --- a/noncore/settings/sshkeys/sshkeys.h +++ b/noncore/settings/sshkeys/sshkeys.h | |||
@@ -1,60 +1,61 @@ | |||
1 | /* | 1 | /* |
2 | * ssh-agent key manipulation utility | 2 | * ssh-agent key manipulation utility |
3 | * | 3 | * |
4 | * (C) 2002 David Woodhouse <dwmw2@infradead.org> | 4 | * (C) 2002 David Woodhouse <dwmw2@infradead.org> |
5 | * | 5 | * |
6 | * This program is free software; you can redistribute it and/or modify | 6 | * This program is free software; you can redistribute it and/or modify |
7 | * it under the terms of the GNU General Public License as published by | 7 | * it under the terms of the GNU General Public License as published by |
8 | * the Free Software Foundation; either version 2 of the License, or | 8 | * the Free Software Foundation; either version 2 of the License, or |
9 | * (at your option) any later version. | 9 | * (at your option) any later version. |
10 | * | 10 | * |
11 | * This program is distributed in the hope that it will be useful, | 11 | * This program is distributed in the hope that it will be useful, |
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14 | * GNU General Public License for more details. | 14 | * GNU General Public License for more details. |
15 | * | 15 | * |
16 | * You should have received a copy of the GNU General Public License | 16 | * You should have received a copy of the GNU General Public License |
17 | * along with this program; if not, write to the Free Software | 17 | * along with this program; if not, write to the Free Software |
18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 18 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
19 | * | 19 | * |
20 | */ | 20 | */ |
21 | 21 | ||
22 | #ifndef SSHKEYSAPP_H | 22 | #ifndef SSHKEYSAPP_H |
23 | #define SSHKEYSAPP_H | 23 | #define SSHKEYSAPP_H |
24 | 24 | ||
25 | #include "sshkeysbase.h" | 25 | #include "sshkeysbase.h" |
26 | #include <opie/oprocess.h> | 26 | |
27 | #include <opie2/oprocess.h> | ||
27 | 28 | ||
28 | class SSHKeysApp : public SSHKeysBase | 29 | class SSHKeysApp : public SSHKeysBase |
29 | { | 30 | { |
30 | Q_OBJECT | 31 | Q_OBJECT |
31 | 32 | ||
32 | public: | 33 | public: |
33 | SSHKeysApp( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); | 34 | SSHKeysApp( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); |
34 | ~SSHKeysApp(); | 35 | ~SSHKeysApp(); |
35 | 36 | ||
36 | private: | 37 | private: |
37 | void log_text(const char *text); | 38 | void log_text(const char *text); |
38 | void flush_sshadd_output(void); | 39 | void flush_sshadd_output(void); |
39 | 40 | ||
40 | enum { Noise, KeyName, KeySize, KeyFingerprint } keystate; | 41 | enum { Noise, KeyName, KeySize, KeyFingerprint } keystate; |
41 | QString incoming_keyname; | 42 | QString incoming_keyname; |
42 | QString incoming_keysize; | 43 | QString incoming_keysize; |
43 | QString incoming_keyfingerprint; | 44 | QString incoming_keyfingerprint; |
44 | QString incoming_noise; | 45 | QString incoming_noise; |
45 | OProcess addprocess; | 46 | OProcess addprocess; |
46 | QString pending_stdout; | 47 | QString pending_stdout; |
47 | QString pending_stderr; | 48 | QString pending_stderr; |
48 | 49 | ||
49 | private slots: | 50 | private slots: |
50 | void doAddButton(); | 51 | void doAddButton(); |
51 | void doRefreshListButton(); | 52 | void doRefreshListButton(); |
52 | void doRemoveAllButton(); | 53 | void doRemoveAllButton(); |
53 | void get_list_keys_output(OProcess *proc, char *buffer, int buflen); | 54 | void get_list_keys_output(OProcess *proc, char *buffer, int buflen); |
54 | void log_sshadd_output(OProcess *proc, char *buffer, int buflen); | 55 | void log_sshadd_output(OProcess *proc, char *buffer, int buflen); |
55 | void log_sshadd_stderr(OProcess *proc, char *buffer, int buflen); | 56 | void log_sshadd_stderr(OProcess *proc, char *buffer, int buflen); |
56 | void ssh_add_exited(OProcess *proc); | 57 | void ssh_add_exited(OProcess *proc); |
57 | void add_text_changed(const QString &text); | 58 | void add_text_changed(const QString &text); |
58 | }; | 59 | }; |
59 | #endif | 60 | #endif |
60 | 61 | ||