aboutsummaryrefslogtreecommitdiffstats
path: root/src/list_item.h
blob: ce5b6b2fdeba5d773181336edf45c40ef2a547b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once

#include <QListWidgetItem>
#include "types.h"

class ListItem : public QListWidgetItem {
public:
    enum ItemType {
        ArchiveListItemType = QListWidgetItem::UserType
    };

    ListItem(const QString &text, StatusType status_type, QListWidget *parent = nullptr, int index = 0);
    int get_status_index();

private:
    int status_index;
    StatusType status_type;
    bool has_attachement;
};