Debian Codegraph @

src/librssguard/miscellaneous/systemfactory.h

raw symbols SCIP
1 // For license of this file, see <project-root-folder>/LICENSE.md.cxx . . $ `<file>/src/librssguard/miscellaneous/systemfactory.h`/
2
3 #ifndef SYSTEMFACTORY_H
4 #define SYSTEMFACTORY_Hcxx . . $ `src/librssguard/miscellaneous/systemfactory.h:4:9`!
5
6 #include "network-web/downloader.h"cxx . . $ `<file>/src/librssguard/network-web/downloader.h`/
7
8 #include <QHash>
9 #include <QMetaType>
10 #include <QNetworkReply>
11 #include <QObject>
12 #include <QPair>
13 #include <QRegularExpression>
14
15 class RSSGUARD_DLLSPECcxx . . $ `<built-in>:525:9`! UpdateUrlcxx . . $ UpdateUrl# {
16 public:
17 QStringcxx . . $ QString# m_fileUrlcxx . . $ UpdateUrl#m_fileUrl.;
18 QStringcxx . . $ QString# m_namecxx . . $ UpdateUrl#m_name.;
19 QStringcxx . . $ QString# m_sizecxx . . $ UpdateUrl#m_size.;
20 };
21
22 class RSSGUARD_DLLSPECcxx . . $ `<built-in>:525:9`! UpdateInfocxx . . $ UpdateInfo# {
23 public:
24 QStringcxx . . $ QString# m_availableVersioncxx . . $ UpdateInfo#m_availableVersion.;
25 QStringcxx . . $ QString# m_changescxx . . $ UpdateInfo#m_changes.;
26 QDateTimecxx . . $ QDateTime# m_datecxx . . $ UpdateInfo#m_date.;
27 QListcxx . . $ QList#<UpdateUrlcxx . . $ UpdateUrl#> m_urlscxx . . $ UpdateInfo#m_urls.;
28 };
29
30 Q_DECLARE_METATYPEcxx . . $ `<external>/1389693584836040939/qmetatype.h:1507:9`!(UpdateInfo)
31
32 class RSSGUARD_DLLSPECcxx . . $ `<built-in>:525:9`! SystemFactorycxx . . $ SystemFactory# : public QObjectcxx . . $ QObject# {
33 Q_OBJECTcxx . . $ SystemFactory#qt_staticMetaObjectContent.
34
35 public:
36 // Specifies possible states of auto-start functionality.
37 enum class AutoStartStatuscxx . . $ SystemFactory#AutoStartStatus# {
38 Enabledcxx . . $ SystemFactory#AutoStartStatus#Enabled.,
39 Disabledcxx . . $ SystemFactory#AutoStartStatus#Disabled.,
40 Unavailablecxx . . $ SystemFactory#AutoStartStatus#Unavailable.
41 };
42
43 explicit SystemFactorycxx . . $ SystemFactory#SystemFactory(749de1b6ae65bddd).(QObjectcxx . . $ QObject#* parent = nullptr);
44 virtual ~cxx . . $ SystemFactory#`~SystemFactory`(ced63f7c635d850d).SystemFactorycxx . . $ SystemFactory#();
45
46 // Returns current status of auto-start function.
47 SystemFactorycxx . . $ SystemFactory#::AutoStartStatuscxx . . $ SystemFactory#AutoStartStatus# autoStartStatuscxx . . $ SystemFactory#autoStartStatus(c24e8a3ce51f2b39).() const;
48
49 // Sets new status for auto-start function.
50 // Function returns false if setting of
51 // new status failed.
52 bool setAutoStartStatuscxx . . $ SystemFactory#setAutoStartStatus(f0f15b2958e0b16).(AutoStartStatuscxx . . $ SystemFactory#AutoStartStatus# new_status);
53
54 #if defined(Q_OS_UNIXcxx . . $ `<external>/7933076451316529972/qsystemdetection.h:149:11`!) && !defined(Q_OS_MACOS)
55 // Returns standard location where auto-start .desktop files
56 // should be placed.
57 QStringcxx . . $ QString# autostartDesktopFileLocationcxx . . $ SystemFactory#autostartDesktopFileLocation(6ef7b6c27b00b43d).() const;
58 #endif
59
60 // Retrieves username of currently logged-in user.
61 QStringcxx . . $ QString# loggedInUsercxx . . $ SystemFactory#loggedInUser(6ef7b6c27b00b43d).() const;
62
63 // Tries to download list with new updates.
64 void checkForUpdatescxx . . $ SystemFactory#checkForUpdates(83f5f38750778ac8).() const;
65
66 public slotscxx . . $ `<external>/4830994369567095248/qtmetamacros.h:42:14`!:
67 void checkForUpdatesOnStartupcxx . . $ SystemFactory#checkForUpdatesOnStartup(49f6e7a06ebc5aa8).();
68
69 static QRegularExpressioncxx . . $ QRegularExpression# supportedUpdateFilescxx . . $ SystemFactory#supportedUpdateFiles(665c0c77e8c56958).();
70
71 // Checks if update is newer than current application version.
72 static bool isVersionNewercxx . . $ SystemFactory#isVersionNewer(edf9e4f73813982f).(const QStringcxx . . $ QString#& new_version, const QStringcxx . . $ QString#& base_version);
73 static bool isVersionEqualOrNewercxx . . $ SystemFactory#isVersionEqualOrNewer(edf9e4f73813982f).(const QStringcxx . . $ QString#& new_version, const QStringcxx . . $ QString#& base_version);
74 static bool openFolderFilecxx . . $ SystemFactory#openFolderFile(e1defb592416720d).(const QStringcxx . . $ QString#& file_path);
75
76 signalscxx . . $ `<external>/4830994369567095248/qtmetamacros.h:43:14`!:
77 void updatesCheckedcxx . . $ SystemFactory#updatesChecked(3f40250543adfaa5).(QPaircxx . . $ QPair#<QListcxx . . $ QList#<UpdateInfocxx . . $ UpdateInfo#>, QNetworkReplycxx . . $ QNetworkReply#::NetworkErrorcxx . . $ QNetworkReply#NetworkError#> updates) const;
78
79 private:
80 // Performs parsing of downloaded file with list of updates.
81 QListcxx . . $ QList#<UpdateInfocxx . . $ UpdateInfo#> parseUpdatesFilecxx . . $ SystemFactory#parseUpdatesFile(630d206876e6bdcc).(const QByteArraycxx . . $ QByteArray#& updates_file) const;
82 };
83
84 #endif // SYSTEMFACTORY_H