mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00

* NF: Modify CONTRIBUTORS Just so that I stop getting the warning * NF: Create `deckOptionsReady` * NF: rename _close to require_close The method will have to be used outside of this class, so can't be private * NF: simplify slightly some code * NF: remove bridge command from deck options * Remove unused import * Remove superfluous comment with a typo
42 lines
1.2 KiB
Protocol Buffer
42 lines
1.2 KiB
Protocol Buffer
// Copyright: Ankitects Pty Ltd and contributors
|
|
// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|
|
|
syntax = "proto3";
|
|
|
|
option java_multiple_files = true;
|
|
|
|
package anki.frontend;
|
|
|
|
import "anki/scheduler.proto";
|
|
import "anki/generic.proto";
|
|
import "anki/search.proto";
|
|
|
|
service FrontendService {
|
|
// Returns values from the reviewer
|
|
rpc GetSchedulingStatesWithContext(generic.Empty)
|
|
returns (SchedulingStatesWithContext);
|
|
// Updates reviewer state
|
|
rpc SetSchedulingStates(SetSchedulingStatesRequest) returns (generic.Empty);
|
|
|
|
// Notify Qt layer so window modality can be updated.
|
|
rpc ImportDone(generic.Empty) returns (generic.Empty);
|
|
|
|
rpc SearchInBrowser(search.SearchNode) returns (generic.Empty);
|
|
|
|
// Force closing the deck options.
|
|
rpc deckOptionsRequireClose(generic.Empty) returns (generic.Empty);
|
|
// Warns python that the deck option web view is ready to receive requests.
|
|
rpc deckOptionsReady(generic.Empty) returns (generic.Empty);
|
|
}
|
|
|
|
service BackendFrontendService {}
|
|
|
|
message SchedulingStatesWithContext {
|
|
scheduler.SchedulingStates states = 1;
|
|
scheduler.SchedulingContext context = 2;
|
|
}
|
|
|
|
message SetSchedulingStatesRequest {
|
|
string key = 1;
|
|
scheduler.SchedulingStates states = 2;
|
|
}
|