Debian Codegraph @

components/extension/youtube/converter.h

raw symbols SCIP
1 /* fre:ac - free audio converter
2 * Copyright (C) 2001-2016 Robert Kausch <[email protected]>
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation, either version 2 of
7 * the License, or (at your option) any later version.
8 *
9 * THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
10 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
11 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. */
12
13 #ifndef H_YOUTUBE_CONVERTER
14 #define H_YOUTUBE_CONVERTER
15
16 #include <smooth.h>
17 #include <boca.h>
18
19 using namespace smooth;
20 using namespace smooth::GUI;
21
22 using namespace BoCA;
23
24 namespace BoCA
25 {
26 class Converter
27 {
28 private:
29 static Array<Converter *> converters;
30
31 String name;
32 String version;
33
34 String decoder;
35
36 AS::FileFormat format;
37
38 String external_command;
39 Bool external_ignoreExitCode;
40
41 String external_arguments;
42
43 Converter(const String &);
44 ~Converter();
45
46 Bool IsSane();
47
48 Int ParseXML(const String &);
49 public:
50 static Array<Converter *> &Get();
51 static Bool Free();
52
53 Int Run(const String &, const String &);
54 accessors:
55 const String &GetName() const { return name; }
56 const String &GetVersion() const { return version; }
57
58 const String &GetDecoderID() const { return decoder; }
59
60 const AS::FileFormat &GetFormat() const { return format; }
61 };
62 };
63
64 #endif