mirror of
https://github.com/cyberarm/w3d_hub_linux_launcher.git
synced 2026-03-21 19:56:14 +00:00
34 lines
753 B
Ruby
34 lines
753 B
Ruby
class W3DHub
|
|
class ApplicationManager
|
|
class Status
|
|
attr_reader :application, :channel, :operations, :data
|
|
attr_accessor :label, :value, :progress, :step
|
|
|
|
def initialize(application:, channel:, label: "", value: "", progress: 0.0, step: :pending, operations: {})
|
|
@application = application
|
|
@channel = channel
|
|
|
|
@label = label
|
|
@value = value
|
|
@progress = progress
|
|
|
|
@step = step
|
|
@operations = operations
|
|
|
|
|
|
@data = {}
|
|
end
|
|
|
|
class Operation
|
|
attr_accessor :label, :value, :progress
|
|
|
|
def initialize(label:, value:, progress:)
|
|
@label = label
|
|
@value = value
|
|
@progress = progress
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|