1 | /* ============================================================ |
2 | * |
3 | * Date : 2008-04-17 |
4 | * Description : Sane plugin interface for KDE |
5 | * |
6 | * Copyright (C) 2008 by Kare Sars <kare dot sars at iki dot fi> |
7 | * |
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. |
15 | * |
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. |
20 | * |
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/>. |
23 | * |
24 | * ============================================================ */ |
25 | |
26 | #ifndef SANEDIALOG_H |
27 | #define SANEDIALOG_H |
28 | |
29 | #include <kscan.h> |
30 | #include <libksane/ksane.h> |
31 | |
32 | |
33 | class SaneDialog : public KScanDialog |
34 | { |
35 | Q_OBJECT |
36 | |
37 | public: |
38 | explicit SaneDialog( QWidget *parent = 0, const QVariantList &args = QVariantList() ); |
39 | ~SaneDialog(); |
40 | |
41 | virtual bool setup(); |
42 | |
43 | protected slots: |
44 | void imageReady(QByteArray &, int, int, int, int); |
45 | |
46 | private: |
47 | KSaneIface::KSaneWidget *ksanew; |
48 | QString openDev; |
49 | }; |
50 | |
51 | |
52 | #endif // SCAN_H |
53 | |