"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/translitplugin.h" between
krename-4.0.9.tar.gz and krename-4.90.90.tar.gz

About: KRename is a batch file-renamer (KDE).

translitplugin.h  (krename-4.0.9):translitplugin.h  (krename-4.90.90)
skipping to change at line 18 skipping to change at line 18
/*************************************************************************** /***************************************************************************
* * * *
* This program is free software; you can redistribute it and/or modify * * 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 * * it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or * * the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. * * (at your option) any later version. *
* * * *
***************************************************************************/ ***************************************************************************/
#ifndef _TRANSLIT_PLUGIN_H_ #ifndef TRANSLIT_PLUGIN_H
#define _TRANSLIT_PLUGIN_H_ #define TRANSLIT_PLUGIN_H
#include "fileplugin.h" #include "fileplugin.h"
#include <QHash> #include <QHash>
class TranslitPlugin : public FilePlugin { class TranslitPlugin : public FilePlugin
public: {
TranslitPlugin( PluginLoader* loader ); public:
explicit TranslitPlugin(PluginLoader *loader);
~TranslitPlugin(); ~TranslitPlugin();
/** /**
* @returns the type of the plugin. * @returns the type of the plugin.
*/ */
inline virtual int type() const; inline virtual int type() const;
/** /**
* This function is the core of your plugin. * This function is the core of your plugin.
skipping to change at line 63 skipping to change at line 64
* in brackets. If your plugin supports the token [ex ample], * in brackets. If your plugin supports the token [ex ample],
* KRename will pass the strign "example" to your met hod. * KRename will pass the strign "example" to your met hod.
* @param eCurrentType the current type of plugin that is requested (for plu gins that support more than one type) * @param eCurrentType the current type of plugin that is requested (for plu gins that support more than one type)
* *
* @returns the result of the function, depending on type(). * @returns the result of the function, depending on type().
* @returns QString::null if this plugin has nothing to do. * @returns QString::null if this plugin has nothing to do.
* @returns A new filename if type is ePluginType_Filename * @returns A new filename if type is ePluginType_Filename
* @returns the value of the token if type is ePluginType_Token * @returns the value of the token if type is ePluginType_Token
* @returns an error message or QString::null if type is ePluginType_File * @returns an error message or QString::null if type is ePluginType_File
*/ */
virtual QString processFile( BatchRenamer* b, int index, const QString & fil enameOrToken, EPluginType eCurrentType ); virtual QString processFile(BatchRenamer *b, int index, const QString &filen ameOrToken, EPluginType eCurrentType);
/** Returns help descriptions for the supported tokens /** Returns help descriptions for the supported tokens
* *
* The returned stringlist contains strings that are the tokens * The returned stringlist contains strings that are the tokens
* and the description separated by ;; * and the description separated by ;;
* *
* @returns a stringlist containing help on the supported tokens * @returns a stringlist containing help on the supported tokens
*/ */
inline const QStringList & help() const; inline const QStringList &help() const;
/** Create a user interface for this plugin /** Create a user interface for this plugin
* *
* @param parent the parent widget of this plugin * @param parent the parent widget of this plugin
*/ */
//virtual void createUI( QWidget* parent ) const; //virtual void createUI( QWidget* parent ) const;
private: private:
/** Transliterate a string and return the /** Transliterate a string and return the
* transliterated version. * transliterated version.
* *
* @param unicoded the string which is to be transliterated * @param unicoded the string which is to be transliterated
* *
* @returns a transliterated copy of the string * @returns a transliterated copy of the string
*/ */
QString transliterate(const QString & unicoded); QString transliterate(const QString &unicoded);
private: private:
QStringList m_help; QStringList m_help;
static const QString s_strUtf8[]; static const QString s_strUtf8[];
static const QString s_strEngl[]; static const QString s_strEngl[];
static QHash<QString,QString> s_mapFromUTF8; static QHash<QString, QString> s_mapFromUTF8;
}; };
inline int TranslitPlugin::type() const inline int TranslitPlugin::type() const
{ {
//return ePluginType_Filename | ePluginType_Token; //return ePluginType_Filename | ePluginType_Token;
return ePluginType_Token; return ePluginType_Token;
} }
inline const QStringList & TranslitPlugin::help() const inline const QStringList &TranslitPlugin::help() const
{ {
return m_help; return m_help;
} }
#endif // _TRANSLIT_PLUGIN_H_ #endif // TRANSLIT_PLUGIN_H
 End of changes. 10 change blocks. 
12 lines changed or deleted 13 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)