File indexing completed on 2024-05-19 04:45:38

0001 /*
0002  * SPDX-FileCopyrightText: 2023 George Florea Bănuș <georgefb899@gmail.com>
0003  *
0004  * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0005  */
0006 
0007 #ifndef MPVCONTROLLER_P_H_INCLUDED
0008 #define MPVCONTROLLER_P_H_INCLUDED
0009 
0010 #include "mpvcontroller.h"
0011 
0012 class MpvControllerPrivate
0013 {
0014 public:
0015     explicit MpvControllerPrivate(MpvController *q);
0016 
0017     mpv_node_list *createList(mpv_node *dst, bool is_map, int num);
0018     void setNode(mpv_node *dst, const QVariant &src);
0019     bool testType(const QVariant &v, QMetaType::Type t);
0020     void freeNode(mpv_node *dst);
0021     QVariant nodeToVariant(const mpv_node *node);
0022 
0023     MpvController *q_ptr;
0024     mpv_handle *m_mpv{nullptr};
0025 };
0026 
0027 #endif // MPVCONTROLLER_P_H_INCLUDED