summaryrefslogtreecommitdiff
path: root/tidal_dl_ng/model/gui_data.py
blob: ed563e210d77bbd283094d69eacededae7ab4789 (plain) (blame)
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
28
29
30
31
32
33
from dataclasses import dataclass

try:
    from PySide6 import QtCore

    @dataclass
    class ProgressBars:
        item: QtCore.Signal
        item_name: QtCore.Signal
        list_item: QtCore.Signal

except ModuleNotFoundError:

    class ProgressBars:
        pass


# TODO: Remove if not used?
@dataclass
class UserList:
    name: str
    count: str
    obj: object


@dataclass
class ResultSearch:
    position: int
    artist: str
    title: str
    album: str
    duration_sec: int
    obj: object