summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/playlistwidget.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/noncore/multimedia/opieplayer2/playlistwidget.h b/noncore/multimedia/opieplayer2/playlistwidget.h
index ad5c9a3..62d78a2 100644
--- a/noncore/multimedia/opieplayer2/playlistwidget.h
+++ b/noncore/multimedia/opieplayer2/playlistwidget.h
@@ -62,33 +62,28 @@ public:
62 { 62 {
63 Entry( const QString &_name, const QString &_fileName ) 63 Entry( const QString &_name, const QString &_fileName )
64 : name( _name ), file( _fileName ) {} 64 : name( _name ), file( _fileName ) {}
65 Entry( const QString &_fileName ) 65 Entry( const QString &_fileName )
66 : name( _fileName ), file( _fileName ) {} 66 : name( _fileName ), file( _fileName ) {}
67 67
68 QString name; 68 QString name;
69 QString file; 69 QString file;
70 }; 70 };
71 71
72 PlayListWidget( MediaPlayerState &mediaPlayerState, QWidget* parent=0, const char* name=0 ); 72 PlayListWidget( MediaPlayerState &mediaPlayerState, QWidget* parent=0, const char* name=0 );
73 ~PlayListWidget(); 73 ~PlayListWidget();
74 DocLnkSet files; 74
75 DocLnkSet vFiles;
76 bool fromSetDocument;
77 bool insanityBool;
78 QString setDocFileRef, currentPlayList;
79 // retrieve the current playlist entry (media file link) 75 // retrieve the current playlist entry (media file link)
80 const DocLnk *current() const; 76 const DocLnk *current() const;
81 void useSelectedDocument(); 77 void useSelectedDocument();
82 int selected;
83 TabType currentTab() const; 78 TabType currentTab() const;
84 79
85 Entry currentEntry() const; 80 Entry currentEntry() const;
86 81
87public slots: 82public slots:
88 bool first(); 83 bool first();
89 bool last(); 84 bool last();
90 bool next(); 85 bool next();
91 bool prev(); 86 bool prev();
92 void writeDefaultPlaylist( ); 87 void writeDefaultPlaylist( );
93 QString currentFileListPathName() const; 88 QString currentFileListPathName() const;
94protected: 89protected:
@@ -129,16 +124,23 @@ private slots:
129 void saveList(); // Save the playlist 124 void saveList(); // Save the playlist
130 void loadList( const DocLnk &); // Load a playlist 125 void loadList( const DocLnk &); // Load a playlist
131 void playIt( QListViewItem *); 126 void playIt( QListViewItem *);
132 void btnPlay(bool); 127 void btnPlay(bool);
133 void deletePlaylist(); 128 void deletePlaylist();
134 void addSelected(); 129 void addSelected();
135 void removeSelected(); 130 void removeSelected();
136 void tabChanged(QWidget*); 131 void tabChanged(QWidget*);
137 void viewPressed( int, QListViewItem *, const QPoint&, int); 132 void viewPressed( int, QListViewItem *, const QPoint&, int);
138 void playlistViewPressed( int, QListViewItem *, const QPoint&, int); 133 void playlistViewPressed( int, QListViewItem *, const QPoint&, int);
139 void playSelected(); 134 void playSelected();
140 135
136private:
137 DocLnkSet files;
138 DocLnkSet vFiles;
139 bool fromSetDocument;
140 bool insanityBool;
141 QString setDocFileRef, currentPlayList;
142 int selected;
141}; 143};
142 144
143#endif // PLAY_LIST_WIDGET_H 145#endif // PLAY_LIST_WIDGET_H
144 146