1 /* This file is part of the KDE libraries
2     Copyright (C) 2001,2002 Rolf Magnus <ramagnus@kde.org>
3 
4     library is free software; you can redistribute it and/or
5     modify it under the terms of the GNU Library General Public
6     License version 2 as published by the Free Software Foundation.
7 
8     This library is distributed in the hope that it will be useful,
9     but WITHOUT ANY WARRANTY; without even the implied warranty of
10     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11     Library General Public License for more details.
12 
13     You should have received a copy of the GNU Library General Public License
14     along with this library; see the file COPYING.LIB.  If not, write to
15     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16     Boston, MA 02110-1301, USA.
17 
18  */
19 
20 #ifndef __KMETAPROPS_H__
21 #define __KMETAPROPS_H__
22 #include <kpropertiesdialog.h>
23 #include <kdelibs4support_export.h>
24 
25 class KFileMetaInfoItem;
26 
27 /*!
28  * 'MetaProps plugin
29  * In this plugin you can modify meta information like id3 tags of mp3 files
30  */
31 class KDELIBS4SUPPORT_DEPRECATED_EXPORT KFileMetaPropsPlugin : public KPropertiesDialogPlugin
32 {
33     Q_OBJECT
34 public:
35     KFileMetaPropsPlugin(KPropertiesDialog *_props);
36     ~KFileMetaPropsPlugin() override;
37 
38     void applyChanges() override;
39 
40     /**
41      * Tests whether the file specified by _items has a 'MetaInfo' plugin.
42      */
43     static bool supports(const KFileItemList &_items);
44 
45 private:
46     class KFileMetaPropsPluginPrivate;
47     KFileMetaPropsPluginPrivate *const d;
48 
49     Q_PRIVATE_SLOT(d, void configureShownMetaData())
50 };
51 
52 #endif
53