aboutsummaryrefslogtreecommitdiffstats
path: root/src/list_item.h
blob: 866a98fe4794eaa99863ed0673f6850454ce6eaa (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, bool has_attachement, QListWidget *parent = nullptr, int index = 0);
    int get_status_index();

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