~neon/kdesdk-thumbnailers/master

« back to all changes in this revision

Viewing changes to po_thumbnailer/pocreator.h

  • Committer: Albert Astals Cid
  • Date: 2013-02-12 21:25:26 UTC
  • mto: This revision was merged to the branch mainline in revision 28.
  • Revision ID: git-v1:9a443e674fa7c09de411b459465e52def512e276
po -> po_thumbnailer

po is a "reserved" directory name for scripty since in 99.99% of cases
if you have a po folder means you are storing the po in your repo
which is not the correct thing to do. Here is it correct but for the 0.01% of the
cases i'm just renaming the folder.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *  This file is part of kde-thumbnailer-po
 
3
 *  Copyright (C) 2011-2012 Ni Hui <shuizhuyuanluo@126.com>
 
4
 *
 
5
 *  This program is free software; you can redistribute it and/or
 
6
 *  modify it under the terms of the GNU General Public License as
 
7
 *  published by the Free Software Foundation; either version 2 of
 
8
 *  the License or (at your option) version 3 or any later version
 
9
 *  accepted by the membership of KDE e.V. (or its successor approved
 
10
 *  by the membership of KDE e.V.), which shall act as a proxy
 
11
 *  defined in Section 14 of version 3 of the license.
 
12
 *
 
13
 *  This program is distributed in the hope that it will be useful,
 
14
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
15
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
16
 *  GNU General Public License for more details.
 
17
 *
 
18
 *  You should have received a copy of the GNU General Public License
 
19
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
20
 */
 
21
 
 
22
#ifndef POCREATOR_H
 
23
#define POCREATOR_H
 
24
 
 
25
#include <kdeversion.h>
 
26
#include <kio/thumbcreator.h>
 
27
 
 
28
#if KDE_IS_VERSION(4,7,0)
 
29
class PoCreator : public ThumbCreatorV2
 
30
#else
 
31
class PoCreator : public ThumbCreator
 
32
#endif
 
33
{
 
34
    public:
 
35
        explicit PoCreator();
 
36
        virtual ~PoCreator();
 
37
        virtual bool create( const QString& path, int width, int height, QImage& img );
 
38
        virtual QWidget* createConfigurationWidget();
 
39
        virtual void writeConfiguration( const QWidget* configurationWidget );
 
40
};
 
41
 
 
42
#endif // POCREATOR_H