Debian Codegraph @

include/cddb/cddbinfo.h

raw symbols SCIP
1 /* fre:ac - free audio converter
2 * Copyright (C) 2001-2020 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_FREAC_CDDBINFO
14 #define H_FREAC_CDDBINFO
15
16 #include <boca.h>
17
18 using namespace smooth;
19
20 namespace freac
21 {
22 class CDDBInfo
23 {
24 public:
25 static String VariousArtistsID;
26 static String DataTrackID;
27
28 String category;
29 UnsignedInt32 discID;
30 Int revision;
31
32 Array<Int> trackOffsets;
33 Int discLength;
34
35 String dArtist;
36 String dTitle;
37 Int dYear;
38 String dGenre;
39 String comment;
40 String playOrder;
41
42 Array<String> trackArtists;
43 Array<String> trackTitles;
44 Array<String> trackComments;
45
46 String oDArtist;
47 String oDTitle;
48 String oDGenre;
49 String oComment;
50
51 Array<String> oTrackArtists;
52 Array<String> oTrackTitles;
53 Array<String> oTrackComments;
54
55 String charset;
56
57 CDDBInfo();
58 CDDBInfo(int);
59 CDDBInfo(const CDDBInfo &);
60
61 bool operator ==(const CDDBInfo &) const;
62 bool operator !=(const CDDBInfo &) const;
63
64 bool operator ==(int) const;
65 bool operator !=(int) const;
66
67 CDDBInfo &operator =(int);
68 CDDBInfo &operator =(const CDDBInfo &);
69
70 const String &GetTrackArtist(Int) const;
71
72 String GetQueryString() const;
73 Bool UpdateFromQueryString(const String &);
74
75 Bool UpdateTrack(BoCA::Track &) const;
76 };
77 };
78
79 #endif