summaryrefslogtreecommitdiff
path: root/tidal_dl_ng/model/gui_data.py
blob: 0c3aeffd9f875d6de6b209cd83db846fb16453bf (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
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


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