cvs20080628 - trunk
[gitenigma.git] / include / lib / movieplayer / mpconfig.h
blobe1ef526fbbb1d15ab6737c060f7d53d2476f34a8
1 /*
2 * $Id: mpconfig.h,v 1.3 2005/12/23 17:00:07 digi_casi Exp $
4 * (C) 2005 by digi_casi <digi_casi@tuxbox.org>
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., 675 Mass Ave, Cambridge, MA 02139, USA.
22 #ifndef __lib_mpconfig_h
23 #define __lib_mpconfig_h
25 #include <vector>
26 #include <lib/base/estring.h>
28 #define CONFFILE0 "/share/tuxbox/enigma/templates/movieplayer.xml"
29 #define CONFFILE1 "/var/tuxbox/config/movieplayer.xml"
31 struct serverConfig
33 eString serverIP;
34 eString webifPort;
35 eString streamingPort;
36 eString vlcUser;
37 eString vlcPass;
38 eString startDir;
39 eString CDDrive;
42 struct videoTypeParms
44 eString name;
45 eString extension;
46 eString videoRate;
47 eString audioRate;
48 eString videoCodec;
49 eString videoRatio;
50 bool transcodeVideo;
51 bool transcodeAudio;
52 eString fps;
55 struct codecs
57 eString mpeg1;
58 eString mpeg2;
59 eString audio;
62 class eMPConfig
64 struct serverConfig serverConf;
65 std::vector<struct videoTypeParms> videoParmList;
66 struct codecs avcodecs;
67 public:
68 eMPConfig();
69 ~eMPConfig();
70 bool load();
71 void save();
72 struct videoTypeParms getVideoParms(eString name, eString extension);
73 struct serverConfig getServerConfig();
74 struct codecs getAVCodecs();
75 void setVideoParms(struct videoTypeParms videoParms);
76 void setServerConfig(struct serverConfig serverConf);
77 void setAVCodecs(struct codecs avCodecs);
79 #endif