qTe Docs — Collections & Archive
Collections & Archive
Collection management, export/import, merge modes, and the recycle bin
Collections
Collections group related encoded items (Symphs) together by a shared GUID. Each collection
has a name, description, tags, and category. Collections are stored in collections.json
inside the qte_offsets folder and optionally synced to AT Proto.
Collection Operations
| Operation | Description |
| Create | New collection with name, description, tags, and category |
| Add Item | Associate a Symph's metadata GUID with the collection |
| Remove Item | Disassociate a Symph from the collection |
| Search | Filter collections by name, tag, or category |
| Detail View | Show all items in a collection with metadata |
| Delete | Remove collection definition (items remain in offsets) |
Collection Types
The CollectionTypes class defines the available collection type categories,
each with a Material Design icon identifier.
Standard Types
- Documents
- Images
- Audio
- Video
- Archives
Custom Types
- User-defined categories
- Custom Material Design icon
- Tag-based grouping
- GUID-based filtering
Archive System
The archive system allows exporting and importing collections of encoded data as ZIP archives.
Archives contain offset files, metadata, and an ArchiveManifest that describes the contents.
ArchiveManifest
The manifest describes the archive contents: version, creation date, item count, total size,
and a list of all included Symph identifiers with their metadata.
ArchiveValidator
Validates archive integrity before import: checks manifest structure, verifies all referenced
files exist in the ZIP, and validates metadata format.
Merge Modes
When importing an archive that contains items already present locally, the merge mode determines behavior:
| Mode | Behavior |
| Skip | Skip items that already exist locally (default, safest) |
| Overwrite | Replace local items with imported versions |
| Merge | Keep both — import creates new entries alongside existing ones |
Recycle Bin
The RecycleBin provides soft-delete with restore capability. Deleted items are moved to
a recycle folder and tracked in a JSON index. Items can be restored to their original location or
permanently deleted.
RecycleBin Operations
| Operation | Description |
Recycle(path) | Move file to recycle folder, add to index |
Restore(id) | Move file back to original location |
Delete(id) | Permanently delete a recycled item |
EmptyBin() | Permanently delete all recycled items |
GetItems() | List all items currently in the recycle bin |