fast drag/drop rework, modify labels in mwin->cwin locks, mods to cut/paste, marks...
[goodguy/cinelerra.git] / cinelerra-5.1 / cinelerra / androidcontrol.h
1 #ifndef __ANDROID_CONTROL_H__
2 #define __ANDROID_CONTROL_H__
3
4 #include "androidcontrol.inc"
5 #include "mwindow.inc"
6 #include "mwindowgui.inc"
7 #include "mutex.h"
8 #include "thread.h"
9
10 #include <stdio.h>
11 #include <unistd.h>
12 #include <stdlib.h>
13 #include <fcntl.h>
14 #include <sys/socket.h>
15 #include <netinet/in.h>
16 #include <arpa/inet.h>
17 #include <netdb.h>
18
19
20 class AndroidControl : public Thread {
21         static const unsigned short PORT = 23432;
22         int done;
23         int sockfd;
24         char buf[256];
25         char *msg;
26         int msg_len;
27         MWindowGUI *mwindow_gui;
28
29         bool is_msg(const char *cp);
30         void press(int key);
31 public:
32         int open(unsigned short port);
33         void close();
34         void run();
35
36         AndroidControl(MWindowGUI *mwindow_gui);
37         ~AndroidControl();
38 };
39
40 #endif