Expand description
The store: where QCode’s settings, workspaces and profiles live on disk.
Six things live here, and each of them is readable without ever panicking:
HostDirsholds the default store location, which the framework works out.Configis the application’scode.conf, checked and repaired by aSchema.WorkspaceIdturns a display name into a name every file system accepts.Storecreates and reads the folder tree of the store and its workspaces.Sessionrecords which workspaces and tabs were open, so they can be opened again.Registryrecords the containers QCode started, so they can be stopped once no QCode is open.
Every loader answers with a Loaded: the part that could be used, plus a
Diagnostic for each problem, pointing at the file, line and column where it is.
Structs§
- Config
- QCode’s settings file.
- Host
Dirs - The places of the machine the wizard offers a store from.
- Loaded
- What could be read, together with everything that was wrong with it.
- Registered
- A container QCode started, and the engine it started it with.
- Registry
- The containers QCode started, in the order it first started them.
- Session
- The workspaces that were open, in the order the rail showed them.
- Session
Tab - One tab of a saved session.
- Session
Workspace - One workspace of a saved session, with its tabs in the order they were shown.
- Store
- A store directory: the workspaces and profiles of one installation.
- Workspace
Entry - One workspace folder as it was found on disk.
- Workspace
File - The contents of a workspace’s
workspace.qcode. - Workspace
Id - The name a workspace has on disk: lower-case ASCII letters and digits, separated by
-. - Workspace
Paths - Where everything of one workspace is.
- Workspace
Profile - One profile a workspace carries, as
workspace.qcoderecords it.
Enums§
- NewWorkspace
Error - Why a new workspace could not be made.
- OnClose
- What happens to QCode’s containers once no QCode is open any more.
- Platform
- The operating system the paths are resolved for.
- Session
TabKind - What a tab of a saved session opens.
- Setup
Step - The step of the setup wizard the application stopped at.
- Workspace
IdError - Why a display name or a stored identifier cannot be used.
Constants§
- APP
- QCode’s id in the family: its settings file is
code.confand its other files are undercode/. - APP_
TITLE - QCode’s name in its family, as the person reads it: the store is the folder of this name under the family’s folder in Documents.
- PREFIX
- What every container QCode creates is called by, and the one thing that lets a name into the
list:
crate::engine::namesbuilds every container name on it.
Functions§
- add_
profile - Records in the workspace at
pathsthat it carries the profilename, added onadded, and answers with the file as it now stands. - remove_
profile - Records in the workspace at
pathsthat it no longer carries the profilename, because the profile was deleted, and answers with the file as it now stands. - set_
backup_ assets - Records in the workspace at
pathswhether its backup takesAssets/too, and answers with the file as it now stands. The file is read again first, as forset_backup_skip, and written only when the choice changed. - set_
backup_ skip - Records in the workspace at
pathsthat its backup leaveskeysout, or takes them in again whenskipis false, and answers with the file as it now stands.