File indexing completed on 2024-04-28 13:43:54
0001 /*************************************************************************** 0002 converter.h - d-bus service 0003 ------------------- 0004 begin : lun nov 13 11:28:34 CET 2006 0005 copyright : (C) 2006-2022 by Éric Bischoff 0006 email : bischoff@kde.org 0007 ***************************************************************************/ 0008 0009 /*************************************************************************** 0010 * * 0011 * This program is free software; you can redistribute it and/or modify * 0012 * it under the terms of the GNU General Public License as published by * 0013 * the Free Software Foundation; either version 2 of the License, or * 0014 * (at your option) any later version. * 0015 * * 0016 ***************************************************************************/ 0017 0018 #ifndef CURRENCYCONVERTER_H 0019 #define CURRENCYCONVERTER_H 0020 0021 #include <QObject> 0022 0023 class CurrencyConverter : public QObject 0024 { 0025 Q_OBJECT 0026 0027 public: 0028 CurrencyConverter(); 0029 virtual ~CurrencyConverter(); 0030 0031 public slots: 0032 Q_SCRIPTABLE QStringList DataSources(); 0033 Q_SCRIPTABLE QStringList RoundingMethods(); 0034 Q_SCRIPTABLE QString ReferenceCurrency(const QString &dataSource); 0035 Q_SCRIPTABLE QString LoadSource(const QString &dataSource, const QString &roundingMethod); 0036 0037 private: 0038 unsigned int serialNumber; // Serial number of next table 0039 }; 0040 0041 #endif