9#ifndef ALKONLINEQUOTESOURCE_H
10#define ALKONLINEQUOTESOURCE_H
12#include <alkimia/alkonlinequotesprofile.h>
17class AlkOnlineQuotesProfile;
64 const IdSelector idBy,
68 DataFormat dataFormat = HTML,
69 DecimalSeparator priceDecimalSeparator = Legacy,
70 DownloadType downloadType = Default);
77 static AlkOnlineQuoteSource testQuoteSource(
const QString &name,
bool twoSymbols =
false, DownloadType downloadType = Default, DataFormat format = HTML);
96 bool isReference()
const;
113 DecimalSeparator priceDecimalSeparator()
const;
124 DownloadType downloadType()
const;
125 QString financeQuoteName()
const;
126 IdSelector idSelector()
const;
129 bool isReadOnly()
const;
130 bool isFinanceQuote()
const;
131 static bool isFinanceQuote(
const QString &name);
140 void setReferenceName(
const QString &name);
141 void setName(
const QString &name);
142 void setUrl(
const QString &url);
143 void setPriceDecimalSeparator(DecimalSeparator separator);
144 void setPriceRegex(
const QString &priceRegex);
145 void setIdRegex(
const QString &idRegex);
152 void setDataFormat(DataFormat dataFormat);
153 void setDateRegex(
const QString &dateRegex);
154 void setDateFormat(
const QString &dateFormat);
155 void setDownloadType(DownloadType downloadType);
156 void setGHNS(
bool state);
157 void setIdSelector(IdSelector idSelector);
163 const QString &defaultId()
const;
169 void setDefaultId(
const QString &defaultId);
176 bool requiresTwoIdentifier()
const;
184 bool supportsDateRange()
const;
186 QString ghnsWriteFileName()
const;
187 void setProfile(AlkOnlineQuotesProfile *profile);
188 AlkOnlineQuotesProfile *profile();
189 AlkOnlineQuotesProfile *profile()
const;
198Q_DECLARE_METATYPE(AlkOnlineQuoteSource::DownloadType)
199Q_DECLARE_METATYPE(AlkOnlineQuoteSource::IdSelector)
204 swap(first.d, second.d);
DataFormat
Supported formats of downloaded data.
DecimalSeparator
Type of decimal separator.
bool remove(const QString &column, const QVariant &value)
char * toString(const EngineQuery &query)
KIOCORE_EXPORT SimpleJob * rename(const QUrl &src, const QUrl &dest, JobFlags flags=DefaultFlags)
QVariant read(const QByteArray &data, int versionOverride=0)
bool isValid(QStringView ifopt)
QString name(StandardAction id)
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.