Alkimia API

alkonlinequotesprofilemanager.h
1/*
2 SPDX-FileCopyrightText: 2018 Ralf Habacker ralf.habacker @freenet.de
3
4 This file is part of libalkimia.
5
6 SPDX-License-Identifier: LGPL-2.1-or-later
7*/
8
9#ifndef ALKONLINEQUOTESPROFILEMANAGER_H
10#define ALKONLINEQUOTESPROFILEMANAGER_H
11
12#include <alkimia/alkonlinequotesprofile.h>
13
14#include <QList>
15#include <QStringList>
16
17class AlkWebPage;
18class AlkWebView;
19
21
22class ALK_EXPORT AlkOnlineQuotesProfileManager : public QObject
23{
24 Q_OBJECT
25public:
26 ~AlkOnlineQuotesProfileManager();
27
28 void addProfile(AlkOnlineQuotesProfile *profile);
30 AlkOnlineQuotesProfile *profile(const QString &name);
31 QStringList profileNames();
32
33 /**
34 * Set shared web page instance
35 * @param webPage instance to share
36 */
37 void setWebPage(AlkWebPage *webPage);
38
39 /**
40 * Return shared web page instance
41 * @return instance
42 */
43 AlkWebPage *webPage();
44
45 /**
46 * Set shared web page instance
47 * @param webView instance to share
48 */
49 void setWebView(AlkWebView *webView);
50
51 /**
52 * Return shared web view instance
53 * @return instance
54 */
55 AlkWebView *webView();
56
57 /**
58 * Set the status whether the web browser should be displayed
59 * @param enable state to be set
60 */
61 void setWebViewEnabled(bool enable);
62
63 /**
64 * Return status whether the web browser should be displayed
65 * @return state
66 */
67 bool webViewEnabled();
68
69 /**
70 * Return instance of this class
71 * @return instance
72 */
73 static AlkOnlineQuotesProfileManager &instance();
74
75 /**
76 * Return pointer to the singleton instance of this class
77 * @return pointer to instance
78 */
79 static AlkOnlineQuotesProfileManager *instancePointer();
80
82 /**
83 * emit quote source for which an update is available
84 */
85 void updateAvailable(const QString &profile, const QString &name);
86
87private:
88 AlkOnlineQuotesProfileManager();
89 class Private;
90 Private *const d;
91};
92
93#endif // ALKONLINEQUOTESPROFILEMANAGER_H
The AlkWebPage class provides an object to load and view web documents to provide functionality like ...
Definition alkwebpage.h:100
The AlkWebView class provides a widget that is used to load and display web documents.
Definition alkwebview.h:87
Q_SIGNALSQ_SIGNALS
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:01:13 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.