-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhelpfunc.h
More file actions
23 lines (20 loc) · 778 Bytes
/
Copy pathhelpfunc.h
File metadata and controls
23 lines (20 loc) · 778 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef HELPFUNC_H
#define HELPFUNC_H
#include <QIcon>
#include <QString>
#include <QStyle>
QString notesRoot();
QString configRoot();
QString settingsFile();
QString notebookPath(const QString ¬ebookName);
QString groupPath(const QString ¬ebookName, const QString &groupName);
QString noteFilePath(const QString ¬ebookName, const QString &fileName);
QString noteFilePath(const QString ¬ebookName, const QString &groupName, const QString &fileName);
QString normalizedEntryName(const QString &name);
bool isValidEntryName(const QString &name);
QIcon stableStandardIcon(QStyle::StandardPixmap sp);
QIcon fileIcon(const QString &path);
void ensureAppDirs();
bool isUos();
bool moveToTrash(const QString &path, QString *errorMessage = nullptr);
#endif // HELPFUNC_H