2020-05-23 22:52:42 +02:00
|
|
|
#ifndef COMMON_H
|
|
|
|
#define COMMON_H
|
|
|
|
#include <QCoreApplication>
|
2022-05-30 20:03:40 +02:00
|
|
|
#include <QFileInfo>
|
2020-05-23 22:52:42 +02:00
|
|
|
namespace Common
|
|
|
|
{
|
|
|
|
void setupAppInfo();
|
2020-05-24 15:36:27 +02:00
|
|
|
QString databasePath();
|
2022-04-24 12:12:23 +02:00
|
|
|
QString ipcSocketPath();
|
2022-04-25 23:01:05 +02:00
|
|
|
void setPdfViewer();
|
|
|
|
QString findInPath(QString needle);
|
2020-08-24 21:36:45 +02:00
|
|
|
bool initSqliteDatabase(QString path);
|
|
|
|
void ensureConfigured();
|
2022-05-29 15:46:06 +02:00
|
|
|
QStringList excludedPaths();
|
2022-05-30 20:03:40 +02:00
|
|
|
bool isTextFile(QFileInfo fileInfo);
|
2020-05-24 15:36:27 +02:00
|
|
|
} // namespace Common
|
2020-05-23 22:52:42 +02:00
|
|
|
#endif
|