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
29 #include <unistd.h> // sleep
33 //#include "defines.h"
35 //#include "mvpreceiver.h"
36 //#include "recplayer.h"
39 //the following defines must be consisten to the client side
40 /* media types form a bitmask
41 so you can add them to have > 1*/
42 #define MEDIA_TYPE_DIR 1
43 #define MEDIA_TYPE_AUDIO 2
44 #define MEDIA_TYPE_VIDEO 4
45 #define MEDIA_TYPE_PICTURE 8
46 #define MEDIA_TYPE_UNKNOWN 256
48 #define MEDIA_TYPE_ALL (1+2+4+8)
54 * create a media entry
55 * filename will get copied
57 Media(int type, const char * filename, int time);
59 const char * getFilename();
71 class MediaList : public vector<Media*> {
73 static MediaList *readList(Config *cfg,const char * dirname,int type=MEDIA_TYPE_ALL);