Alkimia API

alkonlinequoteswidget.h
1/*
2 SPDX-FileCopyrightText: 2004 Thomas Baumgart tbaumgart @kde.org
3 SPDX-FileCopyrightText: 2018 Ralf Habacker ralf.habacker @freenet.de
4
5 This file is part of libalkimia.
6
7 SPDX-License-Identifier: GPL-2.0-or-later
8*/
9
10#ifndef ALKONLINEQUOTESWIDGET_H
11#define ALKONLINEQUOTESWIDGET_H
12
13#include <alkimia/alkonlinequote.h>
14
15#include <QWidget>
16
17class QListWidgetItem;
18
19class ALK_EXPORT AlkOnlineQuotesWidget : public QWidget
20{
21 Q_OBJECT
22public:
23 explicit AlkOnlineQuotesWidget(bool showProfiles = false, bool showUpload = false, QWidget *parent = 0);
24 virtual ~AlkOnlineQuotesWidget();
25
26 void writeConfig();
27 void readConfig();
28 void resetConfig();
29
30 QWidget *profilesWidget();
31 QWidget *profileDetailsWidget();
32 QWidget *onlineQuotesWidget();
33 QWidget *quoteDetailsWidget();
34 QWidget *debugWidget();
35
36 QString acceptLanguage() const;
37 void setAcceptLanguage(const QString &text);
38
39 /**
40 * return state if GHNS source is editable
41 * @return state
42 */
43 bool GHNSSourceEditable();
44
45 /**
46 * Set state that GHNS source is editable
47 * @param state state to set
48 * @note editing of a GHNS source is disabled by default
49 */
50 void setGHNSSourceEditable(bool state);
51
52private:
53 class Private;
54 Private *const d;
55};
56
57#endif
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.