Warning, file /plasma/plasma-mobile/quicksettings/record/recordutil.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 /*
0002  * SPDX-FileCopyrightText: 2022 by Devin Lin <devin@kde.org>
0003  *
0004  * SPDX-License-Identifier: GPL-2.0-or-later
0005  */
0006 
0007 #pragma once
0008 
0009 #include <QObject>
0010 #include <QVariantMap>
0011 
0012 class RecordUtil : public QObject
0013 {
0014     Q_OBJECT
0015 
0016 public:
0017     RecordUtil(QObject *parent = nullptr);
0018 
0019     /**
0020      * Allows us to get a filename in the standard videos directory (~/Videos by default)
0021      * with a name that starts with @p name
0022      *
0023      * @returns a non-existing path that can be written into
0024      *
0025      * @see QStandardPaths::writableLocation()
0026      * @see KFileUtil::suggestName()
0027      */
0028     Q_INVOKABLE QString videoLocation(const QString &name);
0029 
0030     Q_INVOKABLE void showNotification(const QString &title, const QString &text, const QString &filePath);
0031 };