Show invite menu in wlm chat window immediately
[kdenetwork.git] / kopete / libkopete / ui / addresseeitem.h
blob080f770a1d3c316b8fbf4e4a7fc9d1c130f756fc
1 /*
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>
29 /**
30 @short Special ListViewItem
32 class AddresseeItem : public K3ListViewItem
34 public:
36 /**
37 Type of column
38 @li @p Name - Name in Addressee
39 @li @p Email - Email in Addressee
41 enum columns { Photo =0, Name = 1, Email = 2 };
43 /**
44 Constructor.
46 @param parent The parent listview.
47 @param addressee The associated addressee.
49 AddresseeItem( Q3ListView *parent, const KABC::Addressee &addressee );
51 /**
52 Returns the addressee.
54 KABC::Addressee addressee() const { return mAddressee; }
56 /**
57 Method used by QListView to sort the items.
59 virtual QString key( int column, bool ascending ) const;
61 private:
62 KABC::Addressee mAddressee;
65 #endif // ADDRESSEEITEM_H