prevent popup deactivation while button_down
[goodguy/history.git] / cinelerra-5.0 / cinelerra / avc1394control.h
1
2 /*
3  * CINELERRA
4  * Copyright (C) 2008 Adam Williams <broadcast at earthling dot net>
5  * 
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  * 
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  * 
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19  * 
20  */
21
22 #ifndef _AVC1394Control_H
23 #define _AVC1394Control_H
24
25 #include <stdio.h>
26 #include <sys/types.h>
27 #include <errno.h>
28 #include <stdlib.h>
29
30 #include "bcwindowbase.inc"
31 #include "librom1394/rom1394.h"
32 #include "libavc1394/avc1394.h"
33 #include "libavc1394/avc1394_vcr.h"
34 #include "mutex.inc"
35 #include "libraw1394/raw1394.h"
36
37 class AVC1394Control
38 {
39 public:
40         AVC1394Control();
41         ~AVC1394Control();
42
43         void initialize();
44
45         void play();
46         void reverse();
47         void stop();
48         void pause();
49         void rewind();
50         void fforward();
51         void record();
52         void eject();
53         void get_status();
54         void seek(const char *time);
55         char *timecode();
56         int device;
57         int status;
58         Mutex *device_lock;
59 // Set by last button pressed to determine the effect of a second press of the
60 // same button.  Command is from transportque.inc
61         int current_command;
62
63 private:
64         rom1394_directory rom_dir;
65         raw1394handle_t handle;
66         char text_return[BCTEXTLEN];
67 };
68
69 #endif