"Fossies" - the Fresh Open Source Software Archive  

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

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

systemplugin.h  (krename-4.0.9):systemplugin.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 _SYSTEM_PLUGIN_H_ #ifndef SYSTEM_PLUGIN_H
#define _SYSTEM_PLUGIN_H_ #define SYSTEM_PLUGIN_H
#include "fileplugin.h" #include "fileplugin.h"
class SystemPlugin : public FilePlugin { class SystemPlugin : public FilePlugin
public: {
public:
/** Create a new SystemPlugin /** Create a new SystemPlugin
*/ */
SystemPlugin( PluginLoader* loader ); explicit SystemPlugin(PluginLoader *loader);
virtual ~SystemPlugin(); virtual ~SystemPlugin();
/** /**
* @returns a name of the plugin that can be displayed * @returns a name of the plugin that can be displayed
* to the user. This name should be internationalized. * to the user. This name should be internationalized.
*/ */
inline virtual const QString name() const; inline virtual const QString name() const;
/** /**
skipping to change at line 69 skipping to change at line 70
* 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 virtual const QStringList & help() const; inline virtual const QStringList &help() const;
private: private:
const QString time( time_t time, const QString & format ); const QString time(time_t time, const QString &format);
private: private:
QStringList m_help; QStringList m_help;
}; };
inline const QString SystemPlugin::name() const inline const QString SystemPlugin::name() const
{ {
return m_name; return m_name;
} }
inline int SystemPlugin::type() const inline int SystemPlugin::type() const
{ {
return ePluginType_Token; return ePluginType_Token;
} }
inline const QStringList & SystemPlugin::help() const inline const QStringList &SystemPlugin::help() const
{ {
return m_help; return m_help;
} }
#endif // _SYSTEM_PLUGIN_H_ #endif // SYSTEM_PLUGIN_H
 End of changes. 9 change blocks. 
11 lines changed or deleted 12 lines changed or added

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