1 | /** =========================================================== |
2 | * @file |
3 | * |
4 | * This file is a part of digiKam project |
5 | * <a href="http://www.digikam.org">http://www.digikam.org</a> |
6 | * |
7 | * @date 2008-02-26 |
8 | * @brief template widget to upload items in collection |
9 | * |
10 | * @author Copyright (C) 2008-2012 by Gilles Caulier |
11 | * <a href="mailto:caulier dot gilles at gmail dot com">caulier dot gilles at gmail dot com</a> |
12 | * |
13 | * This program is free software; you can redistribute it |
14 | * and/or modify it under the terms of the GNU General |
15 | * Public License as published by the Free Software Foundation; |
16 | * either version 2, or (at your option) |
17 | * any later version. |
18 | * |
19 | * This program is distributed in the hope that it will be useful, |
20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
22 | * GNU General Public License for more details. |
23 | * |
24 | * ============================================================ */ |
25 | |
26 | #ifndef KIPI_UPLOADWIDGET_H |
27 | #define KIPI_UPLOADWIDGET_H |
28 | |
29 | // Qt includes |
30 | |
31 | #include <QtGui/QWidget> |
32 | |
33 | // Local includes |
34 | |
35 | #include "libkipi_export.h" |
36 | |
37 | namespace KIPI |
38 | { |
39 | |
40 | class ImageCollection; |
41 | |
42 | /** Re-implement this widget in your KIPI host application to use your dedicated model/view */ |
43 | |
44 | class LIBKIPI_EXPORT UploadWidget : public QWidget |
45 | { |
46 | Q_OBJECT |
47 | |
48 | public: |
49 | |
50 | UploadWidget(QWidget* const parent); |
51 | virtual ~UploadWidget(); |
52 | |
53 | virtual ImageCollection selectedImageCollection() const; |
54 | |
55 | Q_SIGNALS: |
56 | |
57 | void selectionChanged(); |
58 | }; |
59 | |
60 | } // namespace KIPI |
61 | |
62 | #endif /* KIPI_UPLOADWIDGET_H */ |
63 | |