1/*
2 * Copyright (C) 2010 Pau Garcia i Quiles <pgquiles@elpauer.org>
3 * Essentially a rip-off of code for Kamoso by:
4 * Copyright (C) 2008-2009 by Aleix Pol <aleixpol@kde.org>
5 * Copyright (C) 2008-2009 by Alex Fiestas <alex@eyeos.org>
6
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU Lesser General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor,
21 * Boston, MA 02110-1301, USA.
22*/
23
24#ifndef KIPIINTERFACE_H
25#define KIPIINTERFACE_H
26
27#include <QList>
28#include <libkipi/interface.h>
29#include <libkipi/uploadwidget.h>
30#include <libkipi/imagecollectionshared.h>
31
32class KSnapshot;
33struct KIPIInterfacePrivate;
34
35class KIPIInterface :public KIPI::Interface {
36 Q_OBJECT
37
38public:
39 KIPIInterface(KSnapshot* ksnapshot);
40 virtual ~KIPIInterface();
41
42 virtual bool addImage(const KUrl&, QString& err);
43 virtual void delImage( const KUrl& );
44 virtual void refreshImages( const KUrl::List& urls );
45
46 virtual KIPI::ImageCollectionSelector* imageCollectionSelector(QWidget *parent);
47 virtual KIPI::UploadWidget* uploadWidget(QWidget *parent);
48
49 virtual QList<KIPI::ImageCollection> allAlbums();
50 virtual KIPI::ImageCollection currentAlbum();
51 virtual KIPI::ImageCollection currentSelection();
52 virtual int features() const;
53 virtual KIPI::ImageInfo info(const KUrl& );
54
55private:
56 KIPIInterfacePrivate* const d;
57};
58
59#endif // KIPIINTERFACE_H
60