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
25 #include "avc1394control.h"
29 class AVC1394TransportThread;
30 class AVC1394Transport;
31 class AVC1394GUIRewind;
32 class AVC1394GUIReverse;
34 class AVC1394GUIPause;
36 class AVC1394GUIFForward;
37 class AVC1394GUISeekStart;
38 class AVC1394GUISeekEnd;
41 class AVC1394TransportThread : public Thread
44 AVC1394TransportThread(BC_Title *label, AVC1394Control *avc);
45 ~AVC1394TransportThread();
56 class AVC1394Transport
59 AVC1394Transport(MWindow *mwindow, AVC1394Control *avc, BC_WindowBase *window, int x, int y);
62 void create_objects();
63 void reposition_window(int x, int y);
64 int keypress_event(int keypress);
68 BC_WindowBase *window;
74 AVC1394GUIRewind *rewind_button;
75 AVC1394GUIReverse *reverse_button;
76 AVC1394GUIStop *stop_button;
77 AVC1394GUIPause *pause_button;
78 AVC1394GUIPlay *play_button;
79 AVC1394GUIFForward *fforward_button;
80 AVC1394GUISeekStart *start_button;
81 AVC1394GUISeekEnd *end_button;
84 class AVC1394GUISeekStart : public BC_Button
87 AVC1394GUISeekStart(MWindow *mwindow, AVC1394Control *avc, int x, int y);
88 ~AVC1394GUISeekStart();
96 class AVC1394GUIRewind : public BC_Button
99 AVC1394GUIRewind(MWindow *mwindow, AVC1394Control *avc, int x, int y);
103 int keypress_event();
108 class AVC1394GUIReverse : public BC_Button
111 AVC1394GUIReverse(MWindow *mwindow, AVC1394Control *avc, int x, int y);
112 ~AVC1394GUIReverse();
115 int keypress_event();
120 class AVC1394GUIStop : public BC_Button
123 AVC1394GUIStop(MWindow *mwindow, AVC1394Control *avc, int x, int y);
127 int keypress_event();
132 class AVC1394GUIPause : public BC_Button
135 AVC1394GUIPause(MWindow *mwindow, AVC1394Control *avc, int x, int y);
139 int keypress_event();
144 class AVC1394GUIPlay : public BC_Button
147 AVC1394GUIPlay(MWindow *mwindow, AVC1394Control *avc, int x, int y);
151 int keypress_event();
157 class AVC1394GUIFForward : public BC_Button
160 AVC1394GUIFForward(MWindow *mwindow, AVC1394Control *avc, int x, int y);
161 ~AVC1394GUIFForward();
164 int keypress_event();
169 class AVC1394GUISeekEnd : public BC_Button
172 AVC1394GUISeekEnd(MWindow *mwindow, AVC1394Control *avc, int x, int y);
173 ~AVC1394GUISeekEnd();
176 int keypress_event();