summaryrefslogtreecommitdiffstats
path: root/krename/dateplugin.h
blob: 8d8472d76609ee901c21b9437e9c8acaee83a89e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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();

        TQString processFile(BatchRenamer* b, int i, TQString token, int mode);
        const TQString getAccelName() const;
        const TQString getName() const;
        const TQString getPattern() const;
        
        void addHelp( HelpDialogData* data );
        
    private:
        const TQString time( time_t time, const TQString & format );

};

#endif