compile
[kdegraphics.git] / ksaneplugin / sanedialog.h
blob6006096a2716590090b310e2ee24a00bed4fa752
1 /* ============================================================
3 * Date : 2008-04-17
4 * Description : Sane plugin interface for KDE
6 * Copyright (C) 2008 by Kare Sars <kare dot sars at iki dot fi>
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) version 3, or any
12 * later version accepted by the membership of KDE e.V. (or its
13 * successor approved by the membership of KDE e.V.), which shall
14 * act as a proxy defined in Section 6 of version 3 of the license.
16 * This library is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 * Lesser General Public License for more details.
21 * You should have received a copy of the GNU Lesser General Public
22 * License along with this program. If not, see <http://www.gnu.org/licenses/>.
24 * ============================================================ */
26 #ifndef SANEDIALOG_H
27 #define SANEDIALOG_H
29 #include <kscan.h>
30 #include <libksane/ksane.h>
32 class SaneDialogPrivate;
34 class SaneDialog : public KScanDialog
36 Q_OBJECT
38 public:
39 explicit SaneDialog( QWidget *parent = 0, const QVariantList &args = QVariantList() );
40 ~SaneDialog();
42 virtual bool setup();
44 protected slots:
45 void imageReady(QByteArray &, int, int, int, int);
47 private:
48 KSaneIface::KSaneWidget *ksanew;
49 QString openDev;
53 #endif // SCAN_H