-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathhelpers.h
More file actions
26 lines (23 loc) · 713 Bytes
/
helpers.h
File metadata and controls
26 lines (23 loc) · 713 Bytes
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
#ifndef HELPERS_H
#define HELPERS_H
#include <QObject>
#include <QtNetwork>
class Helpers : public QObject
{
Q_OBJECT
public:
explicit Helpers(QObject *parent = nullptr);
static void checkInternetConnection(bool *res);
static QUrlQuery generateUrlQueryFromVarMap(QMap<QString,QVariant> params);
signals:
public slots:
static bool checkValidImageFilePath(QString imagePath);
static void copyToClipboard(QString strToCopy);
static QString formatFilePathForQml(QString filePath);
static QString forceEndingSlash(QString input);
static QString removeBeginSlash(QString input);
static bool getIsDebug();
static QString getVersionString();
private:
};
#endif // HELPERS_H