82 void setWinePrefix(
const QString& prefixPath,
const QString& gameName =
"");
85 void onCreateSnapshot();
86 void onRestoreSnapshot();
87 void onDeleteSnapshot();
88 void onSnapshotSelectionChanged();
89 void onProgressUpdate(
const QString& message,
int progress);
90 void onOperationComplete(
bool success,
const QString& message);
95 void refreshSnapshotList();
97 QString formatSize(int64_t bytes)
const;
98 QString formatDate(
const std::chrono::system_clock::time_point& tp)
const;
100 std::unique_ptr<PrefixSnapshotService> snapshotService_;
102 QString currentPrefixPath_;
103 QString currentGameName_;
106 QLabel* prefixLabel_ =
nullptr;
107 QTreeWidget* snapshotTree_ =
nullptr;
108 QLabel* detailsLabel_ =
nullptr;
109 QLineEdit* snapshotNameEdit_ =
nullptr;
110 QTextEdit* snapshotDescEdit_ =
nullptr;
111 QPushButton* createBtn_ =
nullptr;
112 QPushButton* restoreBtn_ =
nullptr;
113 QPushButton* deleteBtn_ =
nullptr;
114 QPushButton* closeBtn_ =
nullptr;
115 QProgressBar* progressBar_ =
nullptr;
116 QLabel* statusLabel_ =
nullptr;
119 QThread* workerThread_ =
nullptr;
121 std::atomic<bool> operationInProgress_{
false};