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
32 /* media types form a bitmask
33 so you can add them to have > 1*/
34 #define MEDIA_TYPE_DIR 1
35 #define MEDIA_TYPE_AUDIO 2
36 #define MEDIA_TYPE_VIDEO 4
37 #define MEDIA_TYPE_PICTURE 8
38 #define MEDIA_TYPE_UNKNOWN 0
40 #define MEDIA_TYPE_ALL (1+2+4+8)
50 void setTime(ULONG startTime);
51 void setDisplayName(char* displayName);
52 void setFileName(char* fileName);
53 void setMediaType(int mtype);
55 ULONG getTime() const;
56 const char* getDisplayName() const;
57 const char* getFileName() const;
58 //return the time as a string
59 //if the user provides a buffer, this one is used, if NULL
60 //is given a new buffer is allocated
61 //caller must delete the buffer after usage!
62 char * getTimeString(char *buffer) const;
63 //length for the time display buffer
64 const static int TIMEBUFLEN=100;
66 int getMediaType() const;
69 int getPrevMark(int currentFrame);
70 int getNextMark(int currentFrame);
72 MarkList* getMarkList();
81 // I only want 1 RecInfo loaded at a time
82 // if (recInfoFor == this) then recInfo is valid
83 // else delete recInfo and reload for this recording
84 static Media* recInfoFor;
88 typedef vector<Media*> MediaList;