diff options
author | 2023-03-22 20:20:13 +0530 | |
---|---|---|
committer | 2023-03-22 20:20:13 +0530 | |
commit | 8f983031f7659ccd8bb95db75d243cdd1b00b2df (patch) | |
tree | ae00e9b8ff27e4be0addf7bed886ba318108ed12 /src/utils.h | |
parent | fa5add01ac0c35ba719d0eec194d11ab6b5d2f2c (diff) | |
download | whatsie-8f983031f7659ccd8bb95db75d243cdd1b00b2df.tar.gz whatsie-8f983031f7659ccd8bb95db75d243cdd1b00b2df.zip |
chore: update utils
- update genRand
Diffstat (limited to 'src/utils.h')
-rw-r--r-- | src/utils.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/utils.h b/src/utils.h index d5b9765..c972ba4 100644 --- a/src/utils.h +++ b/src/utils.h @@ -28,7 +28,6 @@ public slots: static bool delete_cache(const QString cache_dir); static QString toCamelCase(const QString &s); static QString generateRandomId(int length); - static QString genRand(int length); static QString convertSectoDay(qint64 secs); static QString returnPath(QString pathname, QString standardLocation); static QString EncodeXML(const QString &encodeMe); @@ -40,6 +39,8 @@ public slots: static QString appDebugInfo(); static void desktopOpenUrl(const QString &str); static bool isPhoneNumber(const QString &phoneNumber); + static QString genRand(int length, bool useUpper = true, bool useLower = true, + bool useDigits = true); private slots: // use refreshCacheSize static quint64 dir_size(const QString &directory); |