文件
coreplayer
debian
guide
image
music
translations
CJsonObject.cpp
CJsonObject.hpp
Clock.json
ClockInterface.h
CustomButton.cpp
CustomButton.h
LICENSE
NOTICE
README.md
about.cpp
about.h
about.ui
adaptscreeninfo.cpp
adaptscreeninfo.h
baseverticalscroll.cpp
baseverticalscroll.h
btnNew.cpp
btnNew.h
cJSON.c
cJSON.h
clickableLabel.cpp
clickableLabel.h
clock.cpp
clock.h
clock.ico
clock.rc
clock.ui
clock_conf.ini
clockdbusadaptor.cpp
clockdbusadaptor.h
clockentitydao.cpp
clockentitydao.h
closeOrHide.cpp
closeOrHide.h
closeOrHide.ui
commontooltip.cpp
commontooltip.h
configutil.cpp
configutil.h
connection.h
constant_class.h
countdown.ui
countdownAnimation.cpp
countdownAnimation.h
customcombox.cpp
customcombox.h
customlistwidget.cpp
customlistwidget.h
dbusbaseclockadaptor.cpp
dbusbaseclockadaptor.h
dbusdeleteclockbyidadaptor.cpp
dbusdeleteclockbyidadaptor.h
dbusnoticeshowagainadaptor.cpp
dbusnoticeshowagainadaptor.h
dbusselectclockbyidadaptor.cpp
dbusselectclockbyidadaptor.h
dbusupdateclockadaptor.cpp
dbusupdateclockadaptor.h
debug.h
deleteMsg.cpp
deleteMsg.h
deleteMsg.ui
dotlineDemo.cpp
dotlineDemo.h
fieldvalidutil.cpp
fieldvalidutil.h
gsettingsubject.cpp
gsettingsubject.h
images.qrc
integer.cpp
integer.h
itemNew.cpp
itemNew.h
kylinqfiledialog.cpp
kylinqfiledialog.h
main.cpp
mediaplayerpool.cpp
mediaplayerpool.h
mediaplayerthread.cpp
mediaplayerthread.h
music.qrc
noticeAlarm.cpp
noticeAlarm.h
noticeAlarm.ui
notice_dialog.ui
noticealarmpoolutil.cpp
noticealarmpoolutil.h
object_pool.h
primarymanager.cpp
primarymanager.h
qroundProgressBar.cpp
qroundProgressBar.h
roundbtn.cpp
roundbtn.h
selectbtn.cpp
selectbtn.h
selectbtnutil.cpp
selectbtnutil.h
setAlarmRepeatDialog.cpp
setAlarmRepeatDialog.h
set_clock.ui
setupPage.cpp
setupPage.ui
singleApplication.cpp
singleApplication.h
stopwatch.ui
stopwatchItem.cpp
stopwatchItem.h
theme.cpp
theme.h
tinycountdown.cpp
tinycountdown.h
tinycountdown.ui
ukui-clock.desktop
ukui-clock.pro
ukui-clock.pro.user.324bec7
utils.cpp
utils.h
verticalScroll24.cpp
verticalScroll24.h
verticalScroll60.cpp
verticalScroll60.h
verticalScroll99.cpp
verticalScroll99.h
verticalscrollapm.cpp
verticalscrollapm.h
widget.ui
xatom-helper.cpp
xatom-helper.h
克隆/下载
mediaplayerthread.h 1.11 KB
一键复制 编辑 原始数据 按行查看 历史
/*
* Copyright (C) 2023 KylinSoft Co., Ltd.
*
* 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 3 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, see <https://www.gnu.org/licenses/>.
*/
#ifndef MEDIAPLAYERTHREAD_H
#define MEDIAPLAYERTHREAD_H
#include <QObject>
#include <QThread>
#include <QMediaPlayer>
#include "object_pool.h"
class MediaPlayerThread : public QThread
{
Q_OBJECT
public:
explicit MediaPlayerThread(int size=3,QObject *parent = nullptr);
void run() override;
signals:
void resultReady(ObjectPool<QMediaPlayer> * mediaPool);
private:
int m_size=0;
};
#endif // MEDIAPLAYERTHREAD_H
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化