File indexing completed on 2024-04-14 04:16:16

0001 /***************************************************************************
0002                           kimagemapeditorinterface.h
0003                              -------------------
0004     begin                : Wed Apr 4 2001
0005     copyright            : (C) 2001 by Jan Schäfer
0006     email                : janschaefer@users.sourceforge.net
0007  ***************************************************************************/
0008 
0009 /***************************************************************************
0010  *                                                                         *
0011  *   This program is free software; you can redistribute it and/or modify  *
0012  *   it under the terms of the GNU General Public License as published by  *
0013  *   the Free Software Foundation; either version 2 of the License, or     *
0014  *   (at your option) any later version.                                   *
0015  *                                                                         *
0016  ***************************************************************************/
0017 
0018 #ifndef KIMAGEMAPEDITORINTERFACE_H
0019 #define KIMAGEMAPEDITORINTERFACE_H
0020 
0021 class KConfigGroup;
0022 class QUrl;
0023 
0024 class KImageMapEditorInterface
0025 {
0026 public:
0027     virtual ~KImageMapEditorInterface() {}
0028 
0029     /**
0030      * Opens the given file.
0031      * If it's an HTML file openURL is called
0032      * If it's an Image, the image is added to the image list
0033      */
0034     virtual void openFile(const QUrl &) = 0;
0035     virtual bool openURL(const QUrl & url) = 0;
0036 
0037     virtual void openLastURL(const KConfigGroup &) = 0;
0038 
0039     virtual void readProperties(const KConfigGroup &) = 0;
0040     virtual void saveProperties(KConfigGroup &) = 0;
0041 };
0042 
0043 Q_DECLARE_INTERFACE(KImageMapEditorInterface, "org.kde.KImageMapEditorInterface")
0044 
0045 #endif