summaryrefslogtreecommitdiff
path: root/noncore/multimedia/opieplayer2/playlistwidget.h
Unidiff
Diffstat (limited to 'noncore/multimedia/opieplayer2/playlistwidget.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/playlistwidget.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/noncore/multimedia/opieplayer2/playlistwidget.h b/noncore/multimedia/opieplayer2/playlistwidget.h
index 54e9d16..5230b03 100644
--- a/noncore/multimedia/opieplayer2/playlistwidget.h
+++ b/noncore/multimedia/opieplayer2/playlistwidget.h
@@ -1,52 +1,52 @@
1/* 1/*
2                This file is part of the Opie Project 2                This file is part of the Opie Project
3 3
4              Copyright (c) 2002 Max Reiss <harlekin@handhelds.org> 4              Copyright (c) 2002,2003 Max Reiss <harlekin@handhelds.org>
5 Copyright (c) 2002 L. Potter <ljp@llornkcor.com> 5 Copyright (c) 2002 L. Potter <ljp@llornkcor.com>
6 Copyright (c) 2002 Holger Freyther <zecke@handhelds.org> 6 Copyright (c) 2002 Holger Freyther <zecke@handhelds.org>
7 =. 7 =.
8 .=l. 8 .=l.
9           .>+-= 9           .>+-=
10 _;:,     .>    :=|. This program is free software; you can 10 _;:,     .>    :=|. This program is free software; you can
11.> <`_,   >  .   <= redistribute it and/or modify it under 11.> <`_,   >  .   <= redistribute it and/or modify it under
12:`=1 )Y*s>-.--   : the terms of the GNU General Public 12:`=1 )Y*s>-.--   : the terms of the GNU General Public
13.="- .-=="i,     .._ License as published by the Free Software 13.="- .-=="i,     .._ License as published by the Free Software
14 - .   .-<_>     .<> Foundation; either version 2 of the License, 14 - .   .-<_>     .<> Foundation; either version 2 of the License,
15     ._= =}       : or (at your option) any later version. 15     ._= =}       : or (at your option) any later version.
16    .%`+i>       _;_. 16    .%`+i>       _;_.
17    .i_,=:_.      -<s. This program is distributed in the hope that 17    .i_,=:_.      -<s. This program is distributed in the hope that
18     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY; 18     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY;
19    : ..    .:,     . . . without even the implied warranty of 19    : ..    .:,     . . . without even the implied warranty of
20    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A 20    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A
21  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU 21  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU
22..}^=.=       =       ; General Public License for more 22..}^=.=       =       ; General Public License for more
23++=   -.     .`     .: details. 23++=   -.     .`     .: details.
24 :     =  ...= . :.=- 24 :     =  ...= . :.=-
25 -.   .:....=;==+<; You should have received a copy of the GNU 25 -.   .:....=;==+<; You should have received a copy of the GNU
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#include <qpe/qcopenvelope_qws.h> 43#include <qpe/qcopenvelope_qws.h>
44 44
45#include "playlistwidgetgui.h" 45#include "playlistwidgetgui.h"
46 46
47 47
48//class PlayListWidgetPrivate; 48//class PlayListWidgetPrivate;
49class Config; 49class Config;
50class QListViewItem; 50class QListViewItem;
51class QListView; 51class QListView;
52class QPoint; 52class QPoint;
@@ -66,77 +66,78 @@ public:
66 Entry( const QString &_fileName ) 66 Entry( const QString &_fileName )
67 : name( _fileName ), file( _fileName ) {} 67 : name( _fileName ), file( _fileName ) {}
68 68
69 QString name; 69 QString name;
70 QString file; 70 QString file;
71 }; 71 };
72 72
73 PlayListWidget( MediaPlayerState &mediaPlayerState, QWidget* parent=0, const char* name=0 ); 73 PlayListWidget( MediaPlayerState &mediaPlayerState, QWidget* parent=0, const char* name=0 );
74 ~PlayListWidget(); 74 ~PlayListWidget();
75 75
76 // retrieve the current playlist entry (media file link) 76 // retrieve the current playlist entry (media file link)
77 const DocLnk *current() const; 77 const DocLnk *current() const;
78 void useSelectedDocument(); 78 void useSelectedDocument();
79 TabType currentTab() const; 79 TabType currentTab() const;
80 80
81 Entry currentEntry() const; 81 Entry currentEntry() const;
82 82
83public slots: 83public slots:
84 bool first(); 84 bool first();
85 bool last(); 85 bool last();
86 bool next(); 86 bool next();
87 bool prev(); 87 bool prev();
88 void writeDefaultPlaylist( ); 88 void writeDefaultPlaylist( );
89 QString currentFileListPathName() const; 89 QString currentFileListPathName() const;
90protected: 90protected:
91 QCopChannel * channel; 91 QCopChannel * channel;
92 void keyReleaseEvent( QKeyEvent *e); 92 void keyReleaseEvent( QKeyEvent *e);
93 93
94signals: 94signals:
95 void skinSelected(); 95 void skinSelected();
96 96
97private: 97private:
98 int defaultSkinIndex; 98 int defaultSkinIndex;
99/* void readm3u(const QString &); */ 99/* void readm3u(const QString &); */
100/* void readPls(const QString &); */ 100/* void readPls(const QString &); */
101 void readListFromFile(const QString &); 101 void readListFromFile(const QString &);
102 void initializeStates(); 102 void initializeStates();
103 103
104 bool inFileListMode() const; 104 bool inFileListMode() const;
105 105
106private slots: 106private slots:
107 void qcopReceive(const QCString&, const QByteArray&); 107 void qcopReceive(const QCString&, const QByteArray&);
108 void populateSkinsMenu(); 108 void populateSkinsMenu();
109 void skinsMenuActivated(int); 109 void skinsMenuActivated(int);
110 void pmViewActivated(int); 110 void pmViewActivated(int);
111 void writem3u(); 111 void writem3u();
112 void writeCurrentM3u(); 112 void writeCurrentM3u();
113 void openFile(); 113 void openFile();
114 void openURL();
114 void setDocument( const QString& fileref ); 115 void setDocument( const QString& fileref );
115 void addToSelection( const DocLnk& ); // Add a media file to the playlist 116 void addToSelection( const DocLnk& ); // Add a media file to the playlist
116 void addToSelection( QListViewItem* ); // Add a media file to the playlist 117 void addToSelection( QListViewItem* ); // Add a media file to the playlist
117 void clearList(); 118 void clearList();
118 void addAllToList(); 119 void addAllToList();
119 void addAllMusicToList(); 120 void addAllMusicToList();
120 void addAllVideoToList(); 121 void addAllVideoToList();
121 void saveList(); // Save the playlist 122 void saveList(); // Save the playlist
122 void loadList( const DocLnk &); // Load a playlist 123 void loadList( const DocLnk &); // Load a playlist
123 void playIt( QListViewItem *); 124 void playIt( QListViewItem *);
124 void btnPlay(bool); 125 void btnPlay(bool);
125 void deletePlaylist(); 126 void deletePlaylist();
126 void addSelected(); 127 void addSelected();
127 void removeSelected(); 128 void removeSelected();
128 void tabChanged(QWidget*); 129 void tabChanged(QWidget*);
129 void viewPressed( int, QListViewItem *, const QPoint&, int); 130 void viewPressed( int, QListViewItem *, const QPoint&, int);
130 void playlistViewPressed( int, QListViewItem *, const QPoint&, int); 131 void playlistViewPressed( int, QListViewItem *, const QPoint&, int);
131 void playSelected(); 132 void playSelected();
132 133
133private: 134private:
134 bool fromSetDocument; 135 bool fromSetDocument;
135 bool insanityBool; 136 bool insanityBool;
136 QString setDocFileRef, currentPlayList; 137 QString setDocFileRef, currentPlayList;
137 int selected; 138 int selected;
138 QListView *currentFileListView; 139 QListView *currentFileListView;
139}; 140};
140 141
141#endif // PLAY_LIST_WIDGET_H 142#endif // PLAY_LIST_WIDGET_H
142 143