Rewrite the presets system to add some additional options later.

This commit is contained in:
Damiano Galassi committed 2017-08-28 12:48:27 +02:00
1 parent 05f27e845a
commit f8c861df15
14 files changed
+350 -250

No files matched your search

+43
View File
@@ -0,0 +1,43 @@
//
// QueuePreset.swift
// Subler
//
// Created by Damiano Galassi on 21/08/2017.
//
import Foundation
class QueuePreset: NSObject, Preset {
let title: String
let options: [String:Any]
let version: Int
var changed: Bool
var pathExtension: String {
return "sbqueuepreset"
}
init(title: String, options: [String:Any]) {
self.title = title
self.options = options
self.changed = true
self.version = 2
}
// MARK: NSCoding
static var supportsSecureCoding: Bool {
return true
}
func encode(with aCoder: NSCoder) {
}
required init?(coder aDecoder: NSCoder) {
fatalError()
}
}