author | simon <simon> | 2002-12-03 23:18:07 (UTC) |
---|---|---|
committer | simon <simon> | 2002-12-03 23:18:07 (UTC) |
commit | f4067784367c7a7ce52fd18c3458b483fa79a716 (patch) (unidiff) | |
tree | c9d8e167e1c2496fa9be20442d59a3dab57c7db3 | |
parent | 56d74fadbb911e169461a9bbefa664cd1ab6b129 (diff) | |
download | opie-f4067784367c7a7ce52fd18c3458b483fa79a716.zip opie-f4067784367c7a7ce52fd18c3458b483fa79a716.tar.gz opie-f4067784367c7a7ce52fd18c3458b483fa79a716.tar.bz2 |
- a couple of public member variables made private
-rw-r--r-- | noncore/multimedia/opieplayer2/playlistwidget.h | 14 |
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 | |||
@@ -50,57 +50,52 @@ class QListViewItem; | |||
50 | class QListView; | 50 | class QListView; |
51 | class QPoint; | 51 | class QPoint; |
52 | class QAction; | 52 | class QAction; |
53 | class QLabel; | 53 | class QLabel; |
54 | 54 | ||
55 | class PlayListWidget : public PlayListWidgetGui { | 55 | class PlayListWidget : public PlayListWidgetGui { |
56 | Q_OBJECT | 56 | Q_OBJECT |
57 | public: | 57 | public: |
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 | ||
87 | public slots: | 82 | public 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; |
94 | protected: | 89 | protected: |
95 | void keyReleaseEvent( QKeyEvent *e); | 90 | void keyReleaseEvent( QKeyEvent *e); |
96 | 91 | ||
97 | signals: | 92 | signals: |
98 | void skinSelected(); | 93 | void skinSelected(); |
99 | 94 | ||
100 | private: | 95 | private: |
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(); |
@@ -117,28 +112,35 @@ private slots: | |||
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 | ||
136 | private: | ||
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 | ||