2 Copyright 2014 Marten Richter
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
36 TVMediaInfo(const TVMediaInfo& info);
38 friend bool operator<(const TVMediaInfo& rhs, const TVMediaInfo& lhs);
39 friend bool operator==(const TVMediaInfo& rhs, const TVMediaInfo& lhs);
41 void setSeasonThumb() { type_pict=2; container=0; container_member=0;};
42 void setPosterThumb() { type_pict=1; container=0; container_member=0;};
43 void setElement(int cont,int memb) { type_pict=0; container=cont; container_member=memb;};
44 void setMovieInfo(const MovieInfo * mi);
45 void setSeriesInfo(const SeriesInfo * si);
46 void setPosterThumb(const char* recname);
47 void setPosterThumb(int channel, int eventid);
48 void setChannelLogo(int channel);
49 void setDefaultJpeg(int jpeg_index);
50 int getType() {return type;};
51 int getPrimaryID() {return primary_id;};
52 int getSecondaryID() {return secondary_id;};
55 int type; // 1 movie or 2 series or 3 unknown recording or 4 static artwork
56 int primary_id; //movie or series_id
57 int secondary_id; //0 or episode id
58 int type_pict; // 0 full info, 1 poster thumb, 2 season thumb
59 int container; // indices the dataelements with picture in movieinfo or seriesinfo
60 int container_member; // index into the container
61 std::string primary_name;
69 // no filename, file handling is only on the server
74 typedef std::vector<TVMedia> TVMedias;
83 typedef std::vector<Actor> Actors;