mirror of
https://invent.kde.org/graphics/okular
synced 2024-08-27 11:40:07 +00:00
6aa123656a
This requires a generator to have a MyGenerator(QObject *parent, const QVariantList &args) constructor in order to be successfully loaded. The OKULAR_EXPORT_PLUGIN macro was adapted, and the generators to provide it the about data; the protected Generator::setAboutData() is no more needed. Remove the 'lib' prefix from plugins, unneeded now. CCMAIL: okular-devel@kde.org svn path=/trunk/KDE/kdegraphics/okular/; revision=744169
37 lines
1.2 KiB
C++
37 lines
1.2 KiB
C++
/***************************************************************************
|
|
* Copyright (C) 2007 by Tobias Koenig <tokoe@kde.org> *
|
|
* *
|
|
* 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. *
|
|
***************************************************************************/
|
|
|
|
#include "generator_fb.h"
|
|
|
|
#include "converter.h"
|
|
|
|
#include <kaboutdata.h>
|
|
|
|
static KAboutData createAboutData()
|
|
{
|
|
// ### TODO fill after the KDE 4.0 unfreeze
|
|
KAboutData aboutData(
|
|
"okular_fictionbook",
|
|
"okular_fictionbook",
|
|
KLocalizedString(),
|
|
"0.1",
|
|
KLocalizedString(),
|
|
KAboutData::License_GPL,
|
|
KLocalizedString()
|
|
);
|
|
return aboutData;
|
|
}
|
|
|
|
OKULAR_EXPORT_PLUGIN( FictionBookGenerator, createAboutData() )
|
|
|
|
FictionBookGenerator::FictionBookGenerator( QObject *parent, const QVariantList &args )
|
|
: Okular::TextDocumentGenerator( new FictionBook::Converter, parent, args )
|
|
{
|
|
}
|