mirror of
https://github.com/ankitects/anki.git
synced 2025-11-06 12:47:11 -05:00
add uninstall rpcs and state
This commit is contained in:
parent
c0eedbc2a4
commit
a789a2cb95
1 changed files with 25 additions and 0 deletions
|
|
@ -23,6 +23,9 @@ service LauncherService {
|
||||||
rpc GetAvailableVersions(generic.Empty) returns (Versions);
|
rpc GetAvailableVersions(generic.Empty) returns (Versions);
|
||||||
rpc GetExistingVersions(generic.Empty) returns (ExistingVersions);
|
rpc GetExistingVersions(generic.Empty) returns (ExistingVersions);
|
||||||
|
|
||||||
|
rpc GetUninstallInfo(generic.Empty) returns (Uninstall);
|
||||||
|
rpc UninstallAnki(UninstallRequest) returns (UninstallResponse);
|
||||||
|
|
||||||
rpc LaunchAnki(generic.Empty) returns (generic.Empty);
|
rpc LaunchAnki(generic.Empty) returns (generic.Empty);
|
||||||
rpc Exit(generic.Empty) returns (generic.Empty);
|
rpc Exit(generic.Empty) returns (generic.Empty);
|
||||||
}
|
}
|
||||||
|
|
@ -92,6 +95,23 @@ message ChooseVersionResponse {
|
||||||
bool warming_up = 2;
|
bool warming_up = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
message UninstallRequest {
|
||||||
|
bool delete_base_folder = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
message UninstallResponse {
|
||||||
|
message WindowsInstallerError {
|
||||||
|
string error = 1;
|
||||||
|
string path = 2;
|
||||||
|
}
|
||||||
|
oneof action_needed {
|
||||||
|
string unix_script = 1;
|
||||||
|
google.protobuf.Empty mac_manual = 2;
|
||||||
|
WindowsInstallerError windows_installer_failed = 3;
|
||||||
|
google.protobuf.Empty windows_installer_not_found = 4;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
message ZoomWebviewRequest {
|
message ZoomWebviewRequest {
|
||||||
float scale_factor = 1;
|
float scale_factor = 1;
|
||||||
}
|
}
|
||||||
|
|
@ -112,6 +132,11 @@ message ExistingVersions {
|
||||||
bool pyproject_modified_by_user = 3;
|
bool pyproject_modified_by_user = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
message Uninstall {
|
||||||
|
bool anki_program_files_exists = 1;
|
||||||
|
bool anki_base_folder_exists = 2;
|
||||||
|
}
|
||||||
|
|
||||||
message NormalState {
|
message NormalState {
|
||||||
Options options = 1;
|
Options options = 1;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue