| 1 | // For license of this file, see <project-root-folder>/LICENSE.md.cxx . . $ `<file>/src/librssguard/services/abstract/serviceentrypoint.h`/ |
| 2 | |
| 3 | #ifndef SERVICE_H |
| 4 | #define SERVICE_Hcxx . . $ `src/librssguard/services/abstract/serviceentrypoint.h:4:9`! |
| 5 | |
| 6 | #include <QDialog> |
| 7 | #include <QIcon> |
| 8 | #include <QString> |
| 9 | |
| 10 | class ServiceRootcxx . . $ ServiceRoot#; |
| 11 | class FeedsModelcxx . . $ FeedsModel#; |
| 12 | |
| 13 | // TOP LEVEL class which provides basic information about the "service" |
| 14 | class RSSGUARD_DLLSPECcxx . . $ `<built-in>:525:9`! ServiceEntryPointcxx . . $ ServiceEntryPoint# { |
| 15 | public: |
| 16 | virtual ~cxx . . $ ServiceEntryPoint#`~ServiceEntryPoint`(49f6e7a06ebc5aa8).ServiceEntryPointcxx . . $ ServiceEntryPoint#() = default; |
| 17 | |
| 18 | // Creates new service root item, which is ready to be added |
| 19 | // into the model. This method can for example display |
| 20 | // some kind of first-time configuration dialog inside itself |
| 21 | // before returning the root item. |
| 22 | // Returns nullptr if initialization of new root cannot be done. |
| 23 | virtual ServiceRootcxx . . $ ServiceRoot#* createNewRootcxx . . $ ServiceEntryPoint#createNewRoot(56209a8cf0725652).() const = 0; |
| 24 | |
| 25 | // Performs initialization of all service accounts created using this entry |
| 26 | // point from persistent DB. |
| 27 | // Returns list of root nodes which will be afterwards added |
| 28 | // to the global feed model. |
| 29 | virtual QListcxx . . $ QList#<ServiceRootcxx . . $ ServiceRoot#*> initializeSubtreecxx . . $ ServiceEntryPoint#initializeSubtree(af687dfb2ba79ab4).() const = 0; |
| 30 | |
| 31 | // Human readable service name, for example "TT-RSS". |
| 32 | virtual QStringcxx . . $ QString# namecxx . . $ ServiceEntryPoint#name(6ef7b6c27b00b43d).() const = 0; |
| 33 | |
| 34 | // Some arbitrary string. |
| 35 | // NOTE: Keep in sync with ServiceRoot::code(). |
| 36 | virtual QStringcxx . . $ QString# codecxx . . $ ServiceEntryPoint#code(6ef7b6c27b00b43d).() const = 0; |
| 37 | |
| 38 | // Human readable service description, for example "Services which offers TT-RSS integration.". |
| 39 | virtual QStringcxx . . $ QString# descriptioncxx . . $ ServiceEntryPoint#description(6ef7b6c27b00b43d).() const = 0; |
| 40 | |
| 41 | // Author of the service. |
| 42 | virtual QStringcxx . . $ QString# authorcxx . . $ ServiceEntryPoint#author(6ef7b6c27b00b43d).() const = 0; |
| 43 | |
| 44 | // Icon of the service. |
| 45 | virtual QIconcxx . . $ QIcon# iconcxx . . $ ServiceEntryPoint#icon(952ef71f8967d9eb).() const = 0; |
| 46 | |
| 47 | bool isDynamicallyLoadedcxx . . $ ServiceEntryPoint#isDynamicallyLoaded(50ce9a9e25b4a850).() const; |
| 48 | void setIsDynamicallyLoadedcxx . . $ ServiceEntryPoint#setIsDynamicallyLoaded(b45ddcbc8423892c).(bool dynamic); |
| 49 | |
| 50 | private: |
| 51 | bool m_isDynamicallyLoadedcxx . . $ ServiceEntryPoint#m_isDynamicallyLoaded. = false; |
| 52 | }; |
| 53 | |
| 54 | inline bool ServiceEntryPointcxx . . $ ServiceEntryPoint#::isDynamicallyLoadedcxx . . $ ServiceEntryPoint#isDynamicallyLoaded(50ce9a9e25b4a850).() const { |
| 55 | return m_isDynamicallyLoadedcxx . . $ ServiceEntryPoint#m_isDynamicallyLoaded.; |
| 56 | } |
| 57 | |
| 58 | inline void ServiceEntryPointcxx . . $ ServiceEntryPoint#::setIsDynamicallyLoadedcxx . . $ ServiceEntryPoint#setIsDynamicallyLoaded(b45ddcbc8423892c).(bool dynamic) { |
| 59 | m_isDynamicallyLoadedcxx . . $ ServiceEntryPoint#m_isDynamicallyLoaded. = dynamic; |
| 60 | } |
| 61 | |
| 62 | Q_DECLARE_INTERFACEcxx . . $ qobject_iid_cast(cd86f28e7835efe7).(ServiceEntryPoint, "io.github.martinrotter.rssguard.serviceentrypoint") |
| 63 | |
| 64 | #endif // SERVICE_H |