mirror of
https://github.com/fergalmoran/flameshot.git
synced 2026-03-30 20:09:50 +00:00
* Cppcheck and clazy warning fixes * Clang-format * Revert QRect call by value * Revert QPoint call by value * Revert complained renamings --------- Co-authored-by: Haris Gušić <harisgusic.dev@gmail.com>
25 lines
583 B
C++
25 lines
583 B
C++
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
// SPDX-FileCopyrightText: 2017-2019 Alejandro Sirgo Rica & Contributors
|
|
|
|
#pragma once
|
|
|
|
#include <QObject>
|
|
|
|
class FileNameHandler : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit FileNameHandler(QObject* parent = nullptr);
|
|
|
|
QString parsedPattern();
|
|
QString parseFilename(const QString& name);
|
|
|
|
QString properScreenshotPath(QString filename,
|
|
const QString& format = QString());
|
|
|
|
static const int MAX_CHARACTERS = 70;
|
|
|
|
private:
|
|
QString autoNumerateDuplicate(const QString& path);
|
|
};
|