diff --git a/kmymoney/plugins/csvimport/csvimporterplugin.h b/kmymoney/plugins/csvimport/csvimporterplugin.h index b21614f2f..7cd4dfc57 100644 --- a/kmymoney/plugins/csvimport/csvimporterplugin.h +++ b/kmymoney/plugins/csvimport/csvimporterplugin.h @@ -1,107 +1,108 @@ /*************************************************************************** csvimporterplugin.h ------------------- begin : Sat Jan 01 2010 copyright : (C) 2010 by Allan Anderson email : agander93@gmail.com copyright : (C) 2016-2017 by Łukasz Wojniłowicz email : lukasz.wojnilowicz@gmail.com ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #ifndef CSVIMPORTERPLUGIN_H #define CSVIMPORTERPLUGIN_H // ---------------------------------------------------------------------------- // KDE Includes // ---------------------------------------------------------------------------- // QT Includes // Project Includes #include "kmymoneyplugin.h" class CSVImporter; class CSVWizard; class MyMoneyStatement; class CsvImporterPlugin : public KMyMoneyPlugin::Plugin, public KMyMoneyPlugin::ImporterPlugin { Q_OBJECT Q_PLUGIN_METADATA(IID "org.kmymoney.plugins.csvimport" FILE "csvimport.json") - + Q_INTERFACES(KMyMoneyPlugin::ImporterPlugin) + public: explicit CsvImporterPlugin(); ~CsvImporterPlugin(); QAction* m_action; CSVWizard* m_wizard; CSVImporter* m_importer; /** * This method returns the english-language name of the format * this plugin imports, e.g. "OFX" * * @return QString Name of the format */ virtual QString formatName() const; /** * This method returns the filename filter suitable for passing to * KFileDialog::setFilter(), e.g. "*.csv" which describes how * files of this format are likely to be named in the file system * * @return QString Filename filter string */ virtual QString formatFilenameFilter() const; /** * This method returns whether this plugin is able to import * a particular file. * * @param filename Fully-qualified pathname to a file * * @return bool Whether the indicated file is importable by this plugin */ virtual bool isMyFormat(const QString& filename) const; /** * Import a file * * @param filename File to import * * @return bool Whether the import was successful. */ virtual bool import(const QString& filename); /** * Returns the error result of the last import * * @return QString English-language name of the error encountered in the * last import, or QString() if it was successful. * */ virtual QString lastError() const; private: bool m_silent; public slots: bool slotGetStatement(MyMoneyStatement& s); protected slots: void startWizardRun(); protected: void createActions(); }; #endif