/*****************************************************************************
* playlists.hpp : playlists
****************************************************************************
* Copyright (C) 2021 the VideoLAN team
*
* Authors: Benjamin Arnaud <bunjee@omega.gg>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#ifndef QVLC_PLAYLISTS_H_
#define QVLC_PLAYLISTS_H_ 1
// VLC includes
#include "medialibrary/mlplaylistlistmodel.hpp"
#include <widgets/native/qvlcframe.hpp>
// Forward declarations
class QTreeView;
class QLineEdit;
class QLabel;
class QPushButton;
class PlaylistsDialog : public QVLCDialog
{
Q_OBJECT
public: // Ctor / dtor
explicit PlaylistsDialog(qt_intf_t *_p_intf,
const QVariantList & media,
MLPlaylistListModel::PlaylistType type = MLPlaylistListModel::PLAYLIST_TYPE_ALL,
QWindow *parent = nullptr);
~PlaylistsDialog();
public slots:
void accept() override;
private slots:
void onClicked ();
void onDoubleClicked();
void onTextEdited();
private:
QVariantList m_ids;
MLPlaylistListModel * m_model;
QTreeView * m_playlists;
QLineEdit * m_lineEdit;
QLabel * m_label;
QPushButton * m_button;
};
#endif
¤ Dauer der Verarbeitung: 0.3 Sekunden
¤
*© Formatika GbR, Deutschland