25class ALK_EXPORT AlkOnlineQuoteSource
59 AlkOnlineQuoteSource();
60 explicit AlkOnlineQuoteSource(
const QString &name, AlkOnlineQuotesProfile *profile);
61 explicit AlkOnlineQuoteSource(
const QString& name,
63 const QString& idRegex,
64 const IdSelector idBy,
65 const QString& priceRegex,
66 const QString& dateRegex,
67 const QString& dateFormat,
68 DataFormat dataFormat = HTML,
69 DecimalSeparator priceDecimalSeparator = Legacy,
70 DownloadType downloadType = Default);
71 ~AlkOnlineQuoteSource();
73 AlkOnlineQuoteSource(
const AlkOnlineQuoteSource &other);
74 AlkOnlineQuoteSource &operator=(AlkOnlineQuoteSource other);
76 static AlkOnlineQuoteSource defaultCurrencyQuoteSource(
const QString& name);
77 static AlkOnlineQuoteSource testQuoteSource(
const QString &name,
bool twoSymbols =
false, DownloadType downloadType = Default, DataFormat format = HTML);
79 friend void swap(AlkOnlineQuoteSource& first, AlkOnlineQuoteSource& second);
88 AlkOnlineQuoteSource asReference()
const;
96 bool isReference()
const;
102 void rename(
const QString &name);
110 QString referenceName()
const;
111 QString
name()
const;
113 DecimalSeparator priceDecimalSeparator()
const;
114 QString priceRegex()
const;
115 QString idRegex()
const;
122 QString dateRegex()
const;
123 QString dateFormat()
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;