1
Fork 0
mirror of https://github.com/redstrate/Auracite.git synced 2025-05-06 18:57:45 +00:00
auracite/src/bin/auracite/Main.qml
Joshua Goins 66f641b7ca Switch around the server/client for Dalamud communication
This is to facilitate support for this feature on the Web, where the
plugin needs to start a server instead of Auracite itself. Otherwise,
the functionality is identical to before.
2024-10-31 21:46:50 -04:00

42 lines
No EOL
903 B
QML

import QtQuick
import QtQuick.Layouts
import QtQuick.Controls as QQC2
import org.kde.kirigami as Kirigami
import zone.xiv.auracite
Kirigami.ApplicationWindow {
id: root
title: "Auracite"
readonly property Backend backend: Backend {}
ColumnLayout {
QQC2.TextField {
id: characterNameField
placeholderText: "Full name of the character"
}
QQC2.CheckBox {
id: dalamudCheckbox
}
QQC2.Button {
text: "Archive"
onClicked: root.backend.archiveCharacter(characterNameField.text, dalamudCheckbox.checked)
}
}
Connections {
target: backend
function onArchiveSuccessful(): void {
console.info("Archive done!");
}
function onArchiveFailed(message: string): void {
console.error("Failed: " + message);
}
}
}