Debian Codegraph @

src/track.h

raw symbols SCIP
1 /*
2 Copyright (C) 2005-2014 Mario Stephan <[email protected]>
3
4 This library is free software; you can redistribute it and/or modify
5 it under the terms of the GNU Lesser General Public License as published
6 by the Free Software Foundation; either version 2.1 of the License, or
7 (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU Lesser General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18 #ifndef TRACK_H
19 #define TRACK_Hcxx . . $ `src/track.h:19:9`!
20
21
22 #include <QUrl>
23 #include <QImage>
24 #include <QStringList>
25
26 #define TAGLIB_STATICcxx . . $ `src/track.h:26:9`!
27
28 class PlaylistItemcxx . . $ PlaylistItem#;
29
30
31 namespace TagLibcxx . . $ TagLib/ { class AudioPropertiescxx . . $ TagLib/AudioProperties#; class Tagcxx . . $ TagLib/Tag#; }
32
33
34 class Trackcxx . . $ Track#
35 {
36
37 public:
38
39 enum Optioncxx . . $ Track#Option# {
40 NoOptionscxx . . $ Track#NoOptions. = 0x0,
41 isOnFirstPlayercxx . . $ Track#isOnFirstPlayer. = 0x1,
42 isOnSecondPlayercxx . . $ Track#isOnSecondPlayer. = 0x2,
43 isAutoDjSelectioncxx . . $ Track#isAutoDjSelection. = 0x4
44 };
45 Q_DECLARE_FLAGScxx . . $ Track#Options#(Options, Option)
46
47 Trackcxx . . $ Track#Track(49f6e7a06ebc5aa8).();
48 Trackcxx . . $ Track#Track(37355d2f77053a23).( const QUrlcxx . . $ QUrl# &u);
49 Trackcxx . . $ Track#Track(631c0101495f0328).( const QStringListcxx . . $ QStringList#& list );
50 Trackcxx . . $ Track#Track(f35f2654bb9dd8d7).( const PlaylistItemcxx . . $ PlaylistItem# *item );
51 ~cxx . . $ Track#`~Track`(ced63f7c635d850d).Trackcxx . . $ Track#();
52
53 static QStringListcxx . . $ QStringList# tagNameListcxx . . $ Track#tagNameList.;
54
55 QImagecxx . . $ QImage# coverImagecxx . . $ Track#coverImage(89a140e6ec82607c).();
56 QImagecxx . . $ QImage# defaultImagecxx . . $ Track#defaultImage(89a140e6ec82607c).();
57
58 bool operatorcxx . . $ Track#`operator==`(f70bb0c4c38d4a66).==(Trackcxx . . $ Track#* track);
59 bool containIncxx . . $ Track#containIn(80cb9709522a048d).(QListcxx . . $ QList#<Trackcxx . . $ Track#*> list );
60
61 QUrlcxx . . $ QUrl# urlcxx . . $ Track#url(db502ccec337722f).();
62 QStringcxx . . $ QString# titlecxx . . $ Track#title(4365c3963150523e).();
63 QStringcxx . . $ QString# artistcxx . . $ Track#artist(4365c3963150523e).();
64 QStringcxx . . $ QString# albumcxx . . $ Track#album(4365c3963150523e).();
65 QStringcxx . . $ QString# yearcxx . . $ Track#year(4365c3963150523e).();
66 QStringcxx . . $ QString# commentcxx . . $ Track#comment(4365c3963150523e).();
67 QStringcxx . . $ QString# genrecxx . . $ Track#genre(4365c3963150523e).();
68 int lengthcxx . . $ Track#length(b126dc7c1de90089).();
69 int countercxx . . $ Track#counter(b126dc7c1de90089).();
70 int ratecxx . . $ Track#rate(b126dc7c1de90089).();
71 QStringcxx . . $ QString# tracknumbercxx . . $ Track#tracknumber(4365c3963150523e).();
72 QStringcxx . . $ QString# prettyLengthcxx . . $ Track#prettyLength(4365c3963150523e).();
73 QStringListcxx . . $ QStringList# tagListcxx . . $ Track#tagList(669a05bc42dd57cc).();
74 QStringcxx . . $ QString# dirPathcxx . . $ Track#dirPath(4365c3963150523e).();
75 Trackcxx . . $ Track#::Optionscxx . . $ Track#Options# flagscxx . . $ Track#flags(6ce10c0cf6a51a1f).();
76
77 bool isValidcxx . . $ Track#isValid(c9857a73d68e59ba).();
78
79 void setUrlcxx . . $ Track#setUrl(fe09fe9c2ffe9947).(QUrlcxx . . $ QUrl#);
80 void setTitlecxx . . $ Track#setTitle(7df51288a9ebd664).(QStringcxx . . $ QString#);
81 void setArtistcxx . . $ Track#setArtist(7df51288a9ebd664).(QStringcxx . . $ QString#);
82 void setAlbumcxx . . $ Track#setAlbum(7df51288a9ebd664).(QStringcxx . . $ QString#);
83 void setYearcxx . . $ Track#setYear(7df51288a9ebd664).(QStringcxx . . $ QString#);
84 void setCommentcxx . . $ Track#setComment(7df51288a9ebd664).(QStringcxx . . $ QString#);
85 void setGenrecxx . . $ Track#setGenre(7df51288a9ebd664).(QStringcxx . . $ QString#);
86 void setTracknumbercxx . . $ Track#setTracknumber(7df51288a9ebd664).(QStringcxx . . $ QString#);
87 void setLengthcxx . . $ Track#setLength(7df51288a9ebd664).(QStringcxx . . $ QString#);
88 void setLengthFromPrettycxx . . $ Track#setLengthFromPretty(7df51288a9ebd664).(QStringcxx . . $ QString#);
89 void setCountercxx . . $ Track#setCounter(7df51288a9ebd664).(QStringcxx . . $ QString#);
90 void setRatecxx . . $ Track#setRate(d4f767463ce0a6b3).(int);
91 void setFlagscxx . . $ Track#setFlags(e362d3aff087b916).(Trackcxx . . $ Track#::Optionscxx . . $ Track#Options# flags);
92
93
94 QStringcxx . . $ QString# prettyTitlecxx . . $ Track#prettyTitle(6ef7b6c27b00b43d).() const;
95 QStringcxx . . $ QString# prettyArtistcxx . . $ Track#prettyArtist(3f3c3d0e9c0eb37f).(int) const;
96 QStringcxx . . $ QString# prettyTitlecxx . . $ Track#prettyTitle(3f3c3d0e9c0eb37f).(int) const;
97
98 static QStringcxx . . $ QString# prettyLengthcxx . . $ Track#prettyLength(ce915ed341d4a7f0).( int );
99 static QStringcxx . . $ QString# prettyTimecxx . . $ Track#prettyTime(dbfc6ea7cdb6729e).( int, bool showHours = true );
100 static QStringcxx . . $ QString# zeroPadcxx . . $ Track#zeroPad(538777a873a4ab5d).( uintcxx . . $ uint# i ) { return ( i < 10 ) ? QStringcxx . . $ QString#QString(85c52e162fed56f9).( "0%1" ).argcxx . . $ QString#arg(173a29139b43af1f).( i ) : QStringcxx . . $ QString#::numbercxx . . $ QString#number(da83c6b4fd8c0e98).( i ); }
101 static QStringcxx . . $ QString# prettyTitlecxx . . $ Track#prettyTitle(f7f320d754b8fd09).( QStringcxx . . $ QString# );
102
103 protected:
104
105 QStringcxx . . $ QString# rsqueezecxx . . $ Track#rsqueeze(f22fab4c77c1763a).( const QStringcxx . . $ QString#&, int ) const;
106 void readTagscxx . . $ Track#readTags(49f6e7a06ebc5aa8).();
107
108 private:
109
110 struct TrackPrivatecxx . . $ TrackPrivate# *pcxx . . $ Track#p.;
111
112 };
113 Q_DECLARE_OPERATORS_FOR_FLAGScxx . . $ `operator|`(45d223ef46b12fcb).(Track::Options)
114 #endif