1 Star 3 Fork 0

GXDE / GXDE 一言屏保

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
commandlinemanager.h 903 Bytes
一键复制 编辑 原始数据 按行查看 历史
// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd.
//
// SPDX-License-Identifier: GPL-3.0-or-later
#ifndef COMMANDLINEMANAGER_H
#define COMMANDLINEMANAGER_H
#include <QCommandLineOption>
#include <QCommandLineParser>
#include <QScopedPointer>
class CommandLineManager
{
public:
static CommandLineManager *instance();
~CommandLineManager();
void process(const QStringList &arguments);
bool isSet(const QString &name) const;
QString value(const QString &name) const;
QStringList positionalArguments();
QStringList unknownOptionNames();
protected:
explicit CommandLineManager();
private:
void initOptions();
private:
CommandLineManager(CommandLineManager &) = delete;
CommandLineManager &operator=(CommandLineManager &) = delete;
private:
QScopedPointer<QCommandLineParser> m_commandParser;
};
#endif // COMMANDLINEMANAGER_H
C++
1
https://gitee.com/GXDE-OS/gxde-time-screensaver.git
git@gitee.com:GXDE-OS/gxde-time-screensaver.git
GXDE-OS
gxde-time-screensaver
GXDE 一言屏保
master

搜索帮助