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 ***************************************************************************/
20 #ifndef _KwExportFilter_h_
21 #define _KwExportFilter_h_
24 * @file KwExportFilter.h
25 * @brief Export file filter.
26 * @author James Hogan <james@albanarts.com>
31 #include <kdemacros.h>
33 #include <QStringList>
40 /// Export file filter.
41 class KDE_EXPORT KwExportFilter
: public virtual KwFilter
49 /// Abstract description of something that cannot be saved.
55 * Constructors + destructor
58 /// Default constructor.
62 virtual ~Limitation();
68 /// Get a short description of what won't be saved
69 virtual QString
briefDescription() = 0;
71 /// Get a detailed description of what won't be saved
72 virtual QString
detailedDescription() = 0;
75 /// Container class of limitations.
81 * Constructors + destructor
84 /// Default constructor.
88 virtual ~Limitations();
96 /// List of limitations.
97 QList
<Limitation
*> m_limitations
;
101 * Constructors + destructor
104 /// Primary constructor.
108 virtual ~KwExportFilter();
114 /// Obtain information about any data that can not be saved.
115 void saveLimitations(KwDocument
* doc
, Limitations
* o_limitations
);
117 /// Save the document to file.
118 virtual bool save(KwDocument
* doc
, const KUrl
& url
) = 0;
124 /// Get a list of export mime types.
125 QStringList
exportMimeTypes() const;
133 /// Obtain information about any data that can not be saved.
134 virtual void v_saveLimitations(KwDocument
* doc
, Limitations
* o_limitations
) = 0;
140 /// List of export mime types.
141 QStringList m_exportMimeTypes
;
144 #endif // _KwExportFilter_h_