Diffstat (limited to 'noncore/tools/remote/learntab.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/tools/remote/learntab.h | 31 |
1 files changed, 30 insertions, 1 deletions
diff --git a/noncore/tools/remote/learntab.h b/noncore/tools/remote/learntab.h index c03f605..cb84600 100644 --- a/noncore/tools/remote/learntab.h +++ b/noncore/tools/remote/learntab.h | |||
@@ -15,12 +15,41 @@ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |||
15 | */ | 15 | */ |
16 | 16 | ||
17 | #include <qwidget.h> | 17 | #include <qwidget.h> |
18 | #include <qtextview.h> | 18 | #include <qlistbox.h> |
19 | #include <qstring.h> | 19 | #include <qstring.h> |
20 | #include <qstringlist.h> | ||
20 | #include <qlayout.h> | 21 | #include <qlayout.h> |
22 | #include <qpushbutton.h> | ||
23 | #include <qmessagebox.h> | ||
24 | |||
25 | #include <stdio.h> | ||
26 | #include <stdlib.h> | ||
27 | #include <string.h> | ||
28 | #include <sys/socket.h> | ||
29 | #include <sys/types.h> | ||
30 | #include <sys/un.h> | ||
31 | #include <unistd.h> | ||
32 | #include <errno.h> | ||
33 | |||
34 | #include "recorddialog.h" | ||
35 | |||
36 | #define PACKET_SIZE 256 | ||
37 | #define TIMEOUT 3 | ||
21 | 38 | ||
22 | class LearnTab : public QWidget | 39 | class LearnTab : public QWidget |
23 | { | 40 | { |
41 | Q_OBJECT | ||
24 | public: | 42 | public: |
25 | LearnTab(QWidget *parent=0, const char *name=0); | 43 | LearnTab(QWidget *parent=0, const char *name=0); |
44 | const char *readPacket(); | ||
45 | QStringList getRemotes(); | ||
46 | public slots: | ||
47 | void add(); | ||
48 | void edit(); | ||
49 | void del(); | ||
50 | private: | ||
51 | QListBox *remotesBox; | ||
52 | int fd; | ||
53 | int timeout; | ||
54 | struct sockaddr_un addr; | ||
26 | }; | 55 | }; |