9#ifndef ALKONLINEQUOTESPROFILE_H
10#define ALKONLINEQUOTESPROFILE_H
12#include <alkimia/alk_export.h>
13#include <alkimia/alkonlinequotesource.h>
15#include <KSharedConfig>
22class AlkOnlineQuotesProfileManager;
24class ALK_EXPORT AlkOnlineQuotesProfile :
public QObject
28 typedef QMap<QString, AlkOnlineQuoteSource>
Map;
30 Undefined,
None, Alkimia4, Alkimia5, KMyMoney4, KMyMoney5, Skrooge4, Skrooge5, Script, Test
32 explicit AlkOnlineQuotesProfile(
const QString &name =
"alkimia", Type type = Type::None,
33 const QString &ghnsConfigFile = QString());
34 ~AlkOnlineQuotesProfile();
37 QString hotNewStuffConfigFile()
const;
38 QString hotNewStuffRelPath()
const;
39 QStringList hotNewStuffReadPath()
const;
40 QString hotNewStuffWriteDir()
const;
41 QString hotNewStuffReadFilePath(
const QString &fileName)
const;
42 QString hotNewStuffWriteFilePath(
const QString &fileName)
const;
43 QString kConfigFile()
const;
44 void setManager(AlkOnlineQuotesProfileManager *manager);
45 AlkOnlineQuotesProfileManager *manager();
47 KSharedConfigPtr kConfig()
const;
48 void setKConfig(KSharedConfigPtr kconfig);
55 bool typeIsSupported()
const;
62 bool typeIsOperational()
const;
65 bool hasGHNSSupport();
70 const Map defaultQuoteSources();
75 const QStringList quoteSources();
80 const Map quoteSourcesTesting();
84 QString GHNSId(
const QString &name)
const;
85 QString GHNSFilePath(
const QString &name)
const;
86 QString GHNSName(
const QString &
id)
const;
94 void updateAvailable(
const QString &profile,
const QString &name);
99 void sourcesChanged();
Type type(const QSqlDatabase &db)
QString name(StandardAction id)
const QList< QKeySequence > & reload()