2 This file is part of libkabc.
3 Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org>
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version.
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
15 You should have received a copy of the GNU Library General Public License
16 along with this library; see the file COPYING.LIB. If not, write to
17 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 Boston, MA 02110-1301, USA.
21 #ifndef ADDRESSEEITEM_H
22 #define ADDRESSEEITEM_H
24 #include <klineedit.h>
25 #include <k3listview.h>
27 #include <kabc/addressbook.h>
30 @short Special ListViewItem
32 class AddresseeItem
: public K3ListViewItem
38 @li @p Name - Name in Addressee
39 @li @p Email - Email in Addressee
41 enum columns
{ Photo
=0, Name
= 1, Email
= 2 };
46 @param parent The parent listview.
47 @param addressee The associated addressee.
49 AddresseeItem( Q3ListView
*parent
, const KABC::Addressee
&addressee
);
52 Returns the addressee.
54 KABC::Addressee
addressee() const { return mAddressee
; }
57 Method used by QListView to sort the items.
59 virtual QString
key( int column
, bool ascending
) const;
62 KABC::Addressee mAddressee
;
65 #endif // ADDRESSEEITEM_H