Changeset 176 for smplayer/trunk/src/playlist.h
- Timestamp:
- May 3, 2016, 5:25:45 PM (9 years ago)
- Location:
- smplayer/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
smplayer/trunk
- Property svn:mergeinfo changed
/smplayer/vendor/current merged: 175
- Property svn:mergeinfo changed
-
smplayer/trunk/src/playlist.h
r165 r176 1 1 /* smplayer, GUI front-end for mplayer. 2 Copyright (C) 2006-201 4Ricardo Villalba <rvm@users.sourceforge.net>2 Copyright (C) 2006-2016 Ricardo Villalba <rvm@users.sourceforge.net> 3 3 4 4 This program is free software; you can redistribute it and/or modify … … 18 18 19 19 20 #ifndef _PLAYLIST_H_21 #define _PLAYLIST_H_20 #ifndef PLAYLIST_H 21 #define PLAYLIST_H 22 22 23 23 #include <QList> 24 24 #include <QStringList> 25 25 #include <QWidget> 26 #include <QProcess> 26 27 27 28 class PlaylistItem { … … 119 120 // <-- 120 121 122 virtual void deleteSelectedFileFromDisk(); 123 121 124 virtual bool maybeSave(); 122 125 virtual void load(); … … 128 131 virtual void load_pls(QString file); 129 132 virtual bool save_pls(QString file); 133 134 void loadXSPF(const QString & filename); 135 bool saveXSPF(const QString & filename); 130 136 131 137 virtual void getMediaInfo(); … … 138 144 void setSavePlaylistOnExit(bool b) { save_playlist_in_config = b; }; 139 145 void setPlayFilesFromStart(bool b) { play_files_from_start = b; }; 146 void setIgnorePlayerErrors(bool b) { ignore_player_errors = b; }; 140 147 141 148 public: … … 144 151 bool savePlaylistOnExit() { return save_playlist_in_config; }; 145 152 bool playFilesFromStart() { return play_files_from_start; }; 153 bool ignorePlayerErrors() { return ignore_player_errors; }; 146 154 147 155 QList<PlaylistItem> playlist(){return pl;}; … … 183 191 virtual void maybeSaveSettings(); 184 192 193 void playerFailed(QProcess::ProcessError); 194 void playerFinishedWithError(int); 195 185 196 protected: 186 197 void createTable(); … … 236 247 MyAction * removeAllAct; 237 248 249 MyAction * deleteSelectedFileFromDiskAct; 250 238 251 private: 239 252 bool modified; … … 244 257 bool automatically_get_info; 245 258 bool save_playlist_in_config; 246 bool play_files_from_start; 259 bool play_files_from_start; 247 260 int row_spacing; 248 261 249 262 bool automatically_play_next; 263 bool ignore_player_errors; 250 264 }; 251 265
Note:
See TracChangeset
for help on using the changeset viewer.