| 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 PLAYLISTITEM_Hcxx . . $ `src/playlistitem.h:19:9`! |
| 19 | #define PLAYLISTITEM_Hcxx . . $ `src/playlistitem.h:19:9`! |
| 20 | |
| 21 | #include <QTreeWidgetItem> |
| 22 | #include <Qt> |
| 23 | #include <qurl.h> |
| 24 | #include "track.h"cxx . . $ `<file>/src/track.h`/ |
| 25 | #include "playlistitem.h"cxx . . $ `<file>/src/playlistitem.h`/ |
| 26 | #include "playlist.h"cxx . . $ `<file>/src/playlist.h`/ |
| 27 | #include "ratingwidget.h"cxx . . $ `<file>/src/ratingwidget.h`/ |
| 28 | |
| 29 | class PlaylistItemcxx . . $ PlaylistItem# : public QTreeWidgetItemcxx . . $ QTreeWidgetItem# |
| 30 | { |
| 31 | |
| 32 | public: |
| 33 | PlaylistItemcxx . . $ PlaylistItem#PlaylistItem(12133e763ddaf43d).( Playlistcxx . . $ Playlist# *pl, QTreeWidgetItemcxx . . $ QTreeWidgetItem# *lvi ); |
| 34 | ~cxx . . $ PlaylistItem#`~PlaylistItem`(ced63f7c635d850d).PlaylistItemcxx . . $ PlaylistItem#(); |
| 35 | QStringcxx . . $ QString# urlStringcxx . . $ PlaylistItem#urlString(6ef7b6c27b00b43d).() const { return textcxx . . $ QTreeWidgetItem#text(3f3c3d0e9c0eb37f).(Column_Urlcxx . . $ PlaylistItem#Column_Url. ); } |
| 36 | QStringcxx . . $ QString# titlecxx . . $ PlaylistItem#title(6ef7b6c27b00b43d).() const { return textcxx . . $ QTreeWidgetItem#text(3f3c3d0e9c0eb37f).( Column_Titlecxx . . $ PlaylistItem#Column_Title. ); } |
| 37 | QStringcxx . . $ QString# artistcxx . . $ PlaylistItem#artist(6ef7b6c27b00b43d).() const { return textcxx . . $ QTreeWidgetItem#text(3f3c3d0e9c0eb37f).( Column_Artistcxx . . $ PlaylistItem#Column_Artist. ); } |
| 38 | int ratecxx . . $ PlaylistItem#rate(b126dc7c1de90089).(); |
| 39 | Playlistcxx . . $ Playlist# *listViewcxx . . $ PlaylistItem#listView(cb549228c730d7ff).() const { return (Playlistcxx . . $ Playlist#*)treeWidgetcxx . . $ QTreeWidgetItem#treeWidget(38e1593ce2a8904b).(); } |
| 40 | PlaylistItemcxx . . $ PlaylistItem# *nextSiblingcxx . . $ PlaylistItem#nextSibling(51fa73fd7dca94c4).() const { return (PlaylistItemcxx . . $ PlaylistItem#*)treeWidgetcxx . . $ QTreeWidgetItem#treeWidget(38e1593ce2a8904b).()->itemBelowcxx . . $ QTreeWidget#itemBelow(eb661a0480530517).(this); } |
| 41 | //ratingWidget() |
| 42 | |
| 43 | Trackcxx . . $ Track# *trackcxx . . $ PlaylistItem#track(13bbbb52c2f64851).() { return m_trackcxx . . $ PlaylistItem#m_track. ; } |
| 44 | void setTrackcxx . . $ PlaylistItem#setTrack(c7ced298c7283c1a).( Trackcxx . . $ Track#*); |
| 45 | |
| 46 | QColorcxx . . $ QColor# foreColorcxx . . $ PlaylistItem#foreColor(f5857e16334315e5).() { return m_foreColorcxx . . $ QColor#QColor(c396aab421781ee8). ; } |
| 47 | void setForeColorcxx . . $ PlaylistItem#setForeColor(406700690822ecf).( QColorcxx . . $ QColor# c ) {m_foreColorcxx . . $ PlaylistItem#m_foreColor.=cxx . . $ QColor#`operator=`(a3db1be773b26671).c; updatecxx . . $ PlaylistItem#update(49f6e7a06ebc5aa8).();} |
| 48 | |
| 49 | void updatecxx . . $ PlaylistItem#update(49f6e7a06ebc5aa8).(); |
| 50 | |
| 51 | |
| 52 | void setTextscxx . . $ PlaylistItem#setTexts(c7ced298c7283c1a).( Trackcxx . . $ Track#* ); |
| 53 | void setTextcxx . . $ PlaylistItem#setText(909c33aa10af95dd).( int c, QStringcxx . . $ QString# Text); |
| 54 | QStringcxx . . $ QString# exactTextcxx . . $ PlaylistItem#exactText(3f3c3d0e9c0eb37f).( int col ) const { return textcxx . . $ QTreeWidgetItem#text(3f3c3d0e9c0eb37f).( col ); } |
| 55 | QStringcxx . . $ QString# secondscxx . . $ PlaylistItem#seconds(6ef7b6c27b00b43d).() const; |
| 56 | enum Columncxx . . $ PlaylistItem#Column# { Column_Urlcxx . . $ PlaylistItem#Column_Url. = 0, |
| 57 | Column_Nocxx . . $ PlaylistItem#Column_No. = 1, |
| 58 | Column_Playedcxx . . $ PlaylistItem#Column_Played. = 2, |
| 59 | Column_Artistcxx . . $ PlaylistItem#Column_Artist. = 3, |
| 60 | Column_Titlecxx . . $ PlaylistItem#Column_Title. = 4, |
| 61 | Column_Albumcxx . . $ PlaylistItem#Column_Album. = 5, |
| 62 | Column_Yearcxx . . $ PlaylistItem#Column_Year. = 6, |
| 63 | Column_Genrecxx . . $ PlaylistItem#Column_Genre. = 7, |
| 64 | Column_Tracknumbercxx . . $ PlaylistItem#Column_Tracknumber. = 8, |
| 65 | Column_Lengthcxx . . $ PlaylistItem#Column_Length. = 9, |
| 66 | Column_Ratecxx . . $ PlaylistItem#Column_Rate. = 10}; |
| 67 | signalscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:89:14`!: |
| 68 | |
| 69 | private: |
| 70 | Trackcxx . . $ Track# *m_trackcxx . . $ PlaylistItem#m_track.; |
| 71 | QColorcxx . . $ QColor# m_foreColorcxx . . $ PlaylistItem#m_foreColor.; |
| 72 | RatingWidgetcxx . . $ RatingWidget# *ratingcxx . . $ PlaylistItem#rating.; |
| 73 | Playlistcxx . . $ Playlist#* m_parentcxx . . $ PlaylistItem#m_parent.; |
| 74 | bool operatorcxx . . $ PlaylistItem#`operator<`(1e215ead71844640).< (const QTreeWidgetItemcxx . . $ QTreeWidgetItem# &other) const; |
| 75 | }; |
| 76 | |
| 77 | #endif |