blob: 8b9160ad8d757db2c468bd503731692b736031f5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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 <tqstring.h>
#include <klistview.h>
#include <klocale.h>
namespace IpodExport
{
class ImageListItem : public KListViewItem
{
public:
ImageListItem( TQListView *parent, TQString const & pathSrc, TQString const & name )
: KListViewItem( parent, TQString()/*set below*/, name )
, m_pathSrc( pathSrc )
{
setText( 0, pathSrc.section('/', -2, -2) );
}
TQString pathSrc() const { return m_pathSrc; }
private:
TQString m_pathSrc;
};
}
#endif // IMAGELISTITEM_H
|