summaryrefslogtreecommitdiffstats
path: root/kipi-plugins/ipodexport/imagelistitem.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-01-19 18:22:05 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-01-19 18:22:05 +0000
commit57e10fedbcb8c3e8c6590ff0935dbf017ce5587f (patch)
tree3000a7649ca4e40e43f9e7feed963236a0b0f56b /kipi-plugins/ipodexport/imagelistitem.h
downloadkipi-plugins-57e10fedbcb8c3e8c6590ff0935dbf017ce5587f.tar.gz
kipi-plugins-57e10fedbcb8c3e8c6590ff0935dbf017ce5587f.zip
Import abandoned KDE3 version of kipi plugins
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/libraries/kipi-plugins@1077221 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kipi-plugins/ipodexport/imagelistitem.h')
-rw-r--r--kipi-plugins/ipodexport/imagelistitem.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/kipi-plugins/ipodexport/imagelistitem.h b/kipi-plugins/ipodexport/imagelistitem.h
new file mode 100644
index 0000000..3751025
--- /dev/null
+++ b/kipi-plugins/ipodexport/imagelistitem.h
@@ -0,0 +1,47 @@
+/***************************************************************************
+ * copyright : (C) 2006 Seb Ruiz <me@sebruiz.net> *
+ **************************************************************************/
+
+/***************************************************************************
+ * *
+ * 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 of the License, or *
+ * (at your option) any later version. *
+ * *
+ ***************************************************************************/
+
+#ifndef IMAGELISTITEM_H
+#define IMAGELISTITEM_H
+
+extern "C" {
+#include <gpod/itdb.h>
+}
+
+#include <qstring.h>
+#include <klistview.h>
+#include <klocale.h>
+
+namespace IpodExport
+{
+
+ class ImageListItem : public KListViewItem
+ {
+ public:
+
+ ImageListItem( QListView *parent, QString const & pathSrc, QString const & name )
+ : KListViewItem( parent, QString::null/*set below*/, name )
+ , m_pathSrc( pathSrc )
+ {
+ setText( 0, pathSrc.section('/', -2, -2) );
+ }
+
+ QString pathSrc() const { return m_pathSrc; }
+
+ private:
+ QString m_pathSrc;
+ };
+
+}
+
+#endif // IMAGELISTITEM_H