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

learntab.h

Go to the documentation of this file.
00001 /*
00002 Opie-Remote.  emulates remote controlls on an iPaq (and maybe a Zaurus) in Opie.
00003 Copyright (C) 2002 Thomas Stephens
00004 
00005 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public
00006 License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later
00007 version.
00008 
00009 This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the
00010 implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
00011 Public License for more details.
00012 
00013 You should have received a copy of the GNU General Public License along with this program; if not, write to the Free
00014 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
00015 */
00016 
00017 #include <qwidget.h>
00018 #include <qlistbox.h>
00019 #include <qstring.h>
00020 #include <qstringlist.h>
00021 #include <qlayout.h>
00022 #include <qpushbutton.h>
00023 #include <qmessagebox.h>
00024 
00025 #include <stdio.h>
00026 #include <stdlib.h>
00027 #include <string.h>
00028 #include <sys/socket.h>
00029 #include <sys/types.h>
00030 #include <sys/un.h>
00031 #include <unistd.h>
00032 #include <errno.h>
00033 
00034 #include "recorddialog.h"
00035 
00036 #define PACKET_SIZE 256
00037 #define TIMEOUT 3
00038 
00039 class LearnTab : public QWidget
00040 {
00041         Q_OBJECT
00042 public:
00043         LearnTab(QWidget *parent=0, const char *name=0);
00044         const char *readPacket();
00045         QStringList getRemotes();
00046 public slots:
00047         void add();
00048         void edit();
00049         void del();
00050 private:
00051         QListBox *remotesBox;
00052         int fd;
00053         int timeout;
00054         struct sockaddr_un addr;
00055 };

Generated on Sat Nov 5 16:18:02 2005 for OPIE by  doxygen 1.4.2