summaryrefslogtreecommitdiffstats
path: root/krename/dateplugin.h
diff options
context:
space:
mode:
Diffstat (limited to 'krename/dateplugin.h')
-rw-r--r--krename/dateplugin.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/krename/dateplugin.h b/krename/dateplugin.h
new file mode 100644
index 0000000..06eee70
--- /dev/null
+++ b/krename/dateplugin.h
@@ -0,0 +1,44 @@
+/***************************************************************************
+ dateplugin.h - description
+ -------------------
+ begin : Mon Feb 02 2004
+ copyright : (C) 2004 by Dominik Seichter
+ email : domseichter@web.de
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * 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 DATEPLUGIN_H
+#define DATEPLUGIN_H
+
+#include <fileplugin.h>
+// time_t support...
+#include <time.h>
+/**
+@author Dominik Seichter
+*/
+class DatePlugin : public FilePlugin
+{
+ public:
+ DatePlugin();
+
+ QString processFile(BatchRenamer* b, int i, QString token, int mode);
+ const QString getAccelName() const;
+ const QString getName() const;
+ const QString getPattern() const;
+
+ void addHelp( HelpDialogData* data );
+
+ private:
+ const QString time( time_t time, const QString & format );
+
+};
+
+#endif