1 /***************************************************************************
2 * This file is part of KWorship. *
3 * Copyright 2008 James Hogan <james@albanarts.com> *
5 * KWorship is free software: you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation, either version 2 of the License, or *
8 * (at your option) any later version. *
10 * KWorship is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
15 * You should have received a copy of the GNU General Public License *
16 * along with KWorship. If not, write to the Free Software Foundation, *
17 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
18 ***************************************************************************/
21 * @file KwZionworxPlugin.cpp
22 * @brief Zionworx filters plugin.
23 * @author James Hogan <james@albanarts.com>
26 #include "KwZionworxPlugin.h"
27 #include "KwZionworxFilter.h"
29 #include <KwApplication.h>
31 #include <KwDocument.h>
32 #include <KwFilterManager.h>
35 #include <KGenericFactory>
37 K_EXPORT_COMPONENT_FACTORY( kworship_zionworx
, KGenericFactory
<KwZionworxPlugin
>("kworship_zionworx") )
40 * Constructors + destructor
43 /// Default constructor.
44 KwZionworxPlugin::KwZionworxPlugin(QObject
* parent
, const QStringList
& params
)
45 : KwPlugin(parent
, "zionworx",
46 i18n("Zionworx filters"),
47 i18n("The Zionworx filters allow Zionworx playlists to be loaded and saved."))
53 KwZionworxPlugin::~KwZionworxPlugin()
58 * Loading and unloading virtual interface
61 void KwZionworxPlugin::_load()
63 KwZionworxFilter
* filter
= new KwZionworxFilter();
64 KwApplication::self()->filterManager()->addLoadSaveFilter(filter
);
67 void KwZionworxPlugin::_unload()