libKipi
uploadwidget.h
Go to the documentation of this file.
1 /* ============================================================
2  *
3  * This file is a part of kipi-plugins project
4  * http://www.kipi-plugins.org
5  *
6  * Date : 2004-02-01
7  * Description : a widget to upload item.
8  *
9  * Copyright (C) 2004-2007 by Gilles Caulier <caulier dot gilles at gmail dot com>
10  * Copyright (C) 2004-2005 by Renchi Raju <renchi.raju at kdemail.net>
11  * Copyright (C) 2004-2005 by Jesper K. Pedersen <blackie at kde.org>
12  * Copyright (C) 2004-2005 by Aurelien Gateau <aurelien dot gateau at free.fr>
13  *
14  * This program is free software; you can redistribute it
15  * and/or modify it under the terms of the GNU General
16  * Public License as published by the Free Software Foundation;
17  * either version 2, or (at your option) 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 <qwidget.h>
32 
33 // KDE includes.
34 
35 #include <kfiletreeview.h>
36 #include <kurl.h>
37 
38 // Local includes.
39 
40 #include "libkipi/interface.h"
41 #include "libkipi/libkipi_export.h"
42 
43 class QListViewItem;
44 
45 namespace KIPI
46 {
47  class LIBKIPI_EXPORT UploadWidget :public QWidget
48  {
49  Q_OBJECT
50 
51  public:
52 
53  UploadWidget( KIPI::Interface* interface, QWidget* parent, const char* name = 0 );
54  ~UploadWidget();
55  KURL path() const;
56 
57  public slots:
58 
59  void mkdir();
60 
61  signals :
62  void folderItemSelected(const KURL &url);
63 
64  protected slots:
65 
66  void load();
67  void slotAlbumCreated(KIO::Job* job);
68  void slotFolderSelected(QListViewItem *);
69 
70  private slots:
71 
72  void slotPopulateFinished(KFileTreeViewItem *);
73 
74  private:
75 
76  struct Private;
77  Private* d;
78  };
79 }
80 
81 #endif /* KIPI_UPLOADWIDGET_H */
Definition: batchprogressdialog.cpp:69
Definition: interface.h:63
#define LIBKIPI_EXPORT
Definition: libkipi_export.h:35
Definition: uploadwidget.cpp:54
Definition: uploadwidget.h:47