summaryrefslogtreecommitdiff
authorsimon <simon>2002-12-03 23:18:07 (UTC)
committer simon <simon>2002-12-03 23:18:07 (UTC)
commitf4067784367c7a7ce52fd18c3458b483fa79a716 (patch) (unidiff)
treec9d8e167e1c2496fa9be20442d59a3dab57c7db3
parent56d74fadbb911e169461a9bbefa664cd1ab6b129 (diff)
downloadopie-f4067784367c7a7ce52fd18c3458b483fa79a716.zip
opie-f4067784367c7a7ce52fd18c3458b483fa79a716.tar.gz
opie-f4067784367c7a7ce52fd18c3458b483fa79a716.tar.bz2
- a couple of public member variables made private
Diffstat (more/less context) (show 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
@@ -26,119 +26,121 @@
26  -_. . .   )=.  = General Public License along with 26  -_. . .   )=.  = General Public License along with
27    --        :-=` this library; see the file COPYING.LIB. 27    --        :-=` this library; see the file COPYING.LIB.
28 If not, write to the Free Software Foundation, 28 If not, write to the Free Software Foundation,
29 Inc., 59 Temple Place - Suite 330, 29 Inc., 59 Temple Place - Suite 330,
30 Boston, MA 02111-1307, USA. 30 Boston, MA 02111-1307, USA.
31 31
32*/ 32*/
33 33
34#ifndef PLAY_LIST_WIDGET_H 34#ifndef PLAY_LIST_WIDGET_H
35#define PLAY_LIST_WIDGET_H 35#define PLAY_LIST_WIDGET_H
36 36
37#include <qmainwindow.h> 37#include <qmainwindow.h>
38#include <qpe/applnk.h> 38#include <qpe/applnk.h>
39#include <qtabwidget.h> 39#include <qtabwidget.h>
40#include <qpe/fileselector.h> 40#include <qpe/fileselector.h>
41#include <qpushbutton.h> 41#include <qpushbutton.h>
42#include <qpopupmenu.h> 42#include <qpopupmenu.h>
43 43
44#include "playlistwidgetgui.h" 44#include "playlistwidgetgui.h"
45 45
46 46
47//class PlayListWidgetPrivate; 47//class PlayListWidgetPrivate;
48class Config; 48class Config;
49class QListViewItem; 49class QListViewItem;
50class QListView; 50class QListView;
51class QPoint; 51class QPoint;
52class QAction; 52class QAction;
53class QLabel; 53class QLabel;
54 54
55class PlayListWidget : public PlayListWidgetGui { 55class PlayListWidget : public PlayListWidgetGui {
56 Q_OBJECT 56 Q_OBJECT
57public: 57public:
58 enum TabType { CurrentPlayList, AudioFiles, VideoFiles, PlayLists }; 58 enum TabType { CurrentPlayList, AudioFiles, VideoFiles, PlayLists };
59 enum { TabTypeCount = 4 }; 59 enum { TabTypeCount = 4 };
60 60
61 struct Entry 61 struct Entry
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:
95 void keyReleaseEvent( QKeyEvent *e); 90 void keyReleaseEvent( QKeyEvent *e);
96 91
97signals: 92signals:
98 void skinSelected(); 93 void skinSelected();
99 94
100private: 95private:
101 int defaultSkinIndex; 96 int defaultSkinIndex;
102 bool audioScan, videoScan, audioPopulated, videoPopulated; 97 bool audioScan, videoScan, audioPopulated, videoPopulated;
103 void readm3u(const QString &); 98 void readm3u(const QString &);
104 void readPls(const QString &); 99 void readPls(const QString &);
105 void initializeStates(); 100 void initializeStates();
106 void populateAudioView(); 101 void populateAudioView();
107 void populateVideoView(); 102 void populateVideoView();
108 103
109 QListView *currentFileListView() const; 104 QListView *currentFileListView() const;
110 105
111 bool inFileListMode() const; 106 bool inFileListMode() const;
112 107
113private slots: 108private slots:
114 void populateSkinsMenu(); 109 void populateSkinsMenu();
115 void skinsMenuActivated(int); 110 void skinsMenuActivated(int);
116 void pmViewActivated(int); 111 void pmViewActivated(int);
117 void writem3u(); 112 void writem3u();
118 void writeCurrentM3u(); 113 void writeCurrentM3u();
119 void scanForAudio(); 114 void scanForAudio();
120 void scanForVideo(); 115 void scanForVideo();
121 void openFile(); 116 void openFile();
122 void setDocument( const QString& fileref ); 117 void setDocument( const QString& fileref );
123 void addToSelection( const DocLnk& ); // Add a media file to the playlist 118 void addToSelection( const DocLnk& ); // Add a media file to the playlist
124 void addToSelection( QListViewItem* ); // Add a media file to the playlist 119 void addToSelection( QListViewItem* ); // Add a media file to the playlist
125 void clearList(); 120 void clearList();
126 void addAllToList(); 121 void addAllToList();
127 void addAllMusicToList(); 122 void addAllMusicToList();
128 void addAllVideoToList(); 123 void addAllVideoToList();
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