author | llornkcor <llornkcor> | 2002-05-31 00:24:18 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-05-31 00:24:18 (UTC) |
commit | 294fecd1c15c4940bdab8566e5afaee9f305abb6 (patch) (unidiff) | |
tree | 47860d13c0aeffb0b9afad96d669d8935769fe7a /core/multimedia/opieplayer/playlistwidget.h | |
parent | 706841997a5d466f3b873ed79102e4abe0d745ae (diff) | |
download | opie-294fecd1c15c4940bdab8566e5afaee9f305abb6.zip opie-294fecd1c15c4940bdab8566e5afaee9f305abb6.tar.gz opie-294fecd1c15c4940bdab8566e5afaee9f305abb6.tar.bz2 |
sped up startup time, and fixed segfault on exit
Diffstat (limited to 'core/multimedia/opieplayer/playlistwidget.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/multimedia/opieplayer/playlistwidget.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/multimedia/opieplayer/playlistwidget.h b/core/multimedia/opieplayer/playlistwidget.h index 778e3ee..6569f35 100644 --- a/core/multimedia/opieplayer/playlistwidget.h +++ b/core/multimedia/opieplayer/playlistwidget.h | |||
@@ -26,97 +26,100 @@ | |||
26 | #include <qpe/fileselector.h> | 26 | #include <qpe/fileselector.h> |
27 | #include <qpushbutton.h> | 27 | #include <qpushbutton.h> |
28 | 28 | ||
29 | /* #include <qtimer.h> */ | 29 | /* #include <qtimer.h> */ |
30 | 30 | ||
31 | 31 | ||
32 | class PlayListWidgetPrivate; | 32 | class PlayListWidgetPrivate; |
33 | class Config; | 33 | class Config; |
34 | class QListViewItem; | 34 | class QListViewItem; |
35 | class QListView; | 35 | class QListView; |
36 | class QPoint; | 36 | class QPoint; |
37 | class QAction; | 37 | class QAction; |
38 | class QLabel; | 38 | class QLabel; |
39 | 39 | ||
40 | class PlayListWidget : public QMainWindow { | 40 | class PlayListWidget : public QMainWindow { |
41 | Q_OBJECT | 41 | Q_OBJECT |
42 | public: | 42 | public: |
43 | PlayListWidget( QWidget* parent=0, const char* name=0, WFlags fl=0 ); | 43 | PlayListWidget( QWidget* parent=0, const char* name=0, WFlags fl=0 ); |
44 | ~PlayListWidget(); | 44 | ~PlayListWidget(); |
45 | QTabWidget * tabWidget; | 45 | QTabWidget * tabWidget; |
46 | QAction *fullScreenButton, *scaleButton; | 46 | QAction *fullScreenButton, *scaleButton; |
47 | DocLnkSet files; | 47 | DocLnkSet files; |
48 | DocLnkSet vFiles; | 48 | DocLnkSet vFiles; |
49 | QListView *audioView, *videoView, *playlistView; | 49 | QListView *audioView, *videoView, *playlistView; |
50 | QLabel *libString; | 50 | QLabel *libString; |
51 | bool fromSetDocument; | 51 | bool fromSetDocument; |
52 | bool insanityBool; | 52 | bool insanityBool; |
53 | QString setDocFileRef; | 53 | QString setDocFileRef; |
54 | // retrieve the current playlist entry (media file link) | 54 | // retrieve the current playlist entry (media file link) |
55 | const DocLnk *current(); | 55 | const DocLnk *current(); |
56 | void useSelectedDocument(); | 56 | void useSelectedDocument(); |
57 | /* QTimer * menuTimer; */ | 57 | /* QTimer * menuTimer; */ |
58 | FileSelector* playLists; | 58 | FileSelector* playLists; |
59 | QPushButton *tbDeletePlaylist; | 59 | QPushButton *tbDeletePlaylist; |
60 | int fd; | 60 | int fd; |
61 | public slots: | 61 | public slots: |
62 | bool first(); | 62 | bool first(); |
63 | bool last(); | 63 | bool last(); |
64 | bool next(); | 64 | bool next(); |
65 | bool prev(); | 65 | bool prev(); |
66 | /* void setFullScreen(); */ | 66 | /* void setFullScreen(); */ |
67 | /* void setScaled(); */ | 67 | /* void setScaled(); */ |
68 | protected: | 68 | protected: |
69 | /* void contentsMousePressEvent( QMouseEvent * e ); */ | 69 | /* void contentsMousePressEvent( QMouseEvent * e ); */ |
70 | /* void contentsMouseReleaseEvent( QMouseEvent * e ); */ | 70 | /* void contentsMouseReleaseEvent( QMouseEvent * e ); */ |
71 | void keyReleaseEvent( QKeyEvent *e); | 71 | void keyReleaseEvent( QKeyEvent *e); |
72 | void keyPressEvent( QKeyEvent *e); | 72 | void keyPressEvent( QKeyEvent *e); |
73 | private: | 73 | private: |
74 | bool audioScan, videoScan; | ||
74 | void doBlank(); | 75 | void doBlank(); |
75 | void doUnblank(); | 76 | void doUnblank(); |
76 | void readm3u(const QString &); | 77 | void readm3u(const QString &); |
77 | void writem3u(const QString &); | 78 | void writem3u(const QString &); |
78 | void readPls(const QString &); | 79 | void readPls(const QString &); |
79 | 80 | ||
80 | 81 | ||
81 | void initializeStates(); | 82 | void initializeStates(); |
82 | void readConfig( Config& cfg ); | 83 | void readConfig( Config& cfg ); |
83 | void writeConfig( Config& cfg ) const; | 84 | void writeConfig( Config& cfg ) const; |
84 | PlayListWidgetPrivate *d; // Private implementation data | 85 | PlayListWidgetPrivate *d; // Private implementation data |
85 | void populateAudioView(); | 86 | void populateAudioView(); |
86 | void populateVideoView(); | 87 | void populateVideoView(); |
87 | private slots: | 88 | private slots: |
89 | void scanForAudio(); | ||
90 | void scanForVideo(); | ||
88 | void openFile(); | 91 | void openFile(); |
89 | void setDocument( const QString& fileref ); | 92 | void setDocument( const QString& fileref ); |
90 | void addToSelection( const DocLnk& ); // Add a media file to the playlist | 93 | void addToSelection( const DocLnk& ); // Add a media file to the playlist |
91 | void addToSelection( QListViewItem* ); // Add a media file to the playlist | 94 | void addToSelection( QListViewItem* ); // Add a media file to the playlist |
92 | void setActiveWindow(); // need to handle this to show the right view | 95 | void setActiveWindow(); // need to handle this to show the right view |
93 | void setPlaylist( bool ); // Show/Hide the playlist | 96 | void setPlaylist( bool ); // Show/Hide the playlist |
94 | void setView( char ); | 97 | void setView( char ); |
95 | void clearList(); | 98 | void clearList(); |
96 | void addAllToList(); | 99 | void addAllToList(); |
97 | void addAllMusicToList(); | 100 | void addAllMusicToList(); |
98 | void addAllVideoToList(); | 101 | void addAllVideoToList(); |
99 | void saveList(); // Save the playlist | 102 | void saveList(); // Save the playlist |
100 | void loadList( const DocLnk &); // Load a playlist | 103 | void loadList( const DocLnk &); // Load a playlist |
101 | void playIt( QListViewItem *); | 104 | void playIt( QListViewItem *); |
102 | 105 | ||
103 | void btnPlay(bool); | 106 | void btnPlay(bool); |
104 | void deletePlaylist(); | 107 | void deletePlaylist(); |
105 | void addSelected(); | 108 | void addSelected(); |
106 | void removeSelected(); | 109 | void removeSelected(); |
107 | void tabChanged(QWidget*); | 110 | void tabChanged(QWidget*); |
108 | void viewPressed( int, QListViewItem *, const QPoint&, int); | 111 | void viewPressed( int, QListViewItem *, const QPoint&, int); |
109 | void playlistViewPressed( int, QListViewItem *, const QPoint&, int); | 112 | void playlistViewPressed( int, QListViewItem *, const QPoint&, int); |
110 | void playSelected(); | 113 | void playSelected(); |
111 | void listDelete(); | 114 | void listDelete(); |
112 | 115 | ||
113 | protected slots: | 116 | protected slots: |
114 | /* void cancelMenuTimer(); */ | 117 | /* void cancelMenuTimer(); */ |
115 | /* void showFileMenu(); */ | 118 | /* void showFileMenu(); */ |
116 | 119 | ||
117 | 120 | ||
118 | }; | 121 | }; |
119 | 122 | ||
120 | 123 | ||
121 | #endif // PLAY_LIST_WIDGET_H | 124 | #endif // PLAY_LIST_WIDGET_H |
122 | 125 | ||