aboutsummaryrefslogtreecommitdiffstats
path: root/src/list_item.h
blob: c722a72ee888359bf3d5b7fc0d8f017b4c2182c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#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();
    StatusType get_status_type();

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