diff options
Diffstat (limited to 'juk/playlistcollection.h')
-rw-r--r-- | juk/playlistcollection.h | 82 |
1 files changed, 41 insertions, 41 deletions
diff --git a/juk/playlistcollection.h b/juk/playlistcollection.h index 1ee4dea2..ab35a7dc 100644 --- a/juk/playlistcollection.h +++ b/juk/playlistcollection.h @@ -23,7 +23,7 @@ #include <klocale.h> #include <kdirlister.h> -#include <qguardedptr.h> +#include <tqguardedptr.h> class QWidgetStack; class KAction; @@ -34,8 +34,8 @@ class UpcomingPlaylist; class SearchPlaylist; class DynamicPlaylist; -typedef QValueList<Playlist *> PlaylistList; -typedef QValueList<PlaylistItem *> PlaylistItemList; +typedef TQValueList<Playlist *> PlaylistList; +typedef TQValueList<PlaylistItem *> PlaylistItemList; class PlaylistCollection : public PlaylistInterface, CollectionIface { @@ -46,12 +46,12 @@ class PlaylistCollection : public PlaylistInterface, CollectionIface static PlaylistCollection *m_instance; public: - PlaylistCollection(QWidgetStack *playlistStack); + PlaylistCollection(TQWidgetStack *playlistStack); virtual ~PlaylistCollection(); static PlaylistCollection *instance() { return m_instance; } - virtual QString name() const; + virtual TQString name() const; virtual FileHandle currentFile() const; virtual int count() const; virtual int time() const; @@ -63,22 +63,22 @@ public: void playFirst(); void playNextAlbum(); - virtual QStringList playlists() const; - virtual void createPlaylist(const QString &name); + virtual TQStringList playlists() const; + virtual void createPlaylist(const TQString &name); virtual void createDynamicPlaylist(const PlaylistList &playlists); - virtual void showMore(const QString &artist, const QString &album = QString::null); - virtual void removeTrack(const QString &playlist, const QStringList &files); + virtual void showMore(const TQString &artist, const TQString &album = TQString::null); + virtual void removeTrack(const TQString &playlist, const TQStringList &files); - virtual QString playlist() const; - virtual QString playingPlaylist() const; - virtual void setPlaylist(const QString &playlist); + virtual TQString playlist() const; + virtual TQString playingPlaylist() const; + virtual void setPlaylist(const TQString &playlist); - virtual QStringList playlistTracks(const QString &playlist) const; - virtual QString trackProperty(const QString &file, const QString &property) const; - virtual QPixmap trackCover(const QString &file, const QString &size = "Small") const; + virtual TQStringList playlistTracks(const TQString &playlist) const; + virtual TQString trackProperty(const TQString &file, const TQString &property) const; + virtual TQPixmap trackCover(const TQString &file, const TQString &size = "Small") const; - virtual void open(const QStringList &files = QStringList()); - virtual void open(const QString &playlist, const QStringList &files); + virtual void open(const TQStringList &files = TQStringList()); + virtual void open(const TQString &playlist, const TQStringList &files); virtual void addFolder(); virtual void rename(); virtual void duplicate(); @@ -120,12 +120,12 @@ public: UpcomingPlaylist *upcomingPlaylist() const; void setUpcomingPlaylistEnabled(bool enable); - void dirChanged(const QString &path); + void dirChanged(const TQString &path); /** * Returns a pointer to the action handler. */ - QObject *object() const; + TQObject *object() const; void newItems(const KFileItemList &list) const; @@ -158,30 +158,30 @@ public: class ActionHandler; protected: - virtual QWidgetStack *playlistStack() const; - virtual void setupPlaylist(Playlist *playlist, const QString &iconName); + virtual TQWidgetStack *playlistStack() const; + virtual void setupPlaylist(Playlist *playlist, const TQString &iconName); virtual void removePlaylist(Playlist *playlist) = 0; bool importPlaylists() const; - bool containsPlaylistFile(const QString &file) const; + bool containsPlaylistFile(const TQString &file) const; - QString playlistNameDialog(const QString &caption = i18n("Create New Playlist"), - const QString &suggest = QString::null, + TQString playlistNameDialog(const TQString &caption = i18n("Create New Playlist"), + const TQString &suggest = TQString::null, bool forceUnique = true) const; - QString uniquePlaylistName(const QString &suggest = i18n("Playlist")) const; + TQString uniquePlaylistName(const TQString &suggest = i18n("Playlist")) const; - void addNameToDict(const QString &name); - void addFileToDict(const QString &file); - void removeNameFromDict(const QString &name); - void removeFileFromDict(const QString &file); + void addNameToDict(const TQString &name); + void addFileToDict(const TQString &file); + void removeNameFromDict(const TQString &name); + void removeFileFromDict(const TQString &file); - Playlist *playlistByName(const QString &name) const; + Playlist *playlistByName(const TQString &name) const; private: void readConfig(); void saveConfig(); - QWidgetStack *m_playlistStack; + TQWidgetStack *m_playlistStack; HistoryPlaylist *m_historyPlaylist; UpcomingPlaylist *m_upcomingPlaylist; ActionHandler *m_actionHandler; @@ -189,22 +189,22 @@ private: KDirLister m_dirLister; StringHash m_playlistNames; StringHash m_playlistFiles; - QStringList m_folderList; + TQStringList m_folderList; bool m_importPlaylists; bool m_searchEnabled; bool m_playing; - QGuardedPtr<SearchPlaylist> m_showMorePlaylist; - QGuardedPtr<Playlist> m_belowShowMorePlaylist; - QGuardedPtr<DynamicPlaylist> m_dynamicPlaylist; - QGuardedPtr<Playlist> m_belowDistraction; + TQGuardedPtr<SearchPlaylist> m_showMorePlaylist; + TQGuardedPtr<Playlist> m_belowShowMorePlaylist; + TQGuardedPtr<DynamicPlaylist> m_dynamicPlaylist; + TQGuardedPtr<Playlist> m_belowDistraction; - QWidget *m_distraction; + TQWidget *m_distraction; }; /** * This class is just used as a proxy to handle the signals coming from action - * activations without requiring PlaylistCollection to be a QObject. + * activations without requiring PlaylistCollection to be a TQObject. */ class PlaylistCollection::ActionHandler : public QObject @@ -214,10 +214,10 @@ public: ActionHandler(PlaylistCollection *collection); private: - KAction *createAction(const QString &text, + KAction *createAction(const TQString &text, const char *slot, const char *name, - const QString &icon = QString::null, + const TQString &icon = TQString::null, const KShortcut &shortcut = KShortcut()); private slots: void slotPlayFirst() { m_collection->playFirst(); } @@ -255,7 +255,7 @@ private slots: void slotSetUpcomingPlaylistEnabled(bool enable) { m_collection->setUpcomingPlaylistEnabled(enable); } void slotShowCoverManager() { m_collection->showCoverManager(); } void slotEnableDirWatch(bool enable) { m_collection->enableDirWatch(enable); } - void slotDirChanged(const QString &path) { m_collection->dirChanged(path); } + void slotDirChanged(const TQString &path) { m_collection->dirChanged(path); } void slotNewItems(const KFileItemList &list) { m_collection->newItems(list); } |