Ignore:
Timestamp:
May 3, 2016, 5:25:45 PM (9 years ago)
Author:
Silvan Scherrer
Message:

smplayer: update trunk to version 16.4

Location:
smplayer/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • smplayer/trunk

  • smplayer/trunk/src/playlist.h

    r165 r176  
    11/*  smplayer, GUI front-end for mplayer.
    2     Copyright (C) 2006-2014 Ricardo Villalba <rvm@users.sourceforge.net>
     2    Copyright (C) 2006-2016 Ricardo Villalba <rvm@users.sourceforge.net>
    33
    44    This program is free software; you can redistribute it and/or modify
     
    1818
    1919
    20 #ifndef _PLAYLIST_H_
    21 #define _PLAYLIST_H_
     20#ifndef PLAYLIST_H
     21#define PLAYLIST_H
    2222
    2323#include <QList>
    2424#include <QStringList>
    2525#include <QWidget>
     26#include <QProcess>
    2627
    2728class PlaylistItem {
     
    119120        // <--
    120121
     122        virtual void deleteSelectedFileFromDisk();
     123
    121124        virtual bool maybeSave();
    122125    virtual void load();
     
    128131        virtual void load_pls(QString file);
    129132        virtual bool save_pls(QString file);
     133
     134        void loadXSPF(const QString & filename);
     135        bool saveXSPF(const QString & filename);
    130136
    131137        virtual void getMediaInfo();
     
    138144        void setSavePlaylistOnExit(bool b) { save_playlist_in_config = b; };
    139145        void setPlayFilesFromStart(bool b) { play_files_from_start = b; };
     146        void setIgnorePlayerErrors(bool b) { ignore_player_errors = b; };
    140147
    141148public:
     
    144151        bool savePlaylistOnExit() { return save_playlist_in_config; };
    145152        bool playFilesFromStart() { return play_files_from_start; };
     153        bool ignorePlayerErrors() { return ignore_player_errors; };
    146154
    147155        QList<PlaylistItem> playlist(){return pl;};
     
    183191        virtual void maybeSaveSettings();
    184192
     193        void playerFailed(QProcess::ProcessError);
     194        void playerFinishedWithError(int);
     195
    185196protected:
    186197        void createTable();
     
    236247        MyAction * removeAllAct;
    237248
     249        MyAction * deleteSelectedFileFromDiskAct;
     250
    238251private:
    239252        bool modified;
     
    244257        bool automatically_get_info;
    245258        bool save_playlist_in_config;
    246         bool play_files_from_start; 
     259        bool play_files_from_start;
    247260        int row_spacing;
    248261
    249262        bool automatically_play_next;
     263        bool ignore_player_errors;
    250264};
    251265
Note: See TracChangeset for help on using the changeset viewer.