summaryrefslogtreecommitdiff
path: root/noncore/tools/remote/learntab.h
Unidiff
Diffstat (limited to 'noncore/tools/remote/learntab.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/tools/remote/learntab.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/noncore/tools/remote/learntab.h b/noncore/tools/remote/learntab.h
index cb84600..c9d8e41 100644
--- a/noncore/tools/remote/learntab.h
+++ b/noncore/tools/remote/learntab.h
@@ -11,45 +11,38 @@ implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11Public License for more details. 11Public License for more details.
12 12
13You should have received a copy of the GNU General Public License along with this program; if not, write to the Free 13You should have received a copy of the GNU General Public License along with this program; if not, write to the Free
14Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 14Software 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 <qlistbox.h> 18#include <qlistbox.h>
19#include <qstring.h> 19#include <qstring.h>
20#include <qstringlist.h> 20#include <qstringlist.h>
21#include <qlayout.h> 21#include <qlayout.h>
22#include <qpushbutton.h> 22#include <qpushbutton.h>
23#include <qmessagebox.h> 23#include <qmessagebox.h>
24 24
25#include <stdio.h> 25#include <stdio.h>
26#include <stdlib.h> 26#include <stdlib.h>
27#include <string.h> 27#include <string.h>
28#include <sys/socket.h> 28#include <sys/socket.h>
29#include <sys/types.h> 29#include <sys/types.h>
30#include <sys/un.h> 30#include <sys/un.h>
31#include <unistd.h> 31#include <unistd.h>
32#include <errno.h> 32#include <errno.h>
33 33
34#include "recorddialog.h" 34#include "recorddialog.h"
35 35#include "lirchandler.h"
36#define PACKET_SIZE 256
37#define TIMEOUT 3
38 36
39class LearnTab : public QWidget 37class LearnTab : public QWidget
40{ 38{
41 Q_OBJECT 39 Q_OBJECT
42public: 40public:
43 LearnTab(QWidget *parent=0, const char *name=0); 41 LearnTab(QWidget *parent=0, const char *name=0);
44 const char *readPacket();
45 QStringList getRemotes();
46public slots: 42public slots:
47 void add(); 43 void add();
48 void edit(); 44 void edit();
49 void del(); 45 void del();
50private: 46private:
51 QListBox *remotesBox; 47 QListBox *remotesBox;
52 int fd;
53 int timeout;
54 struct sockaddr_un addr;
55}; 48};