summaryrefslogtreecommitdiff
path: root/noncore/tools/remote/learntab.h
Side-by-side diff
Diffstat (limited to 'noncore/tools/remote/learntab.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/tools/remote/learntab.h31
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
@@ -17,5 +17,22 @@ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#include <qwidget.h>
-#include <qtextview.h>
+#include <qlistbox.h>
#include <qstring.h>
+#include <qstringlist.h>
#include <qlayout.h>
+#include <qpushbutton.h>
+#include <qmessagebox.h>
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <sys/socket.h>
+#include <sys/types.h>
+#include <sys/un.h>
+#include <unistd.h>
+#include <errno.h>
+
+#include "recorddialog.h"
+
+#define PACKET_SIZE 256
+#define TIMEOUT 3
@@ -23,4 +40,16 @@ class LearnTab : public QWidget
{
+ Q_OBJECT
public:
LearnTab(QWidget *parent=0, const char *name=0);
+ const char *readPacket();
+ QStringList getRemotes();
+public slots:
+ void add();
+ void edit();
+ void del();
+private:
+ QListBox *remotesBox;
+ int fd;
+ int timeout;
+ struct sockaddr_un addr;
};