2025-09-10 19:34:49 +05:00
|
|
|
package core
|
|
|
|
|
|
|
|
import (
|
|
|
|
"errors"
|
|
|
|
|
|
|
|
"bunker/client/internal/services/core/options/dto"
|
|
|
|
)
|
|
|
|
|
2025-09-13 09:23:47 +05:00
|
|
|
// ServiceNameOptions is a name for options service which controls options dialog and options storage.
|
2025-09-10 19:34:49 +05:00
|
|
|
const ServiceNameOptions = "core/options"
|
|
|
|
|
2025-09-13 09:23:47 +05:00
|
|
|
// ErrOptionsIsInvalid appears when options service implementation is invalid.
|
|
|
|
var ErrOptionsIsInvalid = errors.New("options service implementation is invalid")
|
2025-09-10 19:34:49 +05:00
|
|
|
|
2025-09-13 09:23:47 +05:00
|
|
|
// Options is an interface for options service.
|
2025-09-10 19:34:49 +05:00
|
|
|
type Options interface {
|
2025-09-13 09:23:47 +05:00
|
|
|
// RegisterOptionsWidget registers options widget for options dialog.
|
2025-09-10 19:34:49 +05:00
|
|
|
RegisterOptionsWidget(widgetData *dto.OptionPane) error
|
2025-09-13 09:23:47 +05:00
|
|
|
// ShowOptionsDialog shows options dialog.
|
2025-09-10 19:34:49 +05:00
|
|
|
ShowOptionsDialog()
|
|
|
|
}
|