mirror of
https://github.com/cyberarm/w3d_hub_linux_launcher.git
synced 2026-05-06 09:28:18 +00:00
Tweak tweak
This commit is contained in:
@@ -1,9 +1,78 @@
|
||||
# Helper for launcher frontend to safely communicate with ractor (prevent deadlocks and concurrent access errors)
|
||||
|
||||
module W3DHubLauncher
|
||||
class Worker
|
||||
class Api
|
||||
Request = Data.define(:coming_soon)
|
||||
|
||||
def initialize
|
||||
@requests = []
|
||||
end
|
||||
|
||||
# downloads requested resource, returns raw string
|
||||
def fetch_url
|
||||
end
|
||||
|
||||
# downloads requested resource, periodically reporting progress until completion, returning path for file on disk
|
||||
def download_url
|
||||
end
|
||||
|
||||
# returns user account data
|
||||
#
|
||||
# automatically handles signing in / refreshing token (DOES NOT remove account data if failed to refresh token due to network timeout)
|
||||
def account
|
||||
end
|
||||
|
||||
# returns launcher settings
|
||||
def settings
|
||||
end
|
||||
|
||||
# write updated launcher settings
|
||||
def update_settings
|
||||
end
|
||||
|
||||
# returns list of available applications
|
||||
#
|
||||
# if updated list is requested, return cached version immediately and then the updated list later.
|
||||
def applications
|
||||
end
|
||||
|
||||
# returns current list of servers as reported from GSH / cache
|
||||
def servers
|
||||
end
|
||||
|
||||
# returns news for application
|
||||
def news
|
||||
end
|
||||
|
||||
# request installation of application
|
||||
#
|
||||
# periodically reports progress until completion
|
||||
def install_application
|
||||
end
|
||||
|
||||
# request update of application
|
||||
#
|
||||
# periodically reports progress until completion
|
||||
def update_application
|
||||
end
|
||||
|
||||
# request repair of application
|
||||
#
|
||||
# periodically reports progress until completion
|
||||
def repair_application
|
||||
end
|
||||
|
||||
# request relocation of application
|
||||
#
|
||||
# periodically reports progress until completion
|
||||
def move_application
|
||||
end
|
||||
|
||||
# request removal of application
|
||||
#
|
||||
# periodically reports progress until completion
|
||||
def uninstall_application
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
4
lib/worker/task.rb
Normal file
4
lib/worker/task.rb
Normal file
@@ -0,0 +1,4 @@
|
||||
module W3DHubLauncher
|
||||
class Task
|
||||
end
|
||||
end
|
||||
0
lib/worker/tasks/install_application.rb
Normal file
0
lib/worker/tasks/install_application.rb
Normal file
0
lib/worker/tasks/repair_application.rb
Normal file
0
lib/worker/tasks/repair_application.rb
Normal file
0
lib/worker/tasks/uninstall_application.rb
Normal file
0
lib/worker/tasks/uninstall_application.rb
Normal file
0
lib/worker/tasks/update_application.rb
Normal file
0
lib/worker/tasks/update_application.rb
Normal file
0
lib/worker/w3dhub_api.rb
Normal file
0
lib/worker/w3dhub_api.rb
Normal file
Reference in New Issue
Block a user