summaryrefslogtreecommitdiff
path: root/tidal_dl_ng/model/gui_data.py
diff options
context:
space:
mode:
Diffstat (limited to 'tidal_dl_ng/model/gui_data.py')
-rw-r--r--tidal_dl_ng/model/gui_data.py32
1 files changed, 32 insertions, 0 deletions
diff --git a/tidal_dl_ng/model/gui_data.py b/tidal_dl_ng/model/gui_data.py
new file mode 100644
index 0000000..0830011
--- /dev/null
+++ b/tidal_dl_ng/model/gui_data.py
@@ -0,0 +1,32 @@
+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
+