File indexing completed on 2022-10-04 17:30:20

0001 /***************************************************************************
0002                       odfplugin.h  -  description
0003                              -------------------
0004     begin                : Wed June 20th 2018
0005     copyright            : (C) 2018 by Friedrich W. H. Kossebau
0006     email                : kossebau@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 ODF_PLUGIN_H
0019 #define ODF_PLUGIN_H
0020 
0021 #include "fileplugin.h"
0022 
0023 class OdfPlugin : public FilePlugin
0024 {
0025 public:
0026     explicit OdfPlugin(PluginLoader *loader);
0027 
0028 public: // FilePlugin API
0029     QString processFile(BatchRenamer *b, int index, const QString &filenameOrToken, EPluginType eCurrentType) override;
0030 
0031 public: // Plugin API
0032     const QStringList &help() const override;
0033 
0034 private:
0035     QStringList m_help;
0036 
0037     // tokens are first set to real string, then to lowercase variant for comparison usage in processFile()
0038     // see OdfPlugin constructor
0039     QString m_creatorToken;
0040     QString m_keywordsToken;
0041     QString m_subjectToken;
0042     QString m_titleToken;
0043     QString m_generatorToken;
0044     QString m_languageToken;
0045     QString m_pageCountToken;
0046     QString m_wordCountToken;
0047 };
0048 
0049 #endif // ODF_PLUGIN_H