diff options
Diffstat (limited to 'kipi-plugins/ipodexport/imagelistitem.h')
-rw-r--r-- | kipi-plugins/ipodexport/imagelistitem.h | 47 |
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 |