2 Copyright 2004-2005 Chris Tallon, Andreas Vogel
4 This file is part of VOMP.
6 VOMP 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 VOMP 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 VOMP; if not, write to the Free Software
18 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 #ifndef VAUDIOPLAYER_H
22 #define VAUDIOPLAYER_H
36 #include "vmedialist.h"
40 * the audio player frontend
41 * will ineract with the parent List for ff,back, slide show...
46 class VAudioplayer : public View,public TimerReceiver
51 void processMessage(Message* m);
52 int handleCommand(int command);
54 void timercall(int clientReference);
56 //return NULL on error
57 static VAudioplayer *createPlayer(VMediaList * parent, bool startPlayall=false);
58 //show the picture currently selected in the parent
59 //potentially moving to next/previous one
60 void play(ULONG move=VMediaList::MV_NONE);
67 const static int BANNER_TIME=30;
68 //show time of an error
69 const static int BANNER_ERROR_TIME=8;
72 //margin on SCREEN on each side
73 const static int BANNER_X_MARGIN=50;
74 //margin on bottom of screen
75 const static int BANNER_BOTTOM_MARGIN=30;
76 //length of the progress bar
77 const static int BARLEN=250;
79 VAudioplayer(VMediaList * plist);
80 void retriggerBanner();
81 void showBanner(bool forceRestart=false);
83 void updateBanner(bool restart=false);
86 View *createBannerView(int numlines);
88 //add or destroy a view (banner, info)
89 void sendViewMsg(View *v,bool destroy=false);
90 //get the player - create it if necessary
91 AudioPlayer* getPlayer(bool create=true);