4 * Copyright (C) 2008 Adam Williams <broadcast at earthling dot net>
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.
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.
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
22 #ifndef AVC1394TRANSPORT_H
23 #define AVC1394TRANSPORT_H
26 #include "avc1394control.h"
30 class AVC1394TransportThread;
31 class AVC1394Transport;
32 class AVC1394GUIRewind;
33 class AVC1394GUIReverse;
35 class AVC1394GUIPause;
37 class AVC1394GUIFForward;
38 class AVC1394GUISeekStart;
39 class AVC1394GUISeekEnd;
42 class AVC1394TransportThread : public Thread
45 AVC1394TransportThread(BC_Title *label, AVC1394Control *avc);
46 ~AVC1394TransportThread();
57 class AVC1394Transport
60 AVC1394Transport(MWindow *mwindow, AVC1394Control *avc, BC_WindowBase *window, int x, int y);
63 void create_objects();
64 void reposition_window(int x, int y);
65 int keypress_event(int keypress);
69 BC_WindowBase *window;
75 AVC1394GUIRewind *rewind_button;
76 AVC1394GUIReverse *reverse_button;
77 AVC1394GUIStop *stop_button;
78 AVC1394GUIPause *pause_button;
79 AVC1394GUIPlay *play_button;
80 AVC1394GUIFForward *fforward_button;
81 AVC1394GUISeekStart *start_button;
82 AVC1394GUISeekEnd *end_button;
85 class AVC1394GUISeekStart : public BC_Button
88 AVC1394GUISeekStart(MWindow *mwindow, AVC1394Control *avc, int x, int y);
89 ~AVC1394GUISeekStart();
97 class AVC1394GUIRewind : public BC_Button
100 AVC1394GUIRewind(MWindow *mwindow, AVC1394Control *avc, int x, int y);
104 int keypress_event();
109 class AVC1394GUIReverse : public BC_Button
112 AVC1394GUIReverse(MWindow *mwindow, AVC1394Control *avc, int x, int y);
113 ~AVC1394GUIReverse();
116 int keypress_event();
121 class AVC1394GUIStop : public BC_Button
124 AVC1394GUIStop(MWindow *mwindow, AVC1394Control *avc, int x, int y);
128 int keypress_event();
133 class AVC1394GUIPause : public BC_Button
136 AVC1394GUIPause(MWindow *mwindow, AVC1394Control *avc, int x, int y);
140 int keypress_event();
145 class AVC1394GUIPlay : public BC_Button
148 AVC1394GUIPlay(MWindow *mwindow, AVC1394Control *avc, int x, int y);
152 int keypress_event();
158 class AVC1394GUIFForward : public BC_Button
161 AVC1394GUIFForward(MWindow *mwindow, AVC1394Control *avc, int x, int y);
162 ~AVC1394GUIFForward();
165 int keypress_event();
170 class AVC1394GUISeekEnd : public BC_Button
173 AVC1394GUISeekEnd(MWindow *mwindow, AVC1394Control *avc, int x, int y);
174 ~AVC1394GUISeekEnd();
177 int keypress_event();