summaryrefslogtreecommitdiff
path: root/tidal_dl_ng/model/gui_data.py
diff options
context:
space:
mode:
authorRobert Honz <exislow+github@gmail.com>2023-12-19 23:58:57 +0100
committerRobert Honz <exislow+github@gmail.com>2023-12-19 23:58:57 +0100
commit0d4a9d6b8740035346d098f5bc28ebca64f6cd4d (patch)
treef52c9569509565e581b03b6e60fe32e611b79ad2 /tidal_dl_ng/model/gui_data.py
parent82a8fe96aa08903919a90a76030bacba9f93b8e0 (diff)
downloadtidal-dl-ng-0d4a9d6b8740035346d098f5bc28ebca64f6cd4d.tar.gz
🌟 Re-add all project files.
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
+