mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-12-02 15:21:15 -07:00
Start class layouts for backups and plugins API
This commit is contained in:
parent
58289a7b45
commit
32e2723c26
4 changed files with 99 additions and 0 deletions
29
cura/Backups/Backup.py
Normal file
29
cura/Backups/Backup.py
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
# Copyright (c) 2018 Ultimaker B.V.
|
||||
# Cura is released under the terms of the LGPLv3 or higher.
|
||||
|
||||
|
||||
class Backup:
|
||||
"""
|
||||
The backup class holds all data about a backup.
|
||||
It is also responsible for reading and writing the zip file to the user data folder.
|
||||
"""
|
||||
|
||||
def __init__(self):
|
||||
self.generated = False # type: bool
|
||||
self.backup_id = None # type: str
|
||||
self.target_cura_version = None # type: str
|
||||
self.zip_file = None
|
||||
self.meta_data = None # type: dict
|
||||
|
||||
def getZipFile(self):
|
||||
pass
|
||||
|
||||
def getMetaData(self):
|
||||
pass
|
||||
|
||||
def create(self):
|
||||
self.generated = True
|
||||
pass
|
||||
|
||||
def restore(self):
|
||||
pass
|
||||
Loading…
Add table
Add a link
Reference in a new issue