summaryrefslogtreecommitdiffabout
path: root/kmicromail/mailistviewitem.h
blob: 0fd44d3ff40ab0ff4c6f93cb569c2147c61a8fea (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
// CHANGED 2004-08-06 Lutz Rogowski
#ifndef __MAILLISTVIEWITEM_H
#define __MAILLISTVIEWITEM_H

#include <qlistview.h>
#include <libmailwrapper/mailtypes.h>
#include <libmailwrapper/maildefines.h>

class MailListViewItem:public QListViewItem
{
public:
    MailListViewItem(QListView * parent, MailListViewItem * after );
    virtual ~MailListViewItem(){}

    void storeData(const RecMailP&data);
    const RecMailP&data()const;
    void showEntry();
    MAILLIB::ATYPE wrapperType();
    QString key(int column, bool) const;
    void setSortKey(int column,const QString &key);
protected:
    RecMailP mail_data;  
 private:
    QMap<int,QString> mKeyMap;
};

#endif