summaryrefslogtreecommitdiffstats
path: root/kipi-plugins/kameraklient/camerafolderview.h
diff options
context:
space:
mode:
Diffstat (limited to 'kipi-plugins/kameraklient/camerafolderview.h')
-rw-r--r--kipi-plugins/kameraklient/camerafolderview.h68
1 files changed, 68 insertions, 0 deletions
diff --git a/kipi-plugins/kameraklient/camerafolderview.h b/kipi-plugins/kameraklient/camerafolderview.h
new file mode 100644
index 0000000..e2208bb
--- /dev/null
+++ b/kipi-plugins/kameraklient/camerafolderview.h
@@ -0,0 +1,68 @@
+/* ============================================================
+ * File : camerafolderview.h
+ * Author: Renchi Raju <renchi@pooh.tam.uiuc.edu>
+ * Date : 2003-01-23
+ * Description :
+ *
+ * Copyright 2003 by Renchi Raju <renchi@pooh.tam.uiuc.edu>
+
+ * This program is free software; you can redistribute it
+ * and/or modify it under the terms of the GNU General
+ * Public License as published by the Free Software Foundation;
+ * either version 2, or (at your option)
+ * any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * ============================================================ */
+
+#ifndef CAMERAFOLDERVIEW_H
+#define CAMERAFOLDERVIEW_H
+
+// Qt
+#include <qstring.h>
+// KDE
+#include <klistview.h>
+
+namespace KIPIKameraKlientPlugin
+{
+
+class CameraFolderItem;
+
+class CameraFolderView : public KListView {
+ Q_OBJECT
+
+public:
+ CameraFolderView(QWidget* parent);
+ ~CameraFolderView();
+ void addVirtualFolder(const QString& name);
+ void addRootFolder(const QString& folder);
+ CameraFolderItem* addFolder(const QString& folder, const QString& subFolder);
+ CameraFolderItem* findFolder(const QString& folderPath);
+ CameraFolderItem* virtualFolder();
+ CameraFolderItem* rootFolder();
+ virtual void clear();
+
+private:
+ QString cameraName_;
+ CameraFolderItem *virtualFolder_;
+ CameraFolderItem *rootFolder_;
+
+private:
+ void setupConnections();
+
+private slots:
+ void slotSelectionChanged(QListViewItem* item);
+
+signals:
+ void signalFolderChanged(CameraFolderItem*);
+ void signalCleared();
+};
+
+} // NameSpace KIPIKameraKlientPlugin
+
+#endif
+