Albert S
61a446ec2d
Mountpaths indicate mount points of external devices. Files located under such paths should not be removed on sync, because they may have not been deleted, but are just inaccessible right now.
21 rinda
469 B
C++
21 rinda
469 B
C++
#ifndef COMMON_H
|
|
#define COMMON_H
|
|
#include <QCoreApplication>
|
|
#include <QFileInfo>
|
|
namespace Common
|
|
{
|
|
void setupAppInfo();
|
|
QString databasePath();
|
|
QString ipcSocketPath();
|
|
void setPdfViewer();
|
|
QString findInPath(QString needle);
|
|
bool initSqliteDatabase(QString path);
|
|
void ensureConfigured();
|
|
QStringList excludedPaths();
|
|
QStringList mountPaths();
|
|
bool isTextFile(QFileInfo fileInfo);
|
|
bool isMountPath(QString path);
|
|
QString versionText();
|
|
} // namespace Common
|
|
#endif
|