-
Notifications
You must be signed in to change notification settings - Fork 1
/
trash.hh
42 lines (25 loc) · 800 Bytes
/
trash.hh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#pragma once
#include <QMap>
#include <QString>
#include "decl.hxx"
namespace cornus::trash {
cint NumberBase = 36;
struct Names {
QString decoded;
QString encoded;
};
static const QString XAttrDeleteKey = QStringLiteral("user.CornusMas.d");
bool AddTrashNameToGitignore(const QString &new_path);
const QString& basename();
const QString& basename_regex();
QString CreateGlobalGitignore();
void EmptyRecursively(const QString &dir_path);
QString EnsureTrashForFile(const QString &file_path);
const QString& gitignore_global_path(const QString *override_data = nullptr);
bool ListItems(QStringView dir_path, QMap<i64, QVector<Names>> &hash);
const QString& name();
QString ReadGitignoreGlobal();
inline QString time_to_str(const i64 t) {
return QString::number(t, NumberBase);
}
}