dtkio
dtk library for dtkio.
载入中...
搜索中...
未找到
dopticaldiscmanager.h
浏览该文件的文档.
1// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd.
2//
3// SPDX-License-Identifier: LGPL-3.0-or-later
4
5#ifndef DOPTIFCALDISCMANAGER_H
6#define DOPTIFCALDISCMANAGER_H
7
8#include <QObject>
9
10#include <DExpected>
11
12#include "dtkburn_global.h"
13
14DBURN_BEGIN_NAMESPACE
15
16class DOpticalDiscInfo;
17class DOpticalDiscOperator;
18
19namespace DOpticalDiscManager {
20[[nodiscard]] DTK_CORE_NAMESPACE::DExpected<DOpticalDiscInfo *> createOpticalDiscInfo(const QString &dev, QObject *parent = nullptr);
21[[nodiscard]] DTK_CORE_NAMESPACE::DExpected<DOpticalDiscOperator *> createOpticalDiscOperator(const QString &dev, QObject *parent = nullptr);
22} // namespace DOpticalDiscManager
23
24DBURN_END_NAMESPACE
25
26#endif // DOPTIFCALDISCMANAGER_H
DTK_CORE_NAMESPACE::DExpected< DOpticalDiscOperator * > createOpticalDiscOperator(const QString &dev, QObject *parent=nullptr)
创建一个光盘操作类对象
DTK_CORE_NAMESPACE::DExpected< DOpticalDiscInfo * > createOpticalDiscInfo(const QString &dev, QObject *parent)
创建一个光盘信息对象,由于光盘的物理特性,调用此接口可能会很慢