digiKam
wstoolutils.h
Go to the documentation of this file.
1 /* ============================================================
2  *
3  * This file is a part of digiKam project
4  * https://www.digikam.org
5  *
6  * Date : 2014-09-12
7  * Description : Web Service tool utils methods
8  *
9  * Copyright (C) 2014-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
10  *
11  * This program is free software; you can redistribute it
12  * and/or modify it under the terms of the GNU General
13  * Public License as published by the Free Software Foundation;
14  * either version 2, or (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  * GNU General Public License for more details.
20  *
21  * ============================================================ */
22 
23 #ifndef DIGIKAM_WS_TOOL_UTILS_H
24 #define DIGIKAM_WS_TOOL_UTILS_H
25 
26 // Qt includes
27 
28 #include <QSettings>
29 #include <QString>
30 #include <QDir>
31 
32 // Local includes
33 
34 #include "digikam_export.h"
35 
36 namespace Digikam
37 {
38 
39 class DIGIKAM_EXPORT WSToolUtils
40 {
41 public:
42 
43  explicit WSToolUtils() {};
45 
49  static QString randomString(const int& length);
50 
51  static QDir makeTemporaryDir(const char* prefix);
52  static void removeTemporaryDir(const char* prefix);
53 
54  static QSettings* getOauthSettings(QObject* const parent);
55 };
56 
57 } // namespace Digikam
58 
59 #endif // DIGIKAM_WS_TOOL_UTILS_H
Definition: wstoolutils.h:40
WSToolUtils()
Definition: wstoolutils.h:43
~WSToolUtils()
Definition: wstoolutils.h:44
QStringView prefix
Definition: itemviewutilities.cpp:593
Definition: datefolderview.cpp:43