diff --git a/Box/Box.swift b/Box/Box.swift new file mode 100644 index 0000000..0fb0da5 --- /dev/null +++ b/Box/Box.swift @@ -0,0 +1,33 @@ +// Copyright (c) 2014 Rob Rix. All rights reserved. + +/// Wraps a type `T` in a reference type. +/// +/// Typically this is used to work around limitations of value types (for example, the lack of codegen for recursive value types and type-parameterized enums with >1 case). It is also useful for sharing a single (presumably large) value without copying it. +public final class Box: BoxType, CustomStringConvertible { + /// Initializes a `Box` with the given value. + public init(_ value: T) { + self.value = value + } + + + /// Constructs a `Box` with the given `value`. + public class func unit(value: T) -> Box { + return Box(value) + } + + + /// The (immutable) value wrapped by the receiver. + public let value: T + + /// Constructs a new Box by transforming `value` by `f`. + public func map(@noescape f: T -> U) -> Box { + return Box(f(value)) + } + + + // MARK: Printable + + public var description: String { + return String(value) + } +} diff --git a/Box/BoxType.swift b/Box/BoxType.swift new file mode 100644 index 0000000..78a08d0 --- /dev/null +++ b/Box/BoxType.swift @@ -0,0 +1,46 @@ +// Copyright (c) 2014 Rob Rix. All rights reserved. + +// MARK: BoxType + +/// The type conformed to by all boxes. +public protocol BoxType { + /// The type of the wrapped value. + typealias Value + + /// Initializes an intance of the type with a value. + init(_ value: Value) + + /// The wrapped value. + var value: Value { get } +} + +/// The type conformed to by mutable boxes. +public protocol MutableBoxType: BoxType { + /// The (mutable) wrapped value. + var value: Value { get set } +} + + +// MARK: Equality + +/// Equality of `BoxType`s of `Equatable` types. +/// +/// We cannot declare that e.g. `Box` conforms to `Equatable`, so this is a relatively ad hoc definition. +public func == (lhs: B, rhs: B) -> Bool { + return lhs.value == rhs.value +} + +/// Inequality of `BoxType`s of `Equatable` types. +/// +/// We cannot declare that e.g. `Box` conforms to `Equatable`, so this is a relatively ad hoc definition. +public func != (lhs: B, rhs: B) -> Bool { + return lhs.value != rhs.value +} + + +// MARK: Map + +/// Maps the value of a box into a new box. +public func map(v: B, @noescape f: B.Value -> C.Value) -> C { + return C(f(v.value)) +} diff --git a/Box/MutableBox.swift b/Box/MutableBox.swift new file mode 100644 index 0000000..0e434b6 --- /dev/null +++ b/Box/MutableBox.swift @@ -0,0 +1,27 @@ +// Copyright (c) 2014 Rob Rix. All rights reserved. + +/// Wraps a type `T` in a mutable reference type. +/// +/// While this, like `Box` could be used to work around limitations of value types, it is much more useful for sharing a single mutable value such that mutations are shared. +/// +/// As with all mutable state, this should be used carefully, for example as an optimization, rather than a default design choice. Most of the time, `Box` will suffice where any `BoxType` is needed. +public final class MutableBox: MutableBoxType, CustomStringConvertible { + /// Initializes a `MutableBox` with the given value. + public init(_ value: T) { + self.value = value + } + + /// The (mutable) value wrapped by the receiver. + public var value: T + + /// Constructs a new MutableBox by transforming `value` by `f`. + public func map(@noescape f: T -> U) -> MutableBox { + return MutableBox(f(value)) + } + + // MARK: Printable + + public var description: String { + return String(value) + } +} diff --git a/Commandant/ArgumentParser.swift b/Commandant/ArgumentParser.swift new file mode 100644 index 0000000..cbf3b1d --- /dev/null +++ b/Commandant/ArgumentParser.swift @@ -0,0 +1,189 @@ +// +// ArgumentParser.swift +// Commandant +// +// Created by Justin Spahr-Summers on 2014-11-21. +// Copyright (c) 2014 Carthage. All rights reserved. +// + +import Foundation + +/// Represents an argument passed on the command line. +private enum RawArgument: Equatable { + /// A key corresponding to an option (e.g., `verbose` for `--verbose`). + case Key(String) + + /// A value, either associated with an option or passed as a positional + /// argument. + case Value(String) + + /// One or more flag arguments (e.g 'r' and 'f' for `-rf`) + case Flag(Set) +} + +private func ==(lhs: RawArgument, rhs: RawArgument) -> Bool { + switch (lhs, rhs) { + case let (.Key(left), .Key(right)): + return left == right + + case let (.Value(left), .Value(right)): + return left == right + + case let (.Flag(left), .Flag(right)): + return left == right + + default: + return false + } +} + +extension RawArgument: CustomStringConvertible { + private var description: String { + switch self { + case let .Key(key): + return "--\(key)" + + case let .Value(value): + return "\"\(value)\"" + + case let .Flag(flags): + return "-\(String(flags))" + } + } +} + +/// Destructively parses a list of command-line arguments. +public final class ArgumentParser { + /// The remaining arguments to be extracted, in their raw form. + private var rawArguments: [RawArgument] = [] + + /// Initializes the generator from a simple list of command-line arguments. + public init(_ arguments: [String]) { + // The first instance of `--` terminates the option list. + let params = split(arguments, maxSplit: 1, allowEmptySlices: true) { $0 == "--" } + + // Parse out the keyed and flag options. + let options = params.first! + rawArguments.extend(options.map { arg in + if arg.hasPrefix("-") { + // Do we have `--{key}` or `-{flags}`. + let opt = dropFirst(arg.characters) + return String(opt).hasPrefix("-") ? .Key(String(dropFirst(opt))) : .Flag(Set(opt)) + } else { + return .Value(arg) + } + }) + + // Remaining arguments are all positional parameters. + if params.count == 2 { + let positional = params.last! + rawArguments.extend(Array(positional.map { .Value($0) })) + } + } + + /// Returns whether the given key was enabled or disabled, or nil if it + /// was not given at all. + /// + /// If the key is found, it is then removed from the list of arguments + /// remaining to be parsed. + internal func consumeBooleanKey(key: String) -> Bool? { + let oldArguments = rawArguments + rawArguments.removeAll() + + var result: Bool? + for arg in oldArguments { + if arg == .Key(key) { + result = true + } else if arg == .Key("no-\(key)") { + result = false + } else { + rawArguments.append(arg) + } + } + + return result + } + + /// Returns the value associated with the given flag, or nil if the flag was + /// not specified. If the key is presented, but no value was given, an error + /// is returned. + /// + /// If a value is found, the key and the value are both removed from the + /// list of arguments remaining to be parsed. + internal func consumeValueForKey(key: String) -> Result> { + let oldArguments = rawArguments + rawArguments.removeAll() + + var foundValue: String? + argumentLoop: for var index = 0; index < oldArguments.count; index++ { + let arg = oldArguments[index] + + if arg == .Key(key) { + if ++index < oldArguments.count { + switch oldArguments[index] { + case let .Value(value): + foundValue = value + continue argumentLoop + + default: + break + } + } + + return .Failure(missingArgumentError("--\(key)")) + } else { + rawArguments.append(arg) + } + } + + return .Success(foundValue) + } + + /// Returns the next positional argument that hasn't yet been returned, or + /// nil if there are no more positional arguments. + internal func consumePositionalArgument() -> String? { + for var index = 0; index < rawArguments.count; index++ { + switch rawArguments[index] { + case let .Value(value): + rawArguments.removeAtIndex(index) + return value + + default: + break + } + } + + return nil + } + + /// Returns whether the given key was specified and removes it from the + /// list of arguments remaining. + internal func consumeKey(key: String) -> Bool { + let oldArguments = rawArguments + rawArguments = oldArguments.filter { $0 != .Key(key) } + + return rawArguments.count < oldArguments.count + } + + /// Returns whether the given flag was specified and removes it from the + /// list of arguments remaining. + internal func consumeBooleanFlag(flag: Character) -> Bool { + for (index, arg) in rawArguments.enumerate() { + switch arg { + case var .Flag(flags) where flags.contains(flag): + flags.remove(flag) + if flags.isEmpty { + rawArguments.removeAtIndex(index) + } else { + rawArguments[index] = .Flag(flags) + } + return true + + default: + break + } + } + + return false + } +} diff --git a/Commandant/Command.swift b/Commandant/Command.swift new file mode 100644 index 0000000..3c94eab --- /dev/null +++ b/Commandant/Command.swift @@ -0,0 +1,137 @@ +// +// Command.swift +// Commandant +// +// Created by Justin Spahr-Summers on 2014-10-10. +// Copyright (c) 2014 Carthage. All rights reserved. +// + +import Foundation + +/// Represents a subcommand that can be executed with its own set of arguments. +public protocol CommandType { + typealias ClientError + + /// The action that users should specify to use this subcommand (e.g., + /// `help`). + var verb: String { get } + + /// A human-readable, high-level description of what this command is used + /// for. + var function: String { get } + + /// Runs this subcommand in the given mode. + func run(mode: CommandMode) -> Result<(), CommandantError> +} + +/// A type-erased CommandType. +public struct CommandOf: CommandType { + public let verb: String + public let function: String + private let runClosure: CommandMode -> Result<(), CommandantError> + + /// Creates a command that wraps another. + public init(_ command: C) { + verb = command.verb + function = command.function + runClosure = { mode in command.run(mode) } + } + + public func run(mode: CommandMode) -> Result<(), CommandantError> { + return runClosure(mode) + } +} + +/// Describes the "mode" in which a command should run. +public enum CommandMode { + /// Options should be parsed from the given command-line arguments. + case Arguments(ArgumentParser) + + /// Each option should record its usage information in an error, for + /// presentation to the user. + case Usage +} + +/// Maintains the list of commands available to run. +public final class CommandRegistry { + private var commandsByVerb: [String: CommandOf] = [:] + + /// All available commands. + public var commands: [CommandOf] { + return commandsByVerb.values.sort { return $0.verb < $1.verb } + } + + public init() {} + + /// Registers the given command, making it available to run. + /// + /// If another command was already registered with the same `verb`, it will + /// be overwritten. + public func register(command: C) { + commandsByVerb[command.verb] = CommandOf(command) + } + + /// Runs the command corresponding to the given verb, passing it the given + /// arguments. + /// + /// Returns the results of the execution, or nil if no such command exists. + public func runCommand(verb: String, arguments: [String]) -> Result<(), CommandantError>? { + return self[verb]?.run(.Arguments(ArgumentParser(arguments))) + } + + /// Returns the command matching the given verb, or nil if no such command + /// is registered. + public subscript(verb: String) -> CommandOf? { + return commandsByVerb[verb] + } +} + +extension CommandRegistry { + /// Hands off execution to the CommandRegistry, by parsing Process.arguments + /// and then running whichever command has been identified in the argument + /// list. + /// + /// If the chosen command executes successfully, the process will exit with + /// a successful exit code. + /// + /// If the chosen command fails, the provided error handler will be invoked, + /// then the process will exit with a failure exit code. + /// + /// If a matching command could not be found or a usage error occurred, + /// a helpful error message will be written to `stderr`, then the process + /// will exit with a failure error code. + @noreturn public func main(defaultVerb defaultVerb: String, errorHandler: ClientError -> ()) { + var arguments = Process.arguments + assert(arguments.count >= 1) + + // Extract the executable name. + let executableName = arguments.first! + arguments.removeAtIndex(0) + + let verb = arguments.first ?? defaultVerb + if arguments.count > 0 { + // Remove the command name. + arguments.removeAtIndex(0) + } + + switch runCommand(verb, arguments: arguments) { + case .Some(.Success): + exit(EXIT_SUCCESS) + + case let .Some(.Failure(error)): + switch error { + case let .UsageError(description): + fputs(description + "\n", stderr) + + case let .CommandError(error): + errorHandler(error) + } + + exit(EXIT_FAILURE) + + case .None: + fputs("Unrecognized command: '\(verb)'. See `\(executableName) help`.\n", stderr) + exit(EXIT_FAILURE) + } + } +} diff --git a/Commandant/Commandant.h b/Commandant/Commandant.h new file mode 100644 index 0000000..4507251 --- /dev/null +++ b/Commandant/Commandant.h @@ -0,0 +1,17 @@ +// +// Commandant.h +// Commandant +// +// Created by Justin Spahr-Summers on 2014-11-21. +// Copyright (c) 2014 Carthage. All rights reserved. +// + +#import + +//! Project version number for Commandant. +FOUNDATION_EXPORT double CommandantVersionNumber; + +//! Project version string for Commandant. +FOUNDATION_EXPORT const unsigned char CommandantVersionString[]; + +// In this header, you should import all the public headers of your framework using statements like #import diff --git a/Commandant/Errors.swift b/Commandant/Errors.swift new file mode 100644 index 0000000..21d7b47 --- /dev/null +++ b/Commandant/Errors.swift @@ -0,0 +1,114 @@ +// +// Errors.swift +// Commandant +// +// Created by Justin Spahr-Summers on 2014-10-24. +// Copyright (c) 2014 Carthage. All rights reserved. +// + +import Foundation + +/// Possible errors that can originate from Commandant. +/// +/// `ClientError` should be the type of error (if any) that can occur when +/// running commands. +public enum CommandantError: ErrorType { + /// An option was used incorrectly. + case UsageError(description: String) + + /// An error occurred while running a command. + case CommandError(ClientError) +} + +extension CommandantError: CustomStringConvertible { + public var description: String { + switch self { + case let .UsageError(description): + return description + + case let .CommandError(error): + return String(error) + } + } +} + +/// Used to represent that a ClientError will never occur. +internal enum NoError {} + +/// Constructs an `InvalidArgument` error that indicates a missing value for +/// the argument by the given name. +internal func missingArgumentError(argumentName: String) -> CommandantError { + let description = "Missing argument for \(argumentName)" + return .UsageError(description: description) +} + +/// Constructs an error by combining the example of key (and value, if applicable) +/// with the usage description. +internal func informativeUsageError(keyValueExample: String, usage: String) -> CommandantError { + let lines = usage.componentsSeparatedByCharactersInSet(NSCharacterSet.newlineCharacterSet()) + + return .UsageError(description: lines.reduce(keyValueExample) { previous, value in + return previous + "\n\t" + value + }) +} + +/// Constructs an error that describes how to use the option, with the given +/// example of key (and value, if applicable) usage. +internal func informativeUsageError(keyValueExample: String, option: Option) -> CommandantError { + if option.defaultValue != nil { + return informativeUsageError("[\(keyValueExample)]", usage: option.usage) + } else { + return informativeUsageError(keyValueExample, usage: option.usage) + } +} + +/// Constructs an error that describes how to use the option. +internal func informativeUsageError(option: Option) -> CommandantError { + var example = "" + + if let key = option.key { + example += "--\(key) " + } + + var valueExample = "" + if let defaultValue = option.defaultValue { + valueExample = "\(defaultValue)" + } + + if valueExample.isEmpty { + example += "(\(T.name))" + } else { + example += valueExample + } + + return informativeUsageError(example, option: option) +} + +/// Constructs an error that describes how to use the given boolean option. +internal func informativeUsageError(option: Option) -> CommandantError { + precondition(option.key != nil) + + let key = option.key! + + if let defaultValue = option.defaultValue { + return informativeUsageError((defaultValue ? "--no-\(key)" : "--\(key)"), option: option) + } else { + return informativeUsageError("--(no-)\(key)", option: option) + } +} + +/// Combines the text of the two errors, if they're both `UsageError`s. +/// Otherwise, uses whichever one is not (biased toward the left). +internal func combineUsageErrors(lhs: CommandantError, rhs: CommandantError) -> CommandantError { + switch (lhs, rhs) { + case let (.UsageError(left), .UsageError(right)): + let combinedDescription = "\(left)\n\n\(right)" + return .UsageError(description: combinedDescription) + + case (.UsageError, _): + return rhs + + case (_, .UsageError), (_, _): + return lhs + } +} diff --git a/Commandant/HelpCommand.swift b/Commandant/HelpCommand.swift new file mode 100644 index 0000000..283bb86 --- /dev/null +++ b/Commandant/HelpCommand.swift @@ -0,0 +1,77 @@ +// +// HelpCommand.swift +// Commandant +// +// Created by Justin Spahr-Summers on 2014-10-10. +// Copyright (c) 2014 Carthage. All rights reserved. +// + +import Foundation + +/// A basic implementation of a `help` command, using information available in a +/// `CommandRegistry`. +/// +/// If you want to use this command, initialize it with the registry, then add +/// it to that same registry: +/// +/// let commands: CommandRegistry = … +/// let helpCommand = HelpCommand(registry: commands) +/// commands.register(helpCommand) +public struct HelpCommand: CommandType { + public let verb = "help" + public let function = "Display general or command-specific help" + + private let registry: CommandRegistry + + /// Initializes the command to provide help from the given registry of + /// commands. + public init(registry: CommandRegistry) { + self.registry = registry + } + + public func run(mode: CommandMode) -> Result<(), CommandantError> { + return HelpOptions.evaluate(mode) + .flatMap { options in + if let verb = options.verb { + if let command = self.registry[verb] { + print(command.function + "\n") + return command.run(.Usage) + } else { + fputs("Unrecognized command: '\(verb)'\n", stderr) + } + } + + print("Available commands:\n") + + let maxVerbLength = self.registry.commands.map { $0.verb.characters.count }.maxElement() ?? 0 + + for command in self.registry.commands { + let padding = Repeat(count: maxVerbLength - command.verb.characters.count, repeatedValue: " ") + + var formattedVerb = command.verb + formattedVerb.extend(padding) + + print(" \(formattedVerb) \(command.function)") + } + + return .Success(()) + } + } +} + +private struct HelpOptions: OptionsType { + let verb: String? + + init(verb: String?) { + self.verb = verb + } + + static func create(verb: String) -> HelpOptions { + return self.init(verb: (verb == "" ? nil : verb)) + } + + static func evaluate(m: CommandMode) -> Result> { + return create + <*> m <| Option(defaultValue: "", usage: "the command to display help for") + } +} diff --git a/Commandant/Info.plist b/Commandant/Info.plist new file mode 100644 index 0000000..54c722d --- /dev/null +++ b/Commandant/Info.plist @@ -0,0 +1,28 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + FMWK + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + $(CURRENT_PROJECT_VERSION) + NSHumanReadableCopyright + Copyright © 2014 Carthage. All rights reserved. + NSPrincipalClass + + + diff --git a/Commandant/Option.swift b/Commandant/Option.swift new file mode 100644 index 0000000..bfbf7d7 --- /dev/null +++ b/Commandant/Option.swift @@ -0,0 +1,254 @@ +// +// Option.swift +// Commandant +// +// Created by Justin Spahr-Summers on 2014-11-21. +// Copyright (c) 2014 Carthage. All rights reserved. +// + +import Foundation + +/// Represents a record of options for a command, which can be parsed from +/// a list of command-line arguments. +/// +/// This is most helpful when used in conjunction with the `Option` and `Switch` +/// types, and `<*>` and `<|` combinators. +/// +/// Example: +/// +/// struct LogOptions: OptionsType { +/// let verbosity: Int +/// let outputFilename: String +/// let logName: String +/// +/// static func create(verbosity: Int)(outputFilename: String)(logName: String) -> LogOptions { +/// return LogOptions(verbosity: verbosity, outputFilename: outputFilename, logName: logName) +/// } +/// +/// static func evaluate(m: CommandMode) -> Result { +/// return create +/// <*> m <| Option(key: "verbose", defaultValue: 0, usage: "the verbosity level with which to read the logs") +/// <*> m <| Option(key: "outputFilename", defaultValue: "", usage: "a file to print output to, instead of stdout") +/// <*> m <| Switch(flag: "d", key: "delete", defaultValue: false, usage: "delete the logs when finished") +/// <*> m <| Option(usage: "the log to read") +/// } +/// } +public protocol OptionsType { + typealias ClientError + + /// Evaluates this set of options in the given mode. + /// + /// Returns the parsed options or a `UsageError`. + static func evaluate(m: CommandMode) -> Result> +} + +/// Describes an option that can be provided on the command line. +public struct Option { + /// The key that controls this option. For example, a key of `verbose` would + /// be used for a `--verbose` option. + /// + /// If this is nil, this option will not have a corresponding flag, and must + /// be specified as a plain value at the end of the argument list. + /// + /// This must be non-nil for a boolean option. + public let key: String? + + /// The default value for this option. This is the value that will be used + /// if the option is never explicitly specified on the command line. + /// + /// If this is nil, this option is always required. + public let defaultValue: T? + + /// A human-readable string describing the purpose of this option. This will + /// be shown in help messages. + /// + /// For boolean operations, this should describe the effect of _not_ using + /// the default value (i.e., what will happen if you disable/enable the flag + /// differently from the default). + public let usage: String + + public init(key: String? = nil, defaultValue: T? = nil, usage: String) { + self.key = key + self.defaultValue = defaultValue + self.usage = usage + } + + /// Constructs an `InvalidArgument` error that describes how the option was + /// used incorrectly. `value` should be the invalid value given by the user. + private func invalidUsageError(value: String) -> CommandantError { + let description = "Invalid value for '\(self)': \(value)" + return .UsageError(description: description) + } +} + +extension Option: CustomStringConvertible { + public var description: String { + if let key = key { + return "--\(key)" + } else { + return usage + } + } +} + +/// Represents a value that can be converted from a command-line argument. +public protocol ArgumentType { + /// A human-readable name for this type. + static var name: String { get } + + /// Attempts to parse a value from the given command-line argument. + static func fromString(string: String) -> Self? +} + +extension Int: ArgumentType { + public static let name = "integer" + + public static func fromString(string: String) -> Int? { + return Int(string) + } +} + +extension UInt64: ArgumentType { + public static let name = "integer" + + public static func fromString(string: String) -> UInt64? { + return UInt64(string, radix: 10) + } +} + +extension String: ArgumentType { + public static let name = "string" + + public static func fromString(string: String) -> String? { + return string + } +} + +// Inspired by the Argo library: +// https://github.com/thoughtbot/Argo +/* + Copyright (c) 2014 thoughtbot, inc. + + MIT License + + Permission is hereby granted, free of charge, to any person obtaining + a copy of this software and associated documentation files (the + "Software"), to deal in the Software without restriction, including + without limitation the rights to use, copy, modify, merge, publish, + distribute, sublicense, and/or sell copies of the Software, and to + permit persons to whom the Software is furnished to do so, subject to + the following conditions: + + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE + LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION + OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION + WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +*/ +infix operator <*> { + associativity left +} + +infix operator <| { + associativity left + precedence 150 +} + +/// Applies `f` to the value in the given result. +/// +/// In the context of command-line option parsing, this is used to chain +/// together the parsing of multiple arguments. See OptionsType for an example. +public func <*> (f: T -> U, value: Result>) -> Result> { + return value.map(f) +} + +/// Applies the function in `f` to the value in the given result. +/// +/// In the context of command-line option parsing, this is used to chain +/// together the parsing of multiple arguments. See OptionsType for an example. +public func <*> (f: Result<(T -> U), CommandantError>, value: Result>) -> Result> { + switch (f, value) { + case let (.Failure(left), .Failure(right)): + return .Failure(combineUsageErrors(left, rhs: right)) + + case let (.Failure(left), .Success): + return .Failure(left) + + case let (.Success, .Failure(right)): + return .Failure(right) + + case let (.Success(f), .Success(value)): + let newValue = f(value) + return .Success(newValue) + } +} + +/// Evaluates the given option in the given mode. +/// +/// If parsing command line arguments, and no value was specified on the command +/// line, the option's `defaultValue` is used. +public func <| (mode: CommandMode, option: Option) -> Result> { + switch mode { + case let .Arguments(arguments): + var stringValue: String? + if let key = option.key { + switch arguments.consumeValueForKey(key) { + case let .Success(value): + stringValue = value + + case let .Failure(error): + switch error { + case let .UsageError(description): + return .Failure(.UsageError(description: description)) + + case .CommandError: + fatalError("CommandError should be impossible when parameterized over NoError") + } + } + } else { + stringValue = arguments.consumePositionalArgument() + } + + if let stringValue = stringValue { + if let value = T.fromString(stringValue) { + return .Success(value) + } + + return .Failure(option.invalidUsageError(stringValue)) + } else if let defaultValue = option.defaultValue { + return .Success(defaultValue) + } else { + return .Failure(missingArgumentError(option.description)) + } + + case .Usage: + return .Failure(informativeUsageError(option)) + } +} + +/// Evaluates the given boolean option in the given mode. +/// +/// If parsing command line arguments, and no value was specified on the command +/// line, the option's `defaultValue` is used. +public func <| (mode: CommandMode, option: Option) -> Result> { + precondition(option.key != nil) + + switch mode { + case let .Arguments(arguments): + if let value = arguments.consumeBooleanKey(option.key!) { + return .Success(value) + } else if let defaultValue = option.defaultValue { + return .Success(defaultValue) + } else { + return .Failure(missingArgumentError(option.description)) + } + + case .Usage: + return .Failure(informativeUsageError(option)) + } +} diff --git a/Commandant/Switch.swift b/Commandant/Switch.swift new file mode 100644 index 0000000..58193b7 --- /dev/null +++ b/Commandant/Switch.swift @@ -0,0 +1,62 @@ +// +// Switch.swift +// Commandant +// +// Created by Neil Pankey on 3/31/15. +// Copyright (c) 2015 Carthage. All rights reserved. +// + +/// Describes a parameterless command line flag that defaults to false and can only +/// be switched on. Canonical examples include `--force` and `--recurse`. +/// +/// For a boolean toggle that can be enabled and disabled use `Option`. +public struct Switch { + /// The key that enables this switch. For example, a key of `verbose` would be + /// used for a `--verbose` option. + public let key: String + + /// Optional single letter flag that enables this switch. For example, `-v` would + /// be used as a shorthand for `--verbose`. + /// + /// Multiple flags can be grouped together as a single argument and will split + /// when parsing (e.g. `rm -rf` treats 'r' and 'f' as inidividual flags). + public let flag: Character? + + /// A human-readable string describing the purpose of this option. This will + /// be shown in help messages. + public let usage: String + + public init(flag: Character? = nil, key: String, usage: String) { + self.flag = flag + self.key = key + self.usage = usage + } +} + +extension Switch: CustomStringConvertible { + public var description: String { + var options = "--\(key)" + if let flag = self.flag { + options += "|-\(flag)" + } + return options + } +} + +/// Evaluates the given boolean switch in the given mode. +/// +/// If parsing command line arguments, and no value was specified on the command +/// line, the option's `defaultValue` is used. +public func <| (mode: CommandMode, option: Switch) -> Result> { + switch mode { + case let .Arguments(arguments): + var enabled = arguments.consumeKey(option.key) + if let flag = option.flag { + enabled = arguments.consumeBooleanFlag(flag) + } + return .Success(enabled) + + case .Usage: + return .Failure(informativeUsageError(option.description, usage: option.usage)) + } +} diff --git a/Result/Result.h b/Result/Result.h new file mode 100644 index 0000000..40ea96c --- /dev/null +++ b/Result/Result.h @@ -0,0 +1,7 @@ +// Copyright (c) 2015 Rob Rix. All rights reserved. + +/// Project version number for Result. +extern double ResultVersionNumber; + +/// Project version string for Result. +extern const unsigned char ResultVersionString[]; \ No newline at end of file diff --git a/Result/Result.swift b/Result/Result.swift new file mode 100644 index 0000000..6315976 --- /dev/null +++ b/Result/Result.swift @@ -0,0 +1,238 @@ +// Copyright (c) 2015 Rob Rix. All rights reserved. + +/// An enum representing either a failure with an explanatory error, or a success with a result value. +public enum Result: ResultType, CustomStringConvertible, CustomDebugStringConvertible { + case Success(T) + case Failure(Error) + + // MARK: Constructors + + /// Constructs a success wrapping a `value`. + public init(value: T) { + self = .Success(value) + } + + /// Constructs a failure wrapping an `error`. + public init(error: Error) { + self = .Failure(error) + } + + /// Constructs a result from an Optional, failing with `Error` if `nil` + public init(_ value: T?, @autoclosure failWith: () -> Error) { + self = value.map(Result.Success) ?? .Failure(failWith()) + } + + /// Constructs a result from a function that uses `throw`, failing with `Error` if throws + public init(@autoclosure _ f: () throws -> T) { + do { + self = .Success(try f()) + } catch { + self = .Failure(error as! Error) + } + } + + + // MARK: Deconstruction + + /// Returns the value from `Success` Results or `throw`s the error + public func dematerialize() throws -> T { + switch self { + case let .Success(value): + return value + case let .Failure(error): + throw error + } + } + + /// Case analysis for Result. + /// + /// Returns the value produced by applying `ifFailure` to `Failure` Results, or `ifSuccess` to `Success` Results. + public func analysis(@noescape ifSuccess ifSuccess: T -> Result, @noescape ifFailure: Error -> Result) -> Result { + switch self { + case let .Success(value): + return ifSuccess(value) + case let .Failure(value): + return ifFailure(value) + } + } + + + // MARK: Higher-order functions + + /// Returns a new Result by mapping `Success`es’ values using `transform`, or re-wrapping `Failure`s’ errors. + public func map(@noescape transform: T -> U) -> Result { + return flatMap { .Success(transform($0)) } + } + + /// Returns the result of applying `transform` to `Success`es’ values, or re-wrapping `Failure`’s errors. + public func flatMap(@noescape transform: T -> Result) -> Result { + return analysis( + ifSuccess: transform, + ifFailure: Result.Failure) + } + + /// Returns `self.value` if this result is a .Success, or the given value otherwise. Equivalent with `??` + public func recover(@autoclosure value: () -> T) -> T { + return self.value ?? value() + } + + /// Returns this result if it is a .Success, or the given result otherwise. Equivalent with `??` + public func recoverWith(@autoclosure result: () -> Result) -> Result { + return analysis( + ifSuccess: { _ in self }, + ifFailure: { _ in result() }) + } + + /// Transform a function from one that uses `throw` to one that returns a `Result` + // public static func materialize(f: T throws -> U) -> T -> Result { + // return { x in + // do { + // return .Success(try f(x)) + // } catch { + // return .Failure(error) + // } + // } + // } + + + // MARK: Errors + + /// The domain for errors constructed by Result. + public static var errorDomain: String { return "com.antitypical.Result" } + + /// The userInfo key for source functions in errors constructed by Result. + public static var functionKey: String { return "\(errorDomain).function" } + + /// The userInfo key for source file paths in errors constructed by Result. + public static var fileKey: String { return "\(errorDomain).file" } + + /// The userInfo key for source file line numbers in errors constructed by Result. + public static var lineKey: String { return "\(errorDomain).line" } + + /// Constructs an error. + public static func error(message: String? = nil, function: String = __FUNCTION__, file: String = __FILE__, line: Int = __LINE__) -> NSError { + var userInfo: [String: AnyObject] = [ + functionKey: function, + fileKey: file, + lineKey: line, + ] + + if let message = message { + userInfo[NSLocalizedDescriptionKey] = message + } + + return NSError(domain: errorDomain, code: 0, userInfo: userInfo) + } + + + // MARK: CustomStringConvertible + + public var description: String { + return analysis( + ifSuccess: { ".Success(\($0))" }, + ifFailure: { ".Failure(\($0))" }) + } + + + // MARK: CustomDebugStringConvertible + + public var debugDescription: String { + return description + } +} + + +/// Returns `true` if `left` and `right` are both `Success`es and their values are equal, or if `left` and `right` are both `Failure`s and their errors are equal. +public func == (left: Result, right: Result) -> Bool { + if let left = left.value, right = right.value { + return left == right + } else if let left = left.error, right = right.error { + return left == right + } + return false +} + +/// Returns `true` if `left` and `right` represent different cases, or if they represent the same case but different values. +public func != (left: Result, right: Result) -> Bool { + return !(left == right) +} + + +/// Returns the value of `left` if it is a `Success`, or `right` otherwise. Short-circuits. +public func ?? (left: Result, @autoclosure right: () -> T) -> T { + return left.recover(right()) +} + +/// Returns `left` if it is a `Success`es, or `right` otherwise. Short-circuits. +public func ?? (left: Result, @autoclosure right: () -> Result) -> Result { + return left.recoverWith(right()) +} + +// MARK: - Derive result from failable closure + +// Disable until http://www.openradar.me/21341337 is fixed. +//public func materialize(f: () throws -> T) -> Result { +// do { +// return .Success(try f()) +// } catch { +// return .Failure(error) +// } +//} + +// MARK: - Cocoa API conveniences + +/// Constructs a Result with the result of calling `try` with an error pointer. +/// +/// This is convenient for wrapping Cocoa API which returns an object or `nil` + an error, by reference. e.g.: +/// +/// Result.try { NSData(contentsOfURL: URL, options: .DataReadingMapped, error: $0) } +public func `try`(function: String = __FUNCTION__, file: String = __FILE__, line: Int = __LINE__, `try`: NSErrorPointer -> T?) -> Result { + var error: NSError? + return `try`(&error).map(Result.Success) ?? .Failure(error ?? Result.error(function: function, file: file, line: line)) +} + +/// Constructs a Result with the result of calling `try` with an error pointer. +/// +/// This is convenient for wrapping Cocoa API which returns a `Bool` + an error, by reference. e.g.: +/// +/// Result.try { NSFileManager.defaultManager().removeItemAtURL(URL, error: $0) } +public func `try`(function: String = __FUNCTION__, file: String = __FILE__, line: Int = __LINE__, `try`: NSErrorPointer -> Bool) -> Result<(), NSError> { + var error: NSError? + return `try`(&error) ? + .Success(()) + : .Failure(error ?? Result<(), NSError>.error(function: function, file: file, line: line)) +} + + +// MARK: - Operators + +infix operator >>- { +// Left-associativity so that chaining works like you’d expect, and for consistency with Haskell, Runes, swiftz, etc. +associativity left + +// Higher precedence than function application, but lower than function composition. +precedence 100 +} + +infix operator &&& { +/// Same associativity as &&. +associativity left + +/// Same precedence as &&. +precedence 120 +} + +/// Returns the result of applying `transform` to `Success`es’ values, or re-wrapping `Failure`’s errors. +/// +/// This is a synonym for `flatMap`. +public func >>- (result: Result, @noescape transform: T -> Result) -> Result { + return result.flatMap(transform) +} + +/// Returns a Result with a tuple of `left` and `right` values if both are `Success`es, or re-wrapping the error of the earlier `Failure`. +public func &&& (left: Result, @autoclosure right: () -> Result) -> Result<(T, U), Error> { + return left.flatMap { left in right().map { right in (left, right) } } +} + + +import Foundation \ No newline at end of file diff --git a/Result/ResultType.swift b/Result/ResultType.swift new file mode 100644 index 0000000..fb2f898 --- /dev/null +++ b/Result/ResultType.swift @@ -0,0 +1,31 @@ +// Copyright (c) 2015 Rob Rix. All rights reserved. + +/// A type that can represent either failure with an error or success with a result value. +public protocol ResultType { + typealias Value + typealias Error: ErrorType + + /// Constructs a successful result wrapping a `value`. + init(value: Value) + + /// Constructs a failed result wrapping an `error`. + init(error: Error) + + /// Case analysis for ResultType. + /// + /// Returns the value produced by appliying `ifFailure` to the error if self represents a failure, or `ifSuccess` to the result value if self represents a success. + func analysis(@noescape ifSuccess ifSuccess: Value -> U, @noescape ifFailure: Error -> U) -> U +} + +public extension ResultType { + + /// Returns the value if self represents a success, `nil` otherwise. + var value: Value? { + return analysis(ifSuccess: { $0 }, ifFailure: { _ in nil }) + } + + /// Returns the error if self represents a failure, `nil` otherwise. + var error: Error? { + return analysis(ifSuccess: { _ in nil }, ifFailure: { $0 }) + } +} \ No newline at end of file diff --git a/mas-cli.xcodeproj/project.pbxproj b/mas-cli.xcodeproj/project.pbxproj index d34e110..bc51c0a 100644 --- a/mas-cli.xcodeproj/project.pbxproj +++ b/mas-cli.xcodeproj/project.pbxproj @@ -8,6 +8,19 @@ /* Begin PBXBuildFile section */ ED031A7C1B5127C00097692E /* main.swift in Sources */ = {isa = PBXBuildFile; fileRef = ED031A7B1B5127C00097692E /* main.swift */; }; + ED128ECA1B6C2A0B00C4050A /* ArgumentParser.swift in Sources */ = {isa = PBXBuildFile; fileRef = ED128EC11B6C2A0B00C4050A /* ArgumentParser.swift */; }; + ED128ECB1B6C2A0B00C4050A /* Command.swift in Sources */ = {isa = PBXBuildFile; fileRef = ED128EC21B6C2A0B00C4050A /* Command.swift */; }; + ED128ECC1B6C2A0B00C4050A /* Errors.swift in Sources */ = {isa = PBXBuildFile; fileRef = ED128EC41B6C2A0B00C4050A /* Errors.swift */; }; + ED128ECD1B6C2A0B00C4050A /* HelpCommand.swift in Sources */ = {isa = PBXBuildFile; fileRef = ED128EC51B6C2A0B00C4050A /* HelpCommand.swift */; }; + ED128ECE1B6C2A0B00C4050A /* Option.swift in Sources */ = {isa = PBXBuildFile; fileRef = ED128EC71B6C2A0B00C4050A /* Option.swift */; }; + ED128ECF1B6C2A0B00C4050A /* Switch.swift in Sources */ = {isa = PBXBuildFile; fileRef = ED128EC81B6C2A0B00C4050A /* Switch.swift */; }; + ED128ED31B6C2AA200C4050A /* Result.swift in Sources */ = {isa = PBXBuildFile; fileRef = ED128ED21B6C2AA200C4050A /* Result.swift */; }; + ED128ED51B6C2AB700C4050A /* ResultType.swift in Sources */ = {isa = PBXBuildFile; fileRef = ED128ED41B6C2AB700C4050A /* ResultType.swift */; }; + ED128EDC1B6C2B4400C4050A /* Box.swift in Sources */ = {isa = PBXBuildFile; fileRef = ED128ED91B6C2B4400C4050A /* Box.swift */; }; + ED128EDD1B6C2B4400C4050A /* BoxType.swift in Sources */ = {isa = PBXBuildFile; fileRef = ED128EDA1B6C2B4400C4050A /* BoxType.swift */; }; + ED128EDE1B6C2B4400C4050A /* MutableBox.swift in Sources */ = {isa = PBXBuildFile; fileRef = ED128EDB1B6C2B4400C4050A /* MutableBox.swift */; }; + EDEAA0C01B51CE6200F2FC3F /* StoreFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = EDEAA0BF1B51CE6200F2FC3F /* StoreFoundation.framework */; }; + EDEAA17D1B5C579100F2FC3F /* CommerceKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = EDEAA17C1B5C579100F2FC3F /* CommerceKit.framework */; }; /* End PBXBuildFile section */ /* Begin PBXCopyFilesBuildPhase section */ @@ -25,6 +38,206 @@ /* Begin PBXFileReference section */ ED031A781B5127C00097692E /* mas-cli */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = "mas-cli"; sourceTree = BUILT_PRODUCTS_DIR; }; ED031A7B1B5127C00097692E /* main.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = main.swift; sourceTree = ""; }; + ED128EC11B6C2A0B00C4050A /* ArgumentParser.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ArgumentParser.swift; sourceTree = ""; }; + ED128EC21B6C2A0B00C4050A /* Command.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Command.swift; sourceTree = ""; }; + ED128EC31B6C2A0B00C4050A /* Commandant.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Commandant.h; sourceTree = ""; }; + ED128EC41B6C2A0B00C4050A /* Errors.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Errors.swift; sourceTree = ""; }; + ED128EC51B6C2A0B00C4050A /* HelpCommand.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = HelpCommand.swift; sourceTree = ""; }; + ED128EC61B6C2A0B00C4050A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + ED128EC71B6C2A0B00C4050A /* Option.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Option.swift; sourceTree = ""; }; + ED128EC81B6C2A0B00C4050A /* Switch.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Switch.swift; sourceTree = ""; }; + ED128ED11B6C2A8B00C4050A /* Result.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Result.h; sourceTree = ""; }; + ED128ED21B6C2AA200C4050A /* Result.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Result.swift; sourceTree = ""; }; + ED128ED41B6C2AB700C4050A /* ResultType.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ResultType.swift; sourceTree = ""; }; + ED128ED81B6C2B4400C4050A /* Box.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Box.h; sourceTree = ""; }; + ED128ED91B6C2B4400C4050A /* Box.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Box.swift; sourceTree = ""; }; + ED128EDA1B6C2B4400C4050A /* BoxType.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = BoxType.swift; sourceTree = ""; }; + ED128EDB1B6C2B4400C4050A /* MutableBox.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MutableBox.swift; sourceTree = ""; }; + EDEAA0BF1B51CE6200F2FC3F /* StoreFoundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = StoreFoundation.framework; path = /System/Library/PrivateFrameworks/StoreFoundation.framework; sourceTree = ""; }; + EDEAA0C31B51CEE400F2FC3F /* CDStructures.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CDStructures.h; sourceTree = ""; }; + EDEAA0C41B51CEE400F2FC3F /* CKBook.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CKBook.h; sourceTree = ""; }; + EDEAA0C51B51CEE400F2FC3F /* CKBookFetchCoverImageOperation.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CKBookFetchCoverImageOperation.h; sourceTree = ""; }; + EDEAA0C61B51CEE400F2FC3F /* CKDAAPPurchasedItem.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CKDAAPPurchasedItem.h; sourceTree = ""; }; + EDEAA0C71B51CEE400F2FC3F /* CKDockMessaging.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CKDockMessaging.h; sourceTree = ""; }; + EDEAA0C81B51CEE400F2FC3F /* CKLocalization.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CKLocalization.h; sourceTree = ""; }; + EDEAA0C91B51CEE400F2FC3F /* CKRootHelper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CKRootHelper.h; sourceTree = ""; }; + EDEAA0CA1B51CEE400F2FC3F /* CKSoftwareProduct.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CKSoftwareProduct.h; sourceTree = ""; }; + EDEAA0CB1B51CEE400F2FC3F /* CKUpdate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CKUpdate.h; sourceTree = ""; }; + EDEAA0CC1B51CEE400F2FC3F /* ISAccountService-Protocol.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "ISAccountService-Protocol.h"; sourceTree = ""; }; + EDEAA0CD1B51CEE400F2FC3F /* ISAccountStoreObserver-Protocol.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "ISAccountStoreObserver-Protocol.h"; sourceTree = ""; }; + EDEAA0CE1B51CEE400F2FC3F /* ISAppleIDLookupOperation.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ISAppleIDLookupOperation.h; sourceTree = ""; }; + EDEAA0CF1B51CEE400F2FC3F /* ISAssetService-Protocol.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "ISAssetService-Protocol.h"; sourceTree = ""; }; + EDEAA0D01B51CEE400F2FC3F /* ISAuthenticationChallenge.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ISAuthenticationChallenge.h; sourceTree = ""; }; + EDEAA0D11B51CEE400F2FC3F /* ISAuthenticationContext.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ISAuthenticationContext.h; sourceTree = ""; }; + EDEAA0D21B51CEE400F2FC3F /* ISAuthenticationResponse.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ISAuthenticationResponse.h; sourceTree = ""; }; + EDEAA0D31B51CEE400F2FC3F /* ISAvailableUpdatesObserver-Protocol.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "ISAvailableUpdatesObserver-Protocol.h"; sourceTree = ""; }; + EDEAA0D41B51CEE400F2FC3F /* ISBookLibraryObserver-Protocol.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "ISBookLibraryObserver-Protocol.h"; sourceTree = ""; }; + EDEAA0D51B51CEE400F2FC3F /* ISCertificate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ISCertificate.h; sourceTree = ""; }; + EDEAA0D61B51CEE400F2FC3F /* ISCodeSignatureOperation.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ISCodeSignatureOperation.h; sourceTree = ""; }; + EDEAA0D71B51CEE400F2FC3F /* ISDataProvider.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ISDataProvider.h; sourceTree = ""; }; + EDEAA0D81B51CEE400F2FC3F /* ISDelayedInvocationRecorder.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ISDelayedInvocationRecorder.h; sourceTree = ""; }; + EDEAA0D91B51CEE400F2FC3F /* ISDevice.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ISDevice.h; sourceTree = ""; }; + EDEAA0DA1B51CEE400F2FC3F /* ISDialog.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ISDialog.h; sourceTree = ""; }; + EDEAA0DB1B51CEE400F2FC3F /* ISDialogButton.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ISDialogButton.h; sourceTree = ""; }; + EDEAA0DC1B51CEE400F2FC3F /* ISDialogDelegate-Protocol.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "ISDialogDelegate-Protocol.h"; sourceTree = ""; }; + EDEAA0DD1B51CEE400F2FC3F /* ISDialogDelegateProxy.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ISDialogDelegateProxy.h; sourceTree = ""; }; + EDEAA0DE1B51CEE400F2FC3F /* ISDialogOperation.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ISDialogOperation.h; sourceTree = ""; }; + EDEAA0DF1B51CEE400F2FC3F /* ISDialogTextField.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ISDialogTextField.h; sourceTree = ""; }; + EDEAA0E01B51CEE400F2FC3F /* ISDownloadQueueObserver-Protocol.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "ISDownloadQueueObserver-Protocol.h"; sourceTree = ""; }; + EDEAA0E11B51CEE400F2FC3F /* ISDownloadService-Protocol.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "ISDownloadService-Protocol.h"; sourceTree = ""; }; + EDEAA0E21B51CEE400F2FC3F /* ISFetchIconOperation.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ISFetchIconOperation.h; sourceTree = ""; }; + EDEAA0E31B51CEE400F2FC3F /* ISInAppService-Protocol.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "ISInAppService-Protocol.h"; sourceTree = ""; }; + EDEAA0E41B51CEE400F2FC3F /* ISInvocationRecorder.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ISInvocationRecorder.h; sourceTree = ""; }; + EDEAA0E51B51CEE400F2FC3F /* ISJSONProvider.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ISJSONProvider.h; sourceTree = ""; }; + EDEAA0E61B51CEE400F2FC3F /* ISMainThreadInvocationRecorder.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ISMainThreadInvocationRecorder.h; sourceTree = ""; }; + EDEAA0E71B51CEE400F2FC3F /* ISManagedRestrictions.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ISManagedRestrictions.h; sourceTree = ""; }; + EDEAA0E81B51CEE400F2FC3F /* ISOperation.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ISOperation.h; sourceTree = ""; }; + EDEAA0E91B51CEE400F2FC3F /* ISOperationDelegate-Protocol.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "ISOperationDelegate-Protocol.h"; sourceTree = ""; }; + EDEAA0EA1B51CEE400F2FC3F /* ISOperationQueue.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ISOperationQueue.h; sourceTree = ""; }; + EDEAA0EB1B51CEE400F2FC3F /* ISOSUpdateProgressObserver-Protocol.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "ISOSUpdateProgressObserver-Protocol.h"; sourceTree = ""; }; + EDEAA0EC1B51CEE400F2FC3F /* ISOSUpdateScanObserver-Protocol.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "ISOSUpdateScanObserver-Protocol.h"; sourceTree = ""; }; + EDEAA0ED1B51CEE400F2FC3F /* ISPropertyListProvider.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ISPropertyListProvider.h; sourceTree = ""; }; + EDEAA0EE1B51CEE400F2FC3F /* ISServerAuthenticationOperation.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ISServerAuthenticationOperation.h; sourceTree = ""; }; + EDEAA0EF1B51CEE400F2FC3F /* ISServiceClientInterface.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ISServiceClientInterface.h; sourceTree = ""; }; + EDEAA0F01B51CEE400F2FC3F /* ISServiceDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ISServiceDelegate.h; sourceTree = ""; }; + EDEAA0F11B51CEE400F2FC3F /* ISServiceProxy.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ISServiceProxy.h; sourceTree = ""; }; + EDEAA0F21B51CEE400F2FC3F /* ISServiceRemoteObject-Protocol.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "ISServiceRemoteObject-Protocol.h"; sourceTree = ""; }; + EDEAA0F31B51CEE400F2FC3F /* ISSignInPrompt.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ISSignInPrompt.h; sourceTree = ""; }; + EDEAA0F41B51CEE400F2FC3F /* ISSignInPromptResponse.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ISSignInPromptResponse.h; sourceTree = ""; }; + EDEAA0F51B51CEE400F2FC3F /* ISSignInPromptSettings.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ISSignInPromptSettings.h; sourceTree = ""; }; + EDEAA0F61B51CEE400F2FC3F /* ISSingleton-Protocol.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "ISSingleton-Protocol.h"; sourceTree = ""; }; + EDEAA0F71B51CEE400F2FC3F /* ISStoreAccount.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ISStoreAccount.h; sourceTree = ""; }; + EDEAA0F81B51CEE400F2FC3F /* ISStoreAuthenticationChallenge.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ISStoreAuthenticationChallenge.h; sourceTree = ""; }; + EDEAA0F91B51CEE400F2FC3F /* ISStoreClient.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ISStoreClient.h; sourceTree = ""; }; + EDEAA0FA1B51CEE400F2FC3F /* ISStoreURLOperation.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ISStoreURLOperation.h; sourceTree = ""; }; + EDEAA0FB1B51CEE400F2FC3F /* ISStoreVersion.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ISStoreVersion.h; sourceTree = ""; }; + EDEAA0FC1B51CEE400F2FC3F /* ISTransactionService-Protocol.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "ISTransactionService-Protocol.h"; sourceTree = ""; }; + EDEAA0FD1B51CEE400F2FC3F /* ISUIHostProtocol-Protocol.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "ISUIHostProtocol-Protocol.h"; sourceTree = ""; }; + EDEAA0FE1B51CEE400F2FC3F /* ISUIService-Protocol.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "ISUIService-Protocol.h"; sourceTree = ""; }; + EDEAA0FF1B51CEE400F2FC3F /* ISUIServiceClientRemoteObject-Protocol.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "ISUIServiceClientRemoteObject-Protocol.h"; sourceTree = ""; }; + EDEAA1001B51CEE400F2FC3F /* ISUniqueOperationContext.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ISUniqueOperationContext.h; sourceTree = ""; }; + EDEAA1011B51CEE400F2FC3F /* ISUniqueOperationManager.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ISUniqueOperationManager.h; sourceTree = ""; }; + EDEAA1021B51CEE400F2FC3F /* ISUpdateDelegate-Protocol.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "ISUpdateDelegate-Protocol.h"; sourceTree = ""; }; + EDEAA1031B51CEE400F2FC3F /* ISURLAuthenticationChallenge.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ISURLAuthenticationChallenge.h; sourceTree = ""; }; + EDEAA1041B51CEE400F2FC3F /* ISURLBagObserver-Protocol.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "ISURLBagObserver-Protocol.h"; sourceTree = ""; }; + EDEAA1051B51CEE400F2FC3F /* ISURLOperation.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ISURLOperation.h; sourceTree = ""; }; + EDEAA1061B51CEE400F2FC3F /* ISURLOperationDelegate-Protocol.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "ISURLOperationDelegate-Protocol.h"; sourceTree = ""; }; + EDEAA1071B51CEE400F2FC3F /* ISURLRequest.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ISURLRequest.h; sourceTree = ""; }; + EDEAA1081B51CEE400F2FC3F /* ISUserNotification.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ISUserNotification.h; sourceTree = ""; }; + EDEAA1091B51CEE400F2FC3F /* NSBundle-CommerceKit.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "NSBundle-CommerceKit.h"; sourceTree = ""; }; + EDEAA10A1B51CEE400F2FC3F /* NSCoding-Protocol.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "NSCoding-Protocol.h"; sourceTree = ""; }; + EDEAA10B1B51CEE400F2FC3F /* NSCopying-Protocol.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "NSCopying-Protocol.h"; sourceTree = ""; }; + EDEAA10C1B51CEE400F2FC3F /* NSData-AdoptionSerialNumber.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "NSData-AdoptionSerialNumber.h"; sourceTree = ""; }; + EDEAA10D1B51CEE400F2FC3F /* NSData-dataWithAuthorizationRef.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "NSData-dataWithAuthorizationRef.h"; sourceTree = ""; }; + EDEAA10E1B51CEE400F2FC3F /* NSData-SSDebug.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "NSData-SSDebug.h"; sourceTree = ""; }; + EDEAA10F1B51CEE400F2FC3F /* NSDictionary-ISPropertyListAdditions.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "NSDictionary-ISPropertyListAdditions.h"; sourceTree = ""; }; + EDEAA1101B51CEE400F2FC3F /* NSError-Authentication.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "NSError-Authentication.h"; sourceTree = ""; }; + EDEAA1111B51CEE400F2FC3F /* NSError-ISAdditions.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "NSError-ISAdditions.h"; sourceTree = ""; }; + EDEAA1121B51CEE400F2FC3F /* NSFileManager-ISAdditions.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "NSFileManager-ISAdditions.h"; sourceTree = ""; }; + EDEAA1131B51CEE400F2FC3F /* NSHTTPURLResponse-ISAdditions.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "NSHTTPURLResponse-ISAdditions.h"; sourceTree = ""; }; + EDEAA1141B51CEE400F2FC3F /* NSNumber-SSAdditions.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "NSNumber-SSAdditions.h"; sourceTree = ""; }; + EDEAA1151B51CEE400F2FC3F /* NSObject-ISInvocationAdditions.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "NSObject-ISInvocationAdditions.h"; sourceTree = ""; }; + EDEAA1161B51CEE400F2FC3F /* NSObject-Protocol.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "NSObject-Protocol.h"; sourceTree = ""; }; + EDEAA1171B51CEE400F2FC3F /* NSSecureCoding-Protocol.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "NSSecureCoding-Protocol.h"; sourceTree = ""; }; + EDEAA1181B51CEE400F2FC3F /* NSString-ISAdditions.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "NSString-ISAdditions.h"; sourceTree = ""; }; + EDEAA1191B51CEE400F2FC3F /* NSString-Sandbox.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "NSString-Sandbox.h"; sourceTree = ""; }; + EDEAA11A1B51CEE400F2FC3F /* NSString-SSAdditions.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "NSString-SSAdditions.h"; sourceTree = ""; }; + EDEAA11B1B51CEE400F2FC3F /* NSString-UniqueIdentifier.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "NSString-UniqueIdentifier.h"; sourceTree = ""; }; + EDEAA11C1B51CEE400F2FC3F /* NSURL-ISAdditions.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "NSURL-ISAdditions.h"; sourceTree = ""; }; + EDEAA11D1B51CEE400F2FC3F /* NSURLConnectionDelegate-Protocol.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "NSURLConnectionDelegate-Protocol.h"; sourceTree = ""; }; + EDEAA11E1B51CEE400F2FC3F /* NSURLResponse-ISAdditions.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "NSURLResponse-ISAdditions.h"; sourceTree = ""; }; + EDEAA11F1B51CEE400F2FC3F /* NSXPCListenerDelegate-Protocol.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "NSXPCListenerDelegate-Protocol.h"; sourceTree = ""; }; + EDEAA1201B51CEE400F2FC3F /* ReceiptInstallerProtocol-Protocol.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "ReceiptInstallerProtocol-Protocol.h"; sourceTree = ""; }; + EDEAA1211B51CEE400F2FC3F /* SSDownload.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SSDownload.h; sourceTree = ""; }; + EDEAA1221B51CEE400F2FC3F /* SSDownloadAsset.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SSDownloadAsset.h; sourceTree = ""; }; + EDEAA1231B51CEE400F2FC3F /* SSDownloadManifestResponse.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SSDownloadManifestResponse.h; sourceTree = ""; }; + EDEAA1241B51CEE400F2FC3F /* SSDownloadMetadata.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SSDownloadMetadata.h; sourceTree = ""; }; + EDEAA1251B51CEE400F2FC3F /* SSDownloadPhase.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SSDownloadPhase.h; sourceTree = ""; }; + EDEAA1261B51CEE400F2FC3F /* SSDownloadStatus.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SSDownloadStatus.h; sourceTree = ""; }; + EDEAA1271B51CEE400F2FC3F /* SSLogManager.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SSLogManager.h; sourceTree = ""; }; + EDEAA1281B51CEE400F2FC3F /* SSOperationProgress.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SSOperationProgress.h; sourceTree = ""; }; + EDEAA1291B51CEE400F2FC3F /* SSPurchase.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SSPurchase.h; sourceTree = ""; }; + EDEAA12A1B51CEE400F2FC3F /* SSPurchaseResponse.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SSPurchaseResponse.h; sourceTree = ""; }; + EDEAA12B1B51CEE400F2FC3F /* SSRequest.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SSRequest.h; sourceTree = ""; }; + EDEAA12C1B51CF8000F2FC3F /* mas-cli-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "mas-cli-Bridging-Header.h"; sourceTree = ""; }; + EDEAA12F1B5C576D00F2FC3F /* CDStructures.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CDStructures.h; sourceTree = ""; }; + EDEAA1301B5C576D00F2FC3F /* CKAccountAuthentication.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CKAccountAuthentication.h; sourceTree = ""; }; + EDEAA1311B5C576D00F2FC3F /* CKAccountStore.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CKAccountStore.h; sourceTree = ""; }; + EDEAA1321B5C576D00F2FC3F /* CKAccountStoreClient.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CKAccountStoreClient.h; sourceTree = ""; }; + EDEAA1331B5C576D00F2FC3F /* CKAppleIDAuthentication.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CKAppleIDAuthentication.h; sourceTree = ""; }; + EDEAA1341B5C576D00F2FC3F /* CKAppleIDCookie.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CKAppleIDCookie.h; sourceTree = ""; }; + EDEAA1351B5C576D00F2FC3F /* CKAppStoreLauncher.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CKAppStoreLauncher.h; sourceTree = ""; }; + EDEAA1361B5C576D00F2FC3F /* CKBag.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CKBag.h; sourceTree = ""; }; + EDEAA1371B5C576D00F2FC3F /* CKBagClient.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CKBagClient.h; sourceTree = ""; }; + EDEAA1381B5C576D00F2FC3F /* CKBookCache.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CKBookCache.h; sourceTree = ""; }; + EDEAA1391B5C576D00F2FC3F /* CKBookLibrary.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CKBookLibrary.h; sourceTree = ""; }; + EDEAA13A1B5C576D00F2FC3F /* CKBookLibraryClient.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CKBookLibraryClient.h; sourceTree = ""; }; + EDEAA13B1B5C576D00F2FC3F /* CKClientDispatch.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CKClientDispatch.h; sourceTree = ""; }; + EDEAA13C1B5C576D00F2FC3F /* CKDAAPPurchaseHistory.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CKDAAPPurchaseHistory.h; sourceTree = ""; }; + EDEAA13D1B5C576D00F2FC3F /* CKDAAPPurchaseHistoryClient.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CKDAAPPurchaseHistoryClient.h; sourceTree = ""; }; + EDEAA13E1B5C576D00F2FC3F /* CKDaemonPreferencesController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CKDaemonPreferencesController.h; sourceTree = ""; }; + EDEAA13F1B5C576D00F2FC3F /* CKDialogController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CKDialogController.h; sourceTree = ""; }; + EDEAA1401B5C576D00F2FC3F /* CKDownloadQueue.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CKDownloadQueue.h; sourceTree = ""; }; + EDEAA1411B5C576D00F2FC3F /* CKDownloadQueueClient.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CKDownloadQueueClient.h; sourceTree = ""; }; + EDEAA1421B5C576D00F2FC3F /* CKExtensionSearchController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CKExtensionSearchController.h; sourceTree = ""; }; + EDEAA1431B5C576D00F2FC3F /* CKFirmwareWarningSheet.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CKFirmwareWarningSheet.h; sourceTree = ""; }; + EDEAA1441B5C576D00F2FC3F /* CKItem.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CKItem.h; sourceTree = ""; }; + EDEAA1451B5C576D00F2FC3F /* CKItemArtworkImage.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CKItemArtworkImage.h; sourceTree = ""; }; + EDEAA1461B5C576D00F2FC3F /* CKItemLookupRequest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CKItemLookupRequest.h; sourceTree = ""; }; + EDEAA1471B5C576D00F2FC3F /* CKItemLookupResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CKItemLookupResponse.h; sourceTree = ""; }; + EDEAA1481B5C576D00F2FC3F /* CKItemTellAFriend.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CKItemTellAFriend.h; sourceTree = ""; }; + EDEAA1491B5C576D00F2FC3F /* CKiTunesAppleIDAuthentication.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CKiTunesAppleIDAuthentication.h; sourceTree = ""; }; + EDEAA14A1B5C576D00F2FC3F /* CKLaterAgent.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CKLaterAgent.h; sourceTree = ""; }; + EDEAA14B1B5C576D00F2FC3F /* CKLicenseAgreementSheet.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CKLicenseAgreementSheet.h; sourceTree = ""; }; + EDEAA14C1B5C576D00F2FC3F /* CKMachineAuthorization.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CKMachineAuthorization.h; sourceTree = ""; }; + EDEAA14D1B5C576D00F2FC3F /* CKPreflightURLRequest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CKPreflightURLRequest.h; sourceTree = ""; }; + EDEAA14E1B5C576D00F2FC3F /* CKPurchaseController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CKPurchaseController.h; sourceTree = ""; }; + EDEAA14F1B5C576D00F2FC3F /* CKPushNotificationManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CKPushNotificationManager.h; sourceTree = ""; }; + EDEAA1501B5C576D00F2FC3F /* CKRestoreDownloadsRequest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CKRestoreDownloadsRequest.h; sourceTree = ""; }; + EDEAA1511B5C576D00F2FC3F /* CKServiceInterface.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CKServiceInterface.h; sourceTree = ""; }; + EDEAA1521B5C576D00F2FC3F /* CKSoftwareMap.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CKSoftwareMap.h; sourceTree = ""; }; + EDEAA1531B5C576D00F2FC3F /* CKSoftwareMapObserver.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CKSoftwareMapObserver.h; sourceTree = ""; }; + EDEAA1541B5C576D00F2FC3F /* CKStoreClient.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CKStoreClient.h; sourceTree = ""; }; + EDEAA1551B5C576D00F2FC3F /* CKUpdateController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CKUpdateController.h; sourceTree = ""; }; + EDEAA1561B5C576D00F2FC3F /* CKUpdateControllerClient.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CKUpdateControllerClient.h; sourceTree = ""; }; + EDEAA1571B5C576D00F2FC3F /* CKUpToDate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CKUpToDate.h; sourceTree = ""; }; + EDEAA1581B5C576D00F2FC3F /* ISAccountStoreObserver-Protocol.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "ISAccountStoreObserver-Protocol.h"; sourceTree = ""; }; + EDEAA1591B5C576D00F2FC3F /* ISAppleIDCookie.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ISAppleIDCookie.h; sourceTree = ""; }; + EDEAA15A1B5C576D00F2FC3F /* ISAutomaticDownloadQueue.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ISAutomaticDownloadQueue.h; sourceTree = ""; }; + EDEAA15B1B5C576D00F2FC3F /* ISAvailableUpdatesObserver-Protocol.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "ISAvailableUpdatesObserver-Protocol.h"; sourceTree = ""; }; + EDEAA15C1B5C576D00F2FC3F /* ISBookLibraryObserver-Protocol.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "ISBookLibraryObserver-Protocol.h"; sourceTree = ""; }; + EDEAA15D1B5C576D00F2FC3F /* ISDevice-AppleConfigurator.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "ISDevice-AppleConfigurator.h"; sourceTree = ""; }; + EDEAA15E1B5C576D00F2FC3F /* ISDownloadQueueObserver-Protocol.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "ISDownloadQueueObserver-Protocol.h"; sourceTree = ""; }; + EDEAA15F1B5C576D00F2FC3F /* ISLoadURLBagOperation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ISLoadURLBagOperation.h; sourceTree = ""; }; + EDEAA1601B5C576D00F2FC3F /* ISOperationDelegate-Protocol.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "ISOperationDelegate-Protocol.h"; sourceTree = ""; }; + EDEAA1611B5C576D00F2FC3F /* ISOSUpdateProgressObserver-Protocol.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "ISOSUpdateProgressObserver-Protocol.h"; sourceTree = ""; }; + EDEAA1621B5C576D00F2FC3F /* ISOSUpdateScanObserver-Protocol.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "ISOSUpdateScanObserver-Protocol.h"; sourceTree = ""; }; + EDEAA1631B5C576D00F2FC3F /* ISProcessPropertyListOperation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ISProcessPropertyListOperation.h; sourceTree = ""; }; + EDEAA1641B5C576D00F2FC3F /* ISSingleton-Protocol.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "ISSingleton-Protocol.h"; sourceTree = ""; }; + EDEAA1651B5C576D00F2FC3F /* ISStoreURLOperation-CommerceKit.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "ISStoreURLOperation-CommerceKit.h"; sourceTree = ""; }; + EDEAA1661B5C576D00F2FC3F /* ISStoreURLOperationDelegate-Protocol.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "ISStoreURLOperationDelegate-Protocol.h"; sourceTree = ""; }; + EDEAA1671B5C576D00F2FC3F /* ISURLBag.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ISURLBag.h; sourceTree = ""; }; + EDEAA1681B5C576D00F2FC3F /* ISURLBagContext.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ISURLBagContext.h; sourceTree = ""; }; + EDEAA1691B5C576D00F2FC3F /* ISURLBagObserver-Protocol.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "ISURLBagObserver-Protocol.h"; sourceTree = ""; }; + EDEAA16A1B5C576D00F2FC3F /* ISURLCache.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ISURLCache.h; sourceTree = ""; }; + EDEAA16B1B5C576D00F2FC3F /* ISURLCacheGroup.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ISURLCacheGroup.h; sourceTree = ""; }; + EDEAA16C1B5C576D00F2FC3F /* ISURLOperationDelegate-Protocol.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "ISURLOperationDelegate-Protocol.h"; sourceTree = ""; }; + EDEAA16D1B5C576D00F2FC3F /* MBSetupAssistantDelegateConfiguration-Protocol.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "MBSetupAssistantDelegateConfiguration-Protocol.h"; sourceTree = ""; }; + EDEAA16E1B5C576D00F2FC3F /* NSArray-CKPushNotification.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSArray-CKPushNotification.h"; sourceTree = ""; }; + EDEAA16F1B5C576D00F2FC3F /* NSBundle-ISAdditions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSBundle-ISAdditions.h"; sourceTree = ""; }; + EDEAA1701B5C576D00F2FC3F /* NSCoding-Protocol.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSCoding-Protocol.h"; sourceTree = ""; }; + EDEAA1711B5C576D00F2FC3F /* NSCopying-Protocol.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSCopying-Protocol.h"; sourceTree = ""; }; + EDEAA1721B5C576D00F2FC3F /* NSMutableCopying-Protocol.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSMutableCopying-Protocol.h"; sourceTree = ""; }; + EDEAA1731B5C576D00F2FC3F /* NSObject-Protocol.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSObject-Protocol.h"; sourceTree = ""; }; + EDEAA1741B5C576D00F2FC3F /* NSProcessInfo-SuddenTerminaton.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSProcessInfo-SuddenTerminaton.h"; sourceTree = ""; }; + EDEAA1751B5C576D00F2FC3F /* NSURLConnectionDelegate-Protocol.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSURLConnectionDelegate-Protocol.h"; sourceTree = ""; }; + EDEAA1761B5C576D00F2FC3F /* NSWorkspace-InstalledApp.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSWorkspace-InstalledApp.h"; sourceTree = ""; }; + EDEAA1771B5C576D00F2FC3F /* SetupAssistantPlugin.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SetupAssistantPlugin.h; sourceTree = ""; }; + EDEAA1781B5C576D00F2FC3F /* SSMutableURLRequestProperties.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SSMutableURLRequestProperties.h; sourceTree = ""; }; + EDEAA1791B5C576D00F2FC3F /* SSRemoteNotification.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SSRemoteNotification.h; sourceTree = ""; }; + EDEAA17A1B5C576D00F2FC3F /* SSRestoreContentItem.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SSRestoreContentItem.h; sourceTree = ""; }; + EDEAA17B1B5C576D00F2FC3F /* SSURLRequestProperties.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SSURLRequestProperties.h; sourceTree = ""; }; + EDEAA17C1B5C579100F2FC3F /* CommerceKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CommerceKit.framework; path = /System/Library/PrivateFrameworks/CommerceKit.framework; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -32,6 +245,8 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( + EDEAA17D1B5C579100F2FC3F /* CommerceKit.framework in Frameworks */, + EDEAA0C01B51CE6200F2FC3F /* StoreFoundation.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -41,6 +256,11 @@ ED031A6F1B5127C00097692E = { isa = PBXGroup; children = ( + ED128ED61B6C2AF200C4050A /* Box */, + ED128ED01B6C2A7300C4050A /* Result */, + ED128EC91B6C2A0B00C4050A /* Commandant */, + EDFC76381B642A2E00D0DBD7 /* Frameworks */, + EDEAA0C11B51CEBD00F2FC3F /* Headers */, ED031A7A1B5127C00097692E /* mas-cli */, ED031A791B5127C00097692E /* Products */, ); @@ -58,10 +278,264 @@ isa = PBXGroup; children = ( ED031A7B1B5127C00097692E /* main.swift */, + EDEAA12C1B51CF8000F2FC3F /* mas-cli-Bridging-Header.h */, ); path = "mas-cli"; sourceTree = ""; }; + ED128EC91B6C2A0B00C4050A /* Commandant */ = { + isa = PBXGroup; + children = ( + ED128EC11B6C2A0B00C4050A /* ArgumentParser.swift */, + ED128EC21B6C2A0B00C4050A /* Command.swift */, + ED128EC31B6C2A0B00C4050A /* Commandant.h */, + ED128EC41B6C2A0B00C4050A /* Errors.swift */, + ED128EC51B6C2A0B00C4050A /* HelpCommand.swift */, + ED128EC61B6C2A0B00C4050A /* Info.plist */, + ED128EC71B6C2A0B00C4050A /* Option.swift */, + ED128EC81B6C2A0B00C4050A /* Switch.swift */, + ); + path = Commandant; + sourceTree = ""; + }; + ED128ED01B6C2A7300C4050A /* Result */ = { + isa = PBXGroup; + children = ( + ED128ED11B6C2A8B00C4050A /* Result.h */, + ED128ED21B6C2AA200C4050A /* Result.swift */, + ED128ED41B6C2AB700C4050A /* ResultType.swift */, + ); + path = Result; + sourceTree = ""; + }; + ED128ED61B6C2AF200C4050A /* Box */ = { + isa = PBXGroup; + children = ( + ED128ED81B6C2B4400C4050A /* Box.h */, + ED128ED91B6C2B4400C4050A /* Box.swift */, + ED128EDA1B6C2B4400C4050A /* BoxType.swift */, + ED128EDB1B6C2B4400C4050A /* MutableBox.swift */, + ); + path = Box; + sourceTree = ""; + }; + EDEAA0C11B51CEBD00F2FC3F /* Headers */ = { + isa = PBXGroup; + children = ( + EDEAA12E1B5C576D00F2FC3F /* CommerceKit.framework */, + EDEAA0C21B51CEC900F2FC3F /* StoreFoundation.framework */, + ); + name = Headers; + path = "mas-cli/Headers"; + sourceTree = ""; + }; + EDEAA0C21B51CEC900F2FC3F /* StoreFoundation.framework */ = { + isa = PBXGroup; + children = ( + EDEAA0C31B51CEE400F2FC3F /* CDStructures.h */, + EDEAA0C41B51CEE400F2FC3F /* CKBook.h */, + EDEAA0C51B51CEE400F2FC3F /* CKBookFetchCoverImageOperation.h */, + EDEAA0C61B51CEE400F2FC3F /* CKDAAPPurchasedItem.h */, + EDEAA0C71B51CEE400F2FC3F /* CKDockMessaging.h */, + EDEAA0C81B51CEE400F2FC3F /* CKLocalization.h */, + EDEAA0C91B51CEE400F2FC3F /* CKRootHelper.h */, + EDEAA0CA1B51CEE400F2FC3F /* CKSoftwareProduct.h */, + EDEAA0CB1B51CEE400F2FC3F /* CKUpdate.h */, + EDEAA0CC1B51CEE400F2FC3F /* ISAccountService-Protocol.h */, + EDEAA0CD1B51CEE400F2FC3F /* ISAccountStoreObserver-Protocol.h */, + EDEAA0CE1B51CEE400F2FC3F /* ISAppleIDLookupOperation.h */, + EDEAA0CF1B51CEE400F2FC3F /* ISAssetService-Protocol.h */, + EDEAA0D01B51CEE400F2FC3F /* ISAuthenticationChallenge.h */, + EDEAA0D11B51CEE400F2FC3F /* ISAuthenticationContext.h */, + EDEAA0D21B51CEE400F2FC3F /* ISAuthenticationResponse.h */, + EDEAA0D31B51CEE400F2FC3F /* ISAvailableUpdatesObserver-Protocol.h */, + EDEAA0D41B51CEE400F2FC3F /* ISBookLibraryObserver-Protocol.h */, + EDEAA0D51B51CEE400F2FC3F /* ISCertificate.h */, + EDEAA0D61B51CEE400F2FC3F /* ISCodeSignatureOperation.h */, + EDEAA0D71B51CEE400F2FC3F /* ISDataProvider.h */, + EDEAA0D81B51CEE400F2FC3F /* ISDelayedInvocationRecorder.h */, + EDEAA0D91B51CEE400F2FC3F /* ISDevice.h */, + EDEAA0DA1B51CEE400F2FC3F /* ISDialog.h */, + EDEAA0DB1B51CEE400F2FC3F /* ISDialogButton.h */, + EDEAA0DC1B51CEE400F2FC3F /* ISDialogDelegate-Protocol.h */, + EDEAA0DD1B51CEE400F2FC3F /* ISDialogDelegateProxy.h */, + EDEAA0DE1B51CEE400F2FC3F /* ISDialogOperation.h */, + EDEAA0DF1B51CEE400F2FC3F /* ISDialogTextField.h */, + EDEAA0E01B51CEE400F2FC3F /* ISDownloadQueueObserver-Protocol.h */, + EDEAA0E11B51CEE400F2FC3F /* ISDownloadService-Protocol.h */, + EDEAA0E21B51CEE400F2FC3F /* ISFetchIconOperation.h */, + EDEAA0E31B51CEE400F2FC3F /* ISInAppService-Protocol.h */, + EDEAA0E41B51CEE400F2FC3F /* ISInvocationRecorder.h */, + EDEAA0E51B51CEE400F2FC3F /* ISJSONProvider.h */, + EDEAA0E61B51CEE400F2FC3F /* ISMainThreadInvocationRecorder.h */, + EDEAA0E71B51CEE400F2FC3F /* ISManagedRestrictions.h */, + EDEAA0E81B51CEE400F2FC3F /* ISOperation.h */, + EDEAA0E91B51CEE400F2FC3F /* ISOperationDelegate-Protocol.h */, + EDEAA0EA1B51CEE400F2FC3F /* ISOperationQueue.h */, + EDEAA0EB1B51CEE400F2FC3F /* ISOSUpdateProgressObserver-Protocol.h */, + EDEAA0EC1B51CEE400F2FC3F /* ISOSUpdateScanObserver-Protocol.h */, + EDEAA0ED1B51CEE400F2FC3F /* ISPropertyListProvider.h */, + EDEAA0EE1B51CEE400F2FC3F /* ISServerAuthenticationOperation.h */, + EDEAA0EF1B51CEE400F2FC3F /* ISServiceClientInterface.h */, + EDEAA0F01B51CEE400F2FC3F /* ISServiceDelegate.h */, + EDEAA0F11B51CEE400F2FC3F /* ISServiceProxy.h */, + EDEAA0F21B51CEE400F2FC3F /* ISServiceRemoteObject-Protocol.h */, + EDEAA0F31B51CEE400F2FC3F /* ISSignInPrompt.h */, + EDEAA0F41B51CEE400F2FC3F /* ISSignInPromptResponse.h */, + EDEAA0F51B51CEE400F2FC3F /* ISSignInPromptSettings.h */, + EDEAA0F61B51CEE400F2FC3F /* ISSingleton-Protocol.h */, + EDEAA0F71B51CEE400F2FC3F /* ISStoreAccount.h */, + EDEAA0F81B51CEE400F2FC3F /* ISStoreAuthenticationChallenge.h */, + EDEAA0F91B51CEE400F2FC3F /* ISStoreClient.h */, + EDEAA0FA1B51CEE400F2FC3F /* ISStoreURLOperation.h */, + EDEAA0FB1B51CEE400F2FC3F /* ISStoreVersion.h */, + EDEAA0FC1B51CEE400F2FC3F /* ISTransactionService-Protocol.h */, + EDEAA0FD1B51CEE400F2FC3F /* ISUIHostProtocol-Protocol.h */, + EDEAA0FE1B51CEE400F2FC3F /* ISUIService-Protocol.h */, + EDEAA0FF1B51CEE400F2FC3F /* ISUIServiceClientRemoteObject-Protocol.h */, + EDEAA1001B51CEE400F2FC3F /* ISUniqueOperationContext.h */, + EDEAA1011B51CEE400F2FC3F /* ISUniqueOperationManager.h */, + EDEAA1021B51CEE400F2FC3F /* ISUpdateDelegate-Protocol.h */, + EDEAA1031B51CEE400F2FC3F /* ISURLAuthenticationChallenge.h */, + EDEAA1041B51CEE400F2FC3F /* ISURLBagObserver-Protocol.h */, + EDEAA1051B51CEE400F2FC3F /* ISURLOperation.h */, + EDEAA1061B51CEE400F2FC3F /* ISURLOperationDelegate-Protocol.h */, + EDEAA1071B51CEE400F2FC3F /* ISURLRequest.h */, + EDEAA1081B51CEE400F2FC3F /* ISUserNotification.h */, + EDEAA1091B51CEE400F2FC3F /* NSBundle-CommerceKit.h */, + EDEAA10A1B51CEE400F2FC3F /* NSCoding-Protocol.h */, + EDEAA10B1B51CEE400F2FC3F /* NSCopying-Protocol.h */, + EDEAA10C1B51CEE400F2FC3F /* NSData-AdoptionSerialNumber.h */, + EDEAA10D1B51CEE400F2FC3F /* NSData-dataWithAuthorizationRef.h */, + EDEAA10E1B51CEE400F2FC3F /* NSData-SSDebug.h */, + EDEAA10F1B51CEE400F2FC3F /* NSDictionary-ISPropertyListAdditions.h */, + EDEAA1101B51CEE400F2FC3F /* NSError-Authentication.h */, + EDEAA1111B51CEE400F2FC3F /* NSError-ISAdditions.h */, + EDEAA1121B51CEE400F2FC3F /* NSFileManager-ISAdditions.h */, + EDEAA1131B51CEE400F2FC3F /* NSHTTPURLResponse-ISAdditions.h */, + EDEAA1141B51CEE400F2FC3F /* NSNumber-SSAdditions.h */, + EDEAA1151B51CEE400F2FC3F /* NSObject-ISInvocationAdditions.h */, + EDEAA1161B51CEE400F2FC3F /* NSObject-Protocol.h */, + EDEAA1171B51CEE400F2FC3F /* NSSecureCoding-Protocol.h */, + EDEAA1181B51CEE400F2FC3F /* NSString-ISAdditions.h */, + EDEAA1191B51CEE400F2FC3F /* NSString-Sandbox.h */, + EDEAA11A1B51CEE400F2FC3F /* NSString-SSAdditions.h */, + EDEAA11B1B51CEE400F2FC3F /* NSString-UniqueIdentifier.h */, + EDEAA11C1B51CEE400F2FC3F /* NSURL-ISAdditions.h */, + EDEAA11D1B51CEE400F2FC3F /* NSURLConnectionDelegate-Protocol.h */, + EDEAA11E1B51CEE400F2FC3F /* NSURLResponse-ISAdditions.h */, + EDEAA11F1B51CEE400F2FC3F /* NSXPCListenerDelegate-Protocol.h */, + EDEAA1201B51CEE400F2FC3F /* ReceiptInstallerProtocol-Protocol.h */, + EDEAA1211B51CEE400F2FC3F /* SSDownload.h */, + EDEAA1221B51CEE400F2FC3F /* SSDownloadAsset.h */, + EDEAA1231B51CEE400F2FC3F /* SSDownloadManifestResponse.h */, + EDEAA1241B51CEE400F2FC3F /* SSDownloadMetadata.h */, + EDEAA1251B51CEE400F2FC3F /* SSDownloadPhase.h */, + EDEAA1261B51CEE400F2FC3F /* SSDownloadStatus.h */, + EDEAA1271B51CEE400F2FC3F /* SSLogManager.h */, + EDEAA1281B51CEE400F2FC3F /* SSOperationProgress.h */, + EDEAA1291B51CEE400F2FC3F /* SSPurchase.h */, + EDEAA12A1B51CEE400F2FC3F /* SSPurchaseResponse.h */, + EDEAA12B1B51CEE400F2FC3F /* SSRequest.h */, + ); + name = StoreFoundation.framework; + path = StoreFoundation; + sourceTree = ""; + }; + EDEAA12E1B5C576D00F2FC3F /* CommerceKit.framework */ = { + isa = PBXGroup; + children = ( + EDEAA12F1B5C576D00F2FC3F /* CDStructures.h */, + EDEAA1301B5C576D00F2FC3F /* CKAccountAuthentication.h */, + EDEAA1311B5C576D00F2FC3F /* CKAccountStore.h */, + EDEAA1321B5C576D00F2FC3F /* CKAccountStoreClient.h */, + EDEAA1331B5C576D00F2FC3F /* CKAppleIDAuthentication.h */, + EDEAA1341B5C576D00F2FC3F /* CKAppleIDCookie.h */, + EDEAA1351B5C576D00F2FC3F /* CKAppStoreLauncher.h */, + EDEAA1361B5C576D00F2FC3F /* CKBag.h */, + EDEAA1371B5C576D00F2FC3F /* CKBagClient.h */, + EDEAA1381B5C576D00F2FC3F /* CKBookCache.h */, + EDEAA1391B5C576D00F2FC3F /* CKBookLibrary.h */, + EDEAA13A1B5C576D00F2FC3F /* CKBookLibraryClient.h */, + EDEAA13B1B5C576D00F2FC3F /* CKClientDispatch.h */, + EDEAA13C1B5C576D00F2FC3F /* CKDAAPPurchaseHistory.h */, + EDEAA13D1B5C576D00F2FC3F /* CKDAAPPurchaseHistoryClient.h */, + EDEAA13E1B5C576D00F2FC3F /* CKDaemonPreferencesController.h */, + EDEAA13F1B5C576D00F2FC3F /* CKDialogController.h */, + EDEAA1401B5C576D00F2FC3F /* CKDownloadQueue.h */, + EDEAA1411B5C576D00F2FC3F /* CKDownloadQueueClient.h */, + EDEAA1421B5C576D00F2FC3F /* CKExtensionSearchController.h */, + EDEAA1431B5C576D00F2FC3F /* CKFirmwareWarningSheet.h */, + EDEAA1441B5C576D00F2FC3F /* CKItem.h */, + EDEAA1451B5C576D00F2FC3F /* CKItemArtworkImage.h */, + EDEAA1461B5C576D00F2FC3F /* CKItemLookupRequest.h */, + EDEAA1471B5C576D00F2FC3F /* CKItemLookupResponse.h */, + EDEAA1481B5C576D00F2FC3F /* CKItemTellAFriend.h */, + EDEAA1491B5C576D00F2FC3F /* CKiTunesAppleIDAuthentication.h */, + EDEAA14A1B5C576D00F2FC3F /* CKLaterAgent.h */, + EDEAA14B1B5C576D00F2FC3F /* CKLicenseAgreementSheet.h */, + EDEAA14C1B5C576D00F2FC3F /* CKMachineAuthorization.h */, + EDEAA14D1B5C576D00F2FC3F /* CKPreflightURLRequest.h */, + EDEAA14E1B5C576D00F2FC3F /* CKPurchaseController.h */, + EDEAA14F1B5C576D00F2FC3F /* CKPushNotificationManager.h */, + EDEAA1501B5C576D00F2FC3F /* CKRestoreDownloadsRequest.h */, + EDEAA1511B5C576D00F2FC3F /* CKServiceInterface.h */, + EDEAA1521B5C576D00F2FC3F /* CKSoftwareMap.h */, + EDEAA1531B5C576D00F2FC3F /* CKSoftwareMapObserver.h */, + EDEAA1541B5C576D00F2FC3F /* CKStoreClient.h */, + EDEAA1551B5C576D00F2FC3F /* CKUpdateController.h */, + EDEAA1561B5C576D00F2FC3F /* CKUpdateControllerClient.h */, + EDEAA1571B5C576D00F2FC3F /* CKUpToDate.h */, + EDEAA1581B5C576D00F2FC3F /* ISAccountStoreObserver-Protocol.h */, + EDEAA1591B5C576D00F2FC3F /* ISAppleIDCookie.h */, + EDEAA15A1B5C576D00F2FC3F /* ISAutomaticDownloadQueue.h */, + EDEAA15B1B5C576D00F2FC3F /* ISAvailableUpdatesObserver-Protocol.h */, + EDEAA15C1B5C576D00F2FC3F /* ISBookLibraryObserver-Protocol.h */, + EDEAA15D1B5C576D00F2FC3F /* ISDevice-AppleConfigurator.h */, + EDEAA15E1B5C576D00F2FC3F /* ISDownloadQueueObserver-Protocol.h */, + EDEAA15F1B5C576D00F2FC3F /* ISLoadURLBagOperation.h */, + EDEAA1601B5C576D00F2FC3F /* ISOperationDelegate-Protocol.h */, + EDEAA1611B5C576D00F2FC3F /* ISOSUpdateProgressObserver-Protocol.h */, + EDEAA1621B5C576D00F2FC3F /* ISOSUpdateScanObserver-Protocol.h */, + EDEAA1631B5C576D00F2FC3F /* ISProcessPropertyListOperation.h */, + EDEAA1641B5C576D00F2FC3F /* ISSingleton-Protocol.h */, + EDEAA1651B5C576D00F2FC3F /* ISStoreURLOperation-CommerceKit.h */, + EDEAA1661B5C576D00F2FC3F /* ISStoreURLOperationDelegate-Protocol.h */, + EDEAA1671B5C576D00F2FC3F /* ISURLBag.h */, + EDEAA1681B5C576D00F2FC3F /* ISURLBagContext.h */, + EDEAA1691B5C576D00F2FC3F /* ISURLBagObserver-Protocol.h */, + EDEAA16A1B5C576D00F2FC3F /* ISURLCache.h */, + EDEAA16B1B5C576D00F2FC3F /* ISURLCacheGroup.h */, + EDEAA16C1B5C576D00F2FC3F /* ISURLOperationDelegate-Protocol.h */, + EDEAA16D1B5C576D00F2FC3F /* MBSetupAssistantDelegateConfiguration-Protocol.h */, + EDEAA16E1B5C576D00F2FC3F /* NSArray-CKPushNotification.h */, + EDEAA16F1B5C576D00F2FC3F /* NSBundle-ISAdditions.h */, + EDEAA1701B5C576D00F2FC3F /* NSCoding-Protocol.h */, + EDEAA1711B5C576D00F2FC3F /* NSCopying-Protocol.h */, + EDEAA1721B5C576D00F2FC3F /* NSMutableCopying-Protocol.h */, + EDEAA1731B5C576D00F2FC3F /* NSObject-Protocol.h */, + EDEAA1741B5C576D00F2FC3F /* NSProcessInfo-SuddenTerminaton.h */, + EDEAA1751B5C576D00F2FC3F /* NSURLConnectionDelegate-Protocol.h */, + EDEAA1761B5C576D00F2FC3F /* NSWorkspace-InstalledApp.h */, + EDEAA1771B5C576D00F2FC3F /* SetupAssistantPlugin.h */, + EDEAA1781B5C576D00F2FC3F /* SSMutableURLRequestProperties.h */, + EDEAA1791B5C576D00F2FC3F /* SSRemoteNotification.h */, + EDEAA17A1B5C576D00F2FC3F /* SSRestoreContentItem.h */, + EDEAA17B1B5C576D00F2FC3F /* SSURLRequestProperties.h */, + ); + name = CommerceKit.framework; + path = CommerceKit; + sourceTree = ""; + }; + EDFC76381B642A2E00D0DBD7 /* Frameworks */ = { + isa = PBXGroup; + children = ( + EDEAA17C1B5C579100F2FC3F /* CommerceKit.framework */, + EDEAA0BF1B51CE6200F2FC3F /* StoreFoundation.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; /* End PBXGroup section */ /* Begin PBXNativeTarget section */ @@ -88,6 +562,7 @@ ED031A701B5127C00097692E /* Project object */ = { isa = PBXProject; attributes = { + LastSwiftUpdateCheck = 0700; LastUpgradeCheck = 0700; ORGANIZATIONNAME = "Andrew Naylor"; TargetAttributes = { @@ -118,7 +593,18 @@ isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; files = ( + ED128ECC1B6C2A0B00C4050A /* Errors.swift in Sources */, ED031A7C1B5127C00097692E /* main.swift in Sources */, + ED128EDE1B6C2B4400C4050A /* MutableBox.swift in Sources */, + ED128ECA1B6C2A0B00C4050A /* ArgumentParser.swift in Sources */, + ED128ECB1B6C2A0B00C4050A /* Command.swift in Sources */, + ED128ED51B6C2AB700C4050A /* ResultType.swift in Sources */, + ED128ECE1B6C2A0B00C4050A /* Option.swift in Sources */, + ED128ECD1B6C2A0B00C4050A /* HelpCommand.swift in Sources */, + ED128ED31B6C2AA200C4050A /* Result.swift in Sources */, + ED128ECF1B6C2A0B00C4050A /* Switch.swift in Sources */, + ED128EDD1B6C2B4400C4050A /* BoxType.swift in Sources */, + ED128EDC1B6C2B4400C4050A /* Box.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -142,7 +628,6 @@ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - COPY_PHASE_STRIP = NO; DEBUG_INFORMATION_FORMAT = dwarf; ENABLE_STRICT_OBJC_MSGSEND = YES; ENABLE_TESTABILITY = YES; @@ -160,10 +645,9 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - MACOSX_DEPLOYMENT_TARGET = 10.11; + MACOSX_DEPLOYMENT_TARGET = 10.9; MTL_ENABLE_DEBUG_INFO = YES; ONLY_ACTIVE_ARCH = YES; - SDKROOT = macosx; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; }; name = Debug; @@ -185,7 +669,6 @@ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - COPY_PHASE_STRIP = NO; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; ENABLE_NS_ASSERTIONS = NO; ENABLE_STRICT_OBJC_MSGSEND = YES; @@ -197,23 +680,32 @@ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; - MACOSX_DEPLOYMENT_TARGET = 10.11; + MACOSX_DEPLOYMENT_TARGET = 10.9; MTL_ENABLE_DEBUG_INFO = NO; - SDKROOT = macosx; }; name = Release; }; ED031A801B5127C00097692E /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { + FRAMEWORK_SEARCH_PATHS = ( + "$(inherited)", + "$(SYSTEM_LIBRARY_DIR)/PrivateFrameworks", + ); PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_OBJC_BRIDGING_HEADER = "mas-cli/mas-cli-Bridging-Header.h"; }; name = Debug; }; ED031A811B5127C00097692E /* Release */ = { isa = XCBuildConfiguration; buildSettings = { + FRAMEWORK_SEARCH_PATHS = ( + "$(inherited)", + "$(SYSTEM_LIBRARY_DIR)/PrivateFrameworks", + ); PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_OBJC_BRIDGING_HEADER = "mas-cli/mas-cli-Bridging-Header.h"; }; name = Release; }; @@ -236,6 +728,7 @@ ED031A811B5127C00097692E /* Release */, ); defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; }; /* End XCConfigurationList section */ }; diff --git a/mas-cli/Headers/CommerceKit/CDStructures.h b/mas-cli/Headers/CommerceKit/CDStructures.h new file mode 100644 index 0000000..a9e7610 --- /dev/null +++ b/mas-cli/Headers/CommerceKit/CDStructures.h @@ -0,0 +1,10 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#pragma mark Blocks + +typedef void (^CDUnknownBlockType)(void); // return type and parameters are unknown + diff --git a/mas-cli/Headers/CommerceKit/CKAccountAuthentication.h b/mas-cli/Headers/CommerceKit/CKAccountAuthentication.h new file mode 100644 index 0000000..5bc8c64 --- /dev/null +++ b/mas-cli/Headers/CommerceKit/CKAccountAuthentication.h @@ -0,0 +1,42 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSObject.h" + +#import "NSURLConnectionDelegate.h" + +@class ISAuthenticationContext, ISStoreClient, NSDictionary, NSString; + +@interface CKAccountAuthentication : NSObject +{ + id _delegate; + NSString *_accountName; + NSString *_password; + NSDictionary *_serverResponseDictionary; + ISAuthenticationContext *_context; + long long _attempt; + ISStoreClient *_storeClient; +} + +@property(retain) ISStoreClient *storeClient; // @synthesize storeClient=_storeClient; +@property long long attempt; // @synthesize attempt=_attempt; +@property(retain) ISAuthenticationContext *context; // @synthesize context=_context; +@property(readonly) NSDictionary *serverResponseDictionary; // @synthesize serverResponseDictionary=_serverResponseDictionary; +@property(retain) NSString *password; // @synthesize password=_password; +@property(retain) NSString *accountName; // @synthesize accountName=_accountName; +@property id delegate; // @synthesize delegate=_delegate; +- (void).cxx_destruct; +- (void)stop; +- (BOOL)start; + +// Remaining properties +@property(readonly, copy) NSString *debugDescription; +@property(readonly, copy) NSString *description; +@property(readonly) unsigned long long hash; +@property(readonly) Class superclass; + +@end + diff --git a/mas-cli/Headers/CommerceKit/CKAccountStore.h b/mas-cli/Headers/CommerceKit/CKAccountStore.h new file mode 100644 index 0000000..e6f49f7 --- /dev/null +++ b/mas-cli/Headers/CommerceKit/CKAccountStore.h @@ -0,0 +1,37 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "CKServiceInterface.h" + +#import "ISStoreURLOperationDelegate-Protocol.h" + +@class ISStoreAccount, NSArray, NSString; + +@interface CKAccountStore : CKServiceInterface +{ +} + ++ (CKAccountStore *)sharedAccountStore; +- (void)removePrimaryAccountObserver:(id)arg1; +//- (id)addPrimaryAccountObserverWithBlock:(CDUnknownBlockType)arg1; +//- (void)updatePasswordSettings:(id)arg1 completionBlock:(CDUnknownBlockType)arg2; +//- (void)getPasswordSettingsWithCompletionBlock:(CDUnknownBlockType)arg1; +//- (void)getEligibilityForService:(long long)arg1 completionBlock:(CDUnknownBlockType)arg2; +- (id)eligibilityForService:(long long)arg1; +- (void)signOut; +- (void)viewAccount; +- (void)signIn; +//- (void)signInWithSuggestedAppleID:(id)arg1 allowChangeOfAppleID:(BOOL)arg2 completionHandler:(CDUnknownBlockType)arg3; +- (void)addAccount:(id)arg1; +- (id)accountWithAppleID:(id)arg1; +- (id)accountForDSID:(id)arg1; +@property(readonly) BOOL primaryAccountIsPresentAndSignedIn; +@property(readonly) ISStoreAccount *primaryAccount; +@property(readonly) NSArray *accounts; +- (id)init; + +@end + diff --git a/mas-cli/Headers/CommerceKit/CKAccountStoreClient.h b/mas-cli/Headers/CommerceKit/CKAccountStoreClient.h new file mode 100644 index 0000000..e65d8b7 --- /dev/null +++ b/mas-cli/Headers/CommerceKit/CKAccountStoreClient.h @@ -0,0 +1,21 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSObject.h" + +#import "ISAccountStoreObserver.h" + +@interface CKAccountStoreClient : NSObject +{ + CDUnknownBlockType _primaryAccountChangeObserver; +} + +@property(copy) CDUnknownBlockType primaryAccountChangeObserver; // @synthesize primaryAccountChangeObserver=_primaryAccountChangeObserver; +- (void).cxx_destruct; +- (void)primaryAccountDidChange:(id)arg1; + +@end + diff --git a/mas-cli/Headers/CommerceKit/CKAppStoreLauncher.h b/mas-cli/Headers/CommerceKit/CKAppStoreLauncher.h new file mode 100644 index 0000000..a24f486 --- /dev/null +++ b/mas-cli/Headers/CommerceKit/CKAppStoreLauncher.h @@ -0,0 +1,24 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSObject.h" + +@class NSMutableDictionary; + +@interface CKAppStoreLauncher : NSObject +{ + NSMutableDictionary *_validURLs; +} + ++ (void)validateLaunchURL:(id)arg1 withResultBlock:(CDUnknownBlockType)arg2; ++ (id)sharedInstance; +- (void).cxx_destruct; +- (void)launchAppStoreWithURL:(id)arg1; +- (id)_validateLaunchURL:(id)arg1; +- (id)init; + +@end + diff --git a/mas-cli/Headers/CommerceKit/CKAppleIDAuthentication.h b/mas-cli/Headers/CommerceKit/CKAppleIDAuthentication.h new file mode 100644 index 0000000..c3154e2 --- /dev/null +++ b/mas-cli/Headers/CommerceKit/CKAppleIDAuthentication.h @@ -0,0 +1,34 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import + +@class NSMutableData, NSTimer, NSURLConnection; + +@interface CKAppleIDAuthentication : CKAccountAuthentication +{ + NSTimer *_timeoutTimer; + NSMutableData *_receivedData; + NSURLConnection *_urlConnection; +} + +- (void).cxx_destruct; +- (void)connection:(id)arg1 didFailWithError:(id)arg2; +- (void)connectionDidFinishLoading:(id)arg1; +- (void)connection:(id)arg1 didSendBodyData:(long long)arg2 totalBytesWritten:(long long)arg3 totalBytesExpectedToWrite:(long long)arg4; +- (void)connection:(id)arg1 didReceiveData:(id)arg2; +- (void)connection:(id)arg1 didReceiveResponse:(id)arg2; +- (void)stop; +- (BOOL)start; +- (id)_createRequest; +- (id)_convertDictionaryToXMLData:(id)arg1; +- (void)_addDict:(id)arg1 toData:(id)arg2 withIndent:(long long)arg3; +- (id)_convertXMLDataToDictionary:(id)arg1; +- (void)_dictionaryFromXMLNode:(id)arg1 dictionary:(id)arg2; +- (void)_cleanupURLConnection; + +@end + diff --git a/mas-cli/Headers/CommerceKit/CKAppleIDCookie.h b/mas-cli/Headers/CommerceKit/CKAppleIDCookie.h new file mode 100644 index 0000000..1b32793 --- /dev/null +++ b/mas-cli/Headers/CommerceKit/CKAppleIDCookie.h @@ -0,0 +1,18 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSObject.h" + +@interface CKAppleIDCookie : NSObject +{ +} + ++ (id)sharedAppleIDCookie; +- (id)appleID; +- (void)setAppleID:(id)arg1; + +@end + diff --git a/mas-cli/Headers/CommerceKit/CKBag.h b/mas-cli/Headers/CommerceKit/CKBag.h new file mode 100644 index 0000000..5dc6297 --- /dev/null +++ b/mas-cli/Headers/CommerceKit/CKBag.h @@ -0,0 +1,35 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import + +@interface CKBag : CKServiceInterface +{ +} + ++ (void)_invalidateAllBags; ++ (id)valueForKey:(id)arg1; ++ (id)urlForKey:(id)arg1; ++ (id)serialDispatchQueue; ++ (id)bagWithType:(unsigned long long)arg1; ++ (id)sandboxBox; ++ (id)productionBag; +- (void)startUpdate; +- (void)stopObservingBagWithObserver:(id)arg1; +- (id)loadBagAndObserveUpdatesWithHandler:(CDUnknownBlockType)arg1; +- (BOOL)_loadBagSynchronouslyReturningError:(id *)arg1; +- (id)storefrontURL; +- (id)dictionary; +- (BOOL)sendGUIDWithURL:(id)arg1; +- (BOOL)isValid; +- (BOOL)regexWithKey:(id)arg1 matchesString:(id)arg2; +- (BOOL)urlIsTrusted:(id)arg1; +- (id)urlForKey:(id)arg1; +- (id)valueForKey:(id)arg1; +- (id)initWithBagType:(unsigned long long)arg1; + +@end + diff --git a/mas-cli/Headers/CommerceKit/CKBagClient.h b/mas-cli/Headers/CommerceKit/CKBagClient.h new file mode 100644 index 0000000..f157500 --- /dev/null +++ b/mas-cli/Headers/CommerceKit/CKBagClient.h @@ -0,0 +1,25 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSObject.h" + +#import "ISURLBagObserver.h" + +@class CKBag; + +@interface CKBagClient : NSObject +{ + CKBag *_bag; + CDUnknownBlockType _observerBlock; +} + +@property(copy) CDUnknownBlockType observerBlock; // @synthesize observerBlock=_observerBlock; +@property(retain) CKBag *bag; // @synthesize bag=_bag; +- (void).cxx_destruct; +- (void)urlBagDidUpdateWithSuccess:(BOOL)arg1 error:(id)arg2; + +@end + diff --git a/mas-cli/Headers/CommerceKit/CKBookCache.h b/mas-cli/Headers/CommerceKit/CKBookCache.h new file mode 100644 index 0000000..6c88642 --- /dev/null +++ b/mas-cli/Headers/CommerceKit/CKBookCache.h @@ -0,0 +1,25 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSObject.h" + +@class NSCache; + +@interface CKBookCache : NSObject +{ + NSCache *_cache; +} + ++ (id)sharedCache; +@property(readonly) NSCache *cache; // @synthesize cache=_cache; +- (void).cxx_destruct; +- (void)purge; +- (void)cacheBook:(id)arg1; +- (id)cachedBookWithUniqueIdentifier:(id)arg1; +- (id)init; + +@end + diff --git a/mas-cli/Headers/CommerceKit/CKBookLibrary.h b/mas-cli/Headers/CommerceKit/CKBookLibrary.h new file mode 100644 index 0000000..1cd5618 --- /dev/null +++ b/mas-cli/Headers/CommerceKit/CKBookLibrary.h @@ -0,0 +1,44 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSObject.h" + +@class ISServiceProxy, NSArray, NSPredicate; + +@interface CKBookLibrary : NSObject +{ + long long _libraryType; + NSArray *_sortDescriptors; + NSPredicate *_searchPredicate; + id _delegate; + ISServiceProxy *_serviceProxy; +} + ++ (BOOL)hasSampleWithItemIdentifier:(id)arg1 returningMetadata:(id *)arg2; ++ (id)shelfSortDescriptors; ++ (id)categorySortDescriptors; ++ (id)authorSortDescriptors; ++ (id)titleSortDescriptors; +@property(readonly) ISServiceProxy *serviceProxy; // @synthesize serviceProxy=_serviceProxy; +@property(nonatomic) __weak id delegate; // @synthesize delegate=_delegate; +@property(copy) NSPredicate *searchPredicate; // @synthesize searchPredicate=_searchPredicate; +@property(copy) NSArray *sortDescriptors; // @synthesize sortDescriptors=_sortDescriptors; +@property(readonly) long long libraryType; // @synthesize libraryType=_libraryType; +- (void).cxx_destruct; +- (void)pollForPurchasedBooks; +- (void)removeObserver:(id)arg1; +- (id)addObserver:(id)arg1; +- (id)addObserverOfType:(long long)arg1 withBlock:(CDUnknownBlockType)arg2; +- (id)bookWithItemIdentifier:(unsigned long long)arg1; +- (id)objectInBooksAtIndex:(unsigned long long)arg1; +- (id)booksAtIndexes:(id)arg1; +- (id)_willReturnBooks:(id)arg1; +- (unsigned long long)countOfBooks; +- (id)_requestInfo; +- (id)initWithLibraryType:(long long)arg1; + +@end + diff --git a/mas-cli/Headers/CommerceKit/CKBookLibraryClient.h b/mas-cli/Headers/CommerceKit/CKBookLibraryClient.h new file mode 100644 index 0000000..8f34ca4 --- /dev/null +++ b/mas-cli/Headers/CommerceKit/CKBookLibraryClient.h @@ -0,0 +1,23 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSObject.h" + +#import "ISBookLibraryObserver.h" + +@interface CKBookLibraryClient : NSObject +{ + long long _libraryType; + CDUnknownBlockType _observerBlock; +} + +@property(copy) CDUnknownBlockType observerBlock; // @synthesize observerBlock=_observerBlock; +@property long long libraryType; // @synthesize libraryType=_libraryType; +- (void).cxx_destruct; +- (void)bookLibraryHasAdded:(id)arg1 changed:(id)arg2 removed:(id)arg3; + +@end + diff --git a/mas-cli/Headers/CommerceKit/CKClientDispatch.h b/mas-cli/Headers/CommerceKit/CKClientDispatch.h new file mode 100644 index 0000000..35f974c --- /dev/null +++ b/mas-cli/Headers/CommerceKit/CKClientDispatch.h @@ -0,0 +1,35 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSObject.h" + +@class NSLock, NSObject, NSObject; + +@interface CKClientDispatch : NSObject +{ + NSObject *serviceXPCConnection; + NSLock *serviceConnectionLock; + NSObject *agentXPCConnection; + NSLock *agentConnectionLock; + NSObject *mQueue; +} + ++ (id)sharedInstance; +- (void).cxx_destruct; +- (void)cancelCallback:(id)arg1; +- (id)_syncInvokeSelector:(id)arg1 ofClass:(id)arg2 withObject:(id)arg3; +- (id)invokeSelector:(id)arg1 ofClass:(id)arg2 withObject:(id)arg3 callbackQueue:(id)arg4 callbackBlock:(CDUnknownBlockType)arg5; +- (void)invokeSelector:(id)arg1 ofClass:(id)arg2 withObject:(id)arg3 replyQueue:(id)arg4 replyBlock:(CDUnknownBlockType)arg5; +- (void)invokeSelector:(id)arg1 ofClass:(id)arg2 replyQueue:(id)arg3 replyBlock:(CDUnknownBlockType)arg4; +- (void)invokeSelector:(id)arg1 ofClass:(id)arg2 withObject:(id)arg3; +- (void)invokeSelector:(id)arg1 ofClass:(id)arg2; +- (void)dealloc; +- (id)init; +- (id)_sendMessage:(id)arg1 callbackQueue:(id)arg2 callbackBlock:(CDUnknownBlockType)arg3; +- (void)_sendMessage:(id)arg1 replyQueue:(id)arg2 replyBlock:(CDUnknownBlockType)arg3; + +@end + diff --git a/mas-cli/Headers/CommerceKit/CKDAAPPurchaseHistory.h b/mas-cli/Headers/CommerceKit/CKDAAPPurchaseHistory.h new file mode 100644 index 0000000..0deb9a5 --- /dev/null +++ b/mas-cli/Headers/CommerceKit/CKDAAPPurchaseHistory.h @@ -0,0 +1,26 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSObject.h" + +@class ISServiceProxy; + +@interface CKDAAPPurchaseHistory : NSObject +{ + ISServiceProxy *_serviceProxy; +} + +@property(readonly) ISServiceProxy *serviceProxy; // @synthesize serviceProxy=_serviceProxy; +- (void).cxx_destruct; +- (void)pollForPurchasedItems:(BOOL)arg1; +- (void)removeObserver:(id)arg1; +- (id)addObserver:(id)arg1; +- (id)addObserverWithBlock:(CDUnknownBlockType)arg1; +- (id)purchasedItems; +- (id)initWithStoreClient:(id)arg1; + +@end + diff --git a/mas-cli/Headers/CommerceKit/CKDAAPPurchaseHistoryClient.h b/mas-cli/Headers/CommerceKit/CKDAAPPurchaseHistoryClient.h new file mode 100644 index 0000000..4768bef --- /dev/null +++ b/mas-cli/Headers/CommerceKit/CKDAAPPurchaseHistoryClient.h @@ -0,0 +1,21 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSObject.h" + +#import "ISBookLibraryObserver.h" + +@interface CKDAAPPurchaseHistoryClient : NSObject +{ + CDUnknownBlockType _observerBlock; +} + +@property(copy) CDUnknownBlockType observerBlock; // @synthesize observerBlock=_observerBlock; +- (void).cxx_destruct; +- (void)bookLibraryHasAdded:(id)arg1 changed:(id)arg2 removed:(id)arg3; + +@end + diff --git a/mas-cli/Headers/CommerceKit/CKDaemonPreferencesController.h b/mas-cli/Headers/CommerceKit/CKDaemonPreferencesController.h new file mode 100644 index 0000000..d9a8243 --- /dev/null +++ b/mas-cli/Headers/CommerceKit/CKDaemonPreferencesController.h @@ -0,0 +1,20 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSObject.h" + +@interface CKDaemonPreferencesController : NSObject +{ +} + ++ (id)sharedInstance; +- (void)_preferencesChanged:(id)arg1; +- (void)postPreferencesChangedNotification; +- (void)stopObservingPreferenceChanges; +- (void)startObservingPreferenceChanges; + +@end + diff --git a/mas-cli/Headers/CommerceKit/CKDialogController.h b/mas-cli/Headers/CommerceKit/CKDialogController.h new file mode 100644 index 0000000..3a23103 --- /dev/null +++ b/mas-cli/Headers/CommerceKit/CKDialogController.h @@ -0,0 +1,23 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import + +@class NSLock; + +@interface CKDialogController : CKServiceInterface +{ + NSLock *_lock; + id _delegate; +} + ++ (id)sharedDialogController; +- (void).cxx_destruct; +- (void)setDelegate:(id)arg1; +- (id)initWithStoreClient:(id)arg1; + +@end + diff --git a/mas-cli/Headers/CommerceKit/CKDownloadQueue.h b/mas-cli/Headers/CommerceKit/CKDownloadQueue.h new file mode 100644 index 0000000..1bf0613 --- /dev/null +++ b/mas-cli/Headers/CommerceKit/CKDownloadQueue.h @@ -0,0 +1,41 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "CKServiceInterface.h" + +@class NSArray, NSLock, NSMutableDictionary, CKDownloadQueueClient; +@protocol CKDownloadQueueObserver; + +@interface CKDownloadQueue : CKServiceInterface +{ + NSMutableDictionary *_downloadsByItemID; + NSLock *_downloadsLock; +} + ++ (CKDownloadQueue *)sharedDownloadQueue; +//- (void).cxx_destruct; +- (BOOL)cacheReceiptDataForDownload:(id)arg1; +- (void)checkStoreDownloadQueueForAccount:(id)arg1; +- (void)recoverAvailableDiskSpace; +- (void)lockedApplicationTriedToLaunchAtPath:(id)arg1; +- (void)unlockApplicationsWithBundleIdentifier:(id)arg1; +- (void)lockApplicationsForBundleID:(id)arg1; +//- (void)fetchIconForItemIdentifier:(unsigned long long)arg1 atURL:(id)arg2 replyBlock:(CDUnknownBlockType)arg3; +- (void)removeDownloadWithItemIdentifier:(unsigned long long)arg1; +- (void)cancelDownload:(id)arg1 promptToConfirm:(BOOL)arg2 askToDelete:(BOOL)arg3; +- (void)resumeDownloadWithItemIdentifier:(unsigned long long)arg1; +- (void)pauseDownloadWithItemIdentifier:(unsigned long long)arg1; +- (void)addDownload:(id)arg1; +- (id)downloadForItemIdentifier:(unsigned long long)arg1; +@property(readonly, nonatomic) NSArray *downloads; // @dynamic downloads; +- (void)removeObserver:(id)arg1; +- (id)addObserver:(id)arg1; +- (id)addObserver:(id)arg1 forDownloadTypes:(long long)arg2; +//- (id)addObserverForDownloadTypes:(long long)arg1 withBlock:(CDUnknownBlockType)arg2; +- (id)initWithStoreClient:(id)arg1; + +@end + diff --git a/mas-cli/Headers/CommerceKit/CKDownloadQueueClient.h b/mas-cli/Headers/CommerceKit/CKDownloadQueueClient.h new file mode 100644 index 0000000..92d4aa3 --- /dev/null +++ b/mas-cli/Headers/CommerceKit/CKDownloadQueueClient.h @@ -0,0 +1,24 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "ISDownloadQueueObserver-Protocol.h" + +@interface CKDownloadQueueClient : NSObject +{ + long long _downloadTypesMask; +// CDUnknownBlockType _observerBlock; +} + +//@property(copy) CDUnknownBlockType observerBlock; // @synthesize observerBlock=_observerBlock; +@property long long downloadTypesMask; // @synthesize downloadTypesMask=_downloadTypesMask; +//- (void).cxx_destruct; +- (void)downloadQueueDidCheckServerDownloadQueueForAccount:(id)arg1 withDownloadCount:(long long)arg2 newDownloads:(id)arg3; +- (void)download:(id)arg1 didUpdateStatus:(id)arg2; +- (void)downloadQueueDidRemoveDownload:(id)arg1 queueIsIdle:(BOOL)arg2; +- (void)downloadQueueDidAddDownload:(id)arg1; + +@end + diff --git a/mas-cli/Headers/CommerceKit/CKExtensionSearchController.h b/mas-cli/Headers/CommerceKit/CKExtensionSearchController.h new file mode 100644 index 0000000..b3d648b --- /dev/null +++ b/mas-cli/Headers/CommerceKit/CKExtensionSearchController.h @@ -0,0 +1,16 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSObject.h" + +@interface CKExtensionSearchController : NSObject +{ +} + ++ (void)urlToSearchForExtensionsWithIdentifier:(id)arg1 completion:(CDUnknownBlockType)arg2; + +@end + diff --git a/mas-cli/Headers/CommerceKit/CKFirmwareWarningSheet.h b/mas-cli/Headers/CommerceKit/CKFirmwareWarningSheet.h new file mode 100644 index 0000000..c06e601 --- /dev/null +++ b/mas-cli/Headers/CommerceKit/CKFirmwareWarningSheet.h @@ -0,0 +1,19 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import + +@interface CKFirmwareWarningSheet : CKLicenseAgreementSheet +{ +} + +- (BOOL)userConfirmedAllWarningsWithWindowForSheet:(id)arg1; +- (id)_titleValueKey; +- (id)_textValueKey; +- (id)_nibName; + +@end + diff --git a/mas-cli/Headers/CommerceKit/CKItem.h b/mas-cli/Headers/CommerceKit/CKItem.h new file mode 100644 index 0000000..c178c5f --- /dev/null +++ b/mas-cli/Headers/CommerceKit/CKItem.h @@ -0,0 +1,41 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSObject.h" + +@class NSArray, NSDictionary, NSNumber, NSString, NSURL; + +@interface CKItem : NSObject +{ + NSDictionary *_properties; +} + +- (void).cxx_destruct; +- (id)_tellAFriendDictionary; +- (id)viewReviewsURL; +- (id)sendGiftURL; +- (id)releaseDate; +- (id)rawItemDictionary; +- (id)mediaKind; +- (id)collectionName; +- (id)bundleVersion; +- (id)bundleIdentifier; +- (id)initWithItemDictionary:(id)arg1; +- (id)description; +- (id)priceDisplay; +- (id)buyParameters; +@property(readonly, nonatomic) NSURL *viewItemURL; +- (id)valueForProperty:(id)arg1; +@property(readonly, nonatomic) NSArray *thumbnailImages; +@property(readonly, nonatomic) long long numberOfUserRatings; +@property(readonly, nonatomic) NSNumber *ITunesStoreIdentifier; +@property(readonly, nonatomic) NSString *itemTitle; +- (id)itemKind; +@property(readonly, nonatomic) float averageUserRating; +@property(readonly, nonatomic) NSString *developerName; + +@end + diff --git a/mas-cli/Headers/CommerceKit/CKItemArtworkImage.h b/mas-cli/Headers/CommerceKit/CKItemArtworkImage.h new file mode 100644 index 0000000..2b78fbd --- /dev/null +++ b/mas-cli/Headers/CommerceKit/CKItemArtworkImage.h @@ -0,0 +1,31 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSObject.h" + +@class NSString, NSURL; + +@interface CKItemArtworkImage : NSObject +{ + long long _height; + NSString *_imageKind; + BOOL _prerendered; + NSURL *_url; + long long _width; +} + +@property(readonly, nonatomic) long long width; // @synthesize width=_width; +@property(readonly, nonatomic) NSURL *URL; // @synthesize URL=_url; +@property(readonly, nonatomic) NSString *imageKind; // @synthesize imageKind=_imageKind; +@property(readonly, nonatomic) long long height; // @synthesize height=_height; +- (void).cxx_destruct; +- (id)initWithArtworkDictionary:(id)arg1; +- (BOOL)isEqual:(id)arg1; +- (unsigned long long)hash; +- (id)description; + +@end + diff --git a/mas-cli/Headers/CommerceKit/CKItemLookupRequest.h b/mas-cli/Headers/CommerceKit/CKItemLookupRequest.h new file mode 100644 index 0000000..fb8f618 --- /dev/null +++ b/mas-cli/Headers/CommerceKit/CKItemLookupRequest.h @@ -0,0 +1,28 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +@class NSArray, NSString; +@class CKItemLookupResponse; + +@interface CKItemLookupRequest : NSObject +{ + NSArray *_bundleIdentifiers; + NSArray *_adamIdentifiers; + BOOL _platformOverride; + NSString *_keyProfile; + NSString *_preferredLanguage; +// CDUnknownBlockType _lookupCallbackBlock; +} + +@property(retain, nonatomic) NSString *preferredLanguage; // @synthesize preferredLanguage=_preferredLanguage; +@property BOOL platformOverride; // @synthesize platformOverride=_platformOverride; +//- (void).cxx_destruct; +- (id)parameters; +- (BOOL)start; +- (BOOL)startWithLookupBlock:(void(^)(CKItemLookupResponse *, NSError *))block; +- (id)initWithBundleIdentifiers:(NSArray*)arg1 adamIDs:(NSArray *)arg2 keyProfile:(NSString *)arg3; +@end + diff --git a/mas-cli/Headers/CommerceKit/CKItemLookupResponse.h b/mas-cli/Headers/CommerceKit/CKItemLookupResponse.h new file mode 100644 index 0000000..de33644 --- /dev/null +++ b/mas-cli/Headers/CommerceKit/CKItemLookupResponse.h @@ -0,0 +1,20 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +@class NSDictionary; + +@interface CKItemLookupResponse : NSObject +{ + NSDictionary *_responseDictionary; +} + +//- (void).cxx_destruct; +@property(readonly, nonatomic) NSDictionary *resultDictionary; // @dynamic resultDictionary; +@property(readonly, nonatomic) unsigned long long responseCount; // @dynamic responseCount; +- (id)initWithDictionary:(id)arg1; + +@end + diff --git a/mas-cli/Headers/CommerceKit/CKItemTellAFriend.h b/mas-cli/Headers/CommerceKit/CKItemTellAFriend.h new file mode 100644 index 0000000..b3f853c --- /dev/null +++ b/mas-cli/Headers/CommerceKit/CKItemTellAFriend.h @@ -0,0 +1,43 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSObject.h" + +#import "ISStoreURLOperationDelegate.h" + +@class ISStoreURLOperation, NSDictionary, NSHTTPURLResponse, NSString; + +@interface CKItemTellAFriend : NSObject +{ + NSDictionary *_properties; + ISStoreURLOperation *_tellAFriendOperation; + NSString *_tellAFriendSubject; + NSString *_tellAFriendBody; + NSString *_tellAFriendBodyMIMEType; + NSHTTPURLResponse *_tellAFriendResponse; +} + +- (void).cxx_destruct; +- (void)operation:(id)arg1 finishedWithOutput:(id)arg2; +- (void)operation:(id)arg1 didReceiveResponse:(id)arg2; +- (void)operationFinished:(id)arg1; +- (void)operation:(id)arg1 failedWithError:(id)arg2; +@property(readonly, nonatomic) NSString *tellAFriendSubject; +@property(readonly, nonatomic) NSString *tellAFriendBodyMIMEType; +@property(readonly, nonatomic) NSString *tellAFriendBody; +- (BOOL)loadTellAFriendMessage:(id *)arg1; +- (id)initWithItemDictionary:(id)arg1; +- (id)_tellAFriendDictionary; +- (void)_finishTellAFriendLoadWithError:(id)arg1; + +// Remaining properties +@property(readonly, copy) NSString *debugDescription; +@property(readonly, copy) NSString *description; +@property(readonly) unsigned long long hash; +@property(readonly) Class superclass; + +@end + diff --git a/mas-cli/Headers/CommerceKit/CKLaterAgent.h b/mas-cli/Headers/CommerceKit/CKLaterAgent.h new file mode 100644 index 0000000..7d5f036 --- /dev/null +++ b/mas-cli/Headers/CommerceKit/CKLaterAgent.h @@ -0,0 +1,22 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSObject.h" + +@interface CKLaterAgent : NSObject +{ +} + ++ (BOOL)isRestartCountdownShown; ++ (long long)showRestartCountdownNotification; ++ (BOOL)isArmedForInstallLater; ++ (void)disarmObserver; ++ (void)armObserverWithMode:(long long)arg1; ++ (void)_sendAgentMessage:(id)arg1 withReplyHandler:(CDUnknownBlockType)arg2; ++ (void)_sendAgentCommand:(long long)arg1 mode:(long long)arg2; + +@end + diff --git a/mas-cli/Headers/CommerceKit/CKLicenseAgreementSheet.h b/mas-cli/Headers/CommerceKit/CKLicenseAgreementSheet.h new file mode 100644 index 0000000..65e033e --- /dev/null +++ b/mas-cli/Headers/CommerceKit/CKLicenseAgreementSheet.h @@ -0,0 +1,38 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSWindowController.h" + +@class NSArray, NSButton, NSTextField, NSTextView, NSWindow; + +@interface CKLicenseAgreementSheet : NSWindowController +{ + NSButton *_agreeButton; + NSButton *_cancelButton; + NSTextView *_textView; + NSTextField *_titleField; + long long _sheetReturnCode; + NSArray *_productKeys; + NSWindow *_hostWindow; +} + +@property __weak NSWindow *hostWindow; // @synthesize hostWindow=_hostWindow; +@property(copy) NSArray *productKeys; // @synthesize productKeys=_productKeys; +- (void).cxx_destruct; +- (void)agree:(id)arg1; +- (void)cancel:(id)arg1; +- (void)_dismissPanelWithCode:(long long)arg1; +- (void)didEndSheet:(id)arg1 returnCode:(long long)arg2 contextInfo:(void *)arg3; +- (void)displaySheetWithTitle:(id)arg1 content:(id)arg2 onWindow:(id)arg3 replyBlock:(CDUnknownBlockType)arg4; +- (BOOL)userAgreedToAllAgreementsWithWindowForSheet:(id)arg1; +- (id)_titleValueKey; +- (id)_textValueKey; +- (id)_nibName; +- (id)init; +- (id)initWithUpdateProductKeys:(id)arg1; + +@end + diff --git a/mas-cli/Headers/CommerceKit/CKMachineAuthorization.h b/mas-cli/Headers/CommerceKit/CKMachineAuthorization.h new file mode 100644 index 0000000..942d4d4 --- /dev/null +++ b/mas-cli/Headers/CommerceKit/CKMachineAuthorization.h @@ -0,0 +1,18 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import + +@interface CKMachineAuthorization : CKServiceInterface +{ +} + ++ (id)sharedMachineAuthorization; +- (void)deauthorizeMachineWithCompletionHandler:(CDUnknownBlockType)arg1; +- (void)authorizeMachineWithAppleID:(id)arg1 completionHandler:(CDUnknownBlockType)arg2; + +@end + diff --git a/mas-cli/Headers/CommerceKit/CKPreflightURLRequest.h b/mas-cli/Headers/CommerceKit/CKPreflightURLRequest.h new file mode 100644 index 0000000..ae1f844 --- /dev/null +++ b/mas-cli/Headers/CommerceKit/CKPreflightURLRequest.h @@ -0,0 +1,34 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "SSRequest.h" + +#import "ISStoreURLOperationDelegate.h" + +@class NSArray, NSDictionary, NSString; + +@interface CKPreflightURLRequest : SSRequest +{ + NSArray *_identifiers; + NSDictionary *_preflightURLs; +} + +@property(readonly) NSDictionary *preflightURLs; // @synthesize preflightURLs=_preflightURLs; +- (void).cxx_destruct; +- (void)_sendErrorToDelegate:(id)arg1; +- (void)operation:(id)arg1 finishedWithOutput:(id)arg2; +- (void)operation:(id)arg1 failedWithError:(id)arg2; +- (BOOL)issueRequestForIdentifier:(id)arg1 error:(id *)arg2; +- (id)initWithBundleIdentifiers:(id)arg1; + +// Remaining properties +@property(readonly, copy) NSString *debugDescription; +@property(readonly, copy) NSString *description; +@property(readonly) unsigned long long hash; +@property(readonly) Class superclass; + +@end + diff --git a/mas-cli/Headers/CommerceKit/CKPurchaseController.h b/mas-cli/Headers/CommerceKit/CKPurchaseController.h new file mode 100644 index 0000000..1e52fbb --- /dev/null +++ b/mas-cli/Headers/CommerceKit/CKPurchaseController.h @@ -0,0 +1,36 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "CKServiceInterface.h" +#import "SSPurchase.h" + +@interface CKPurchaseController : CKServiceInterface +{ + NSMutableArray *_purchases; + NSMutableArray *_rejectedPurchases; + NSArray *_adoptionEligibleItems; + NSNumber *_adoptionServerStatus; + NSNumber *_adoptionErrorNumber; +// CDUnknownBlockType _dialogHandler; +} + ++ (void)setNeedsSilentMachineAuthorization:(BOOL)arg1; ++ (CKPurchaseController *)sharedPurchaseController; +- (void)performPurchase:(SSPurchase *)purchase withOptions:(NSUInteger)options completionHandler:(void(^)(SSPurchase *, BOOL, NSError*, SSPurchaseResponse *))completionHandler; + +//@property(copy) CDUnknownBlockType dialogHandler; // @synthesize dialogHandler=_dialogHandler; +//- (BOOL)adoptionCompletedForBundleID:(id)arg1; +//- (void)_performVPPReceiptRenewal; +//- (void)checkServerDownloadQueue; +//- (id)purchaseInProgressForProductID:(id)arg1; +//- (id)purchasesInProgress; +//- (void)cancelPurchaseWithProductID:(id)arg1; +//- (void)resumeDownloadForPurchasedProductID:(id)arg1; +//- (void)startPurchases:(NSArray *)purchases shouldStartDownloads:(BOOL)downloads eventHandler:(CDUnknownBlockType)arg3; +//- (void)checkInstallRequirementsAtURL:(id)arg1 productID:(id)arg2 completionHandler:(CDUnknownBlockType)arg3; + +@end + diff --git a/mas-cli/Headers/CommerceKit/CKPushNotificationManager.h b/mas-cli/Headers/CommerceKit/CKPushNotificationManager.h new file mode 100644 index 0000000..b6c1740 --- /dev/null +++ b/mas-cli/Headers/CommerceKit/CKPushNotificationManager.h @@ -0,0 +1,41 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import + +@interface CKPushNotificationManager : CKServiceInterface +{ + id _delegate; +} + ++ (id)sharedManager; +@property __weak id delegate; // @synthesize delegate=_delegate; +- (void).cxx_destruct; +- (BOOL)isRegisteredForAccount:(id)arg1 andMask:(long long)arg2; +- (BOOL)isRegisteredForAccount:(id)arg1; +- (BOOL)stopAtSignOut; +- (void)disableAutoDownloadAtSignOutWithCompletionHandler:(CDUnknownBlockType)arg1; +- (BOOL)startAtSignIn; +- (void)enableAutoDownloadAtSignInWithCompletionHandler:(CDUnknownBlockType)arg1; +- (BOOL)stop; +- (void)disableAutoDownloadWithCompletionHandler:(CDUnknownBlockType)arg1; +- (BOOL)start; +- (void)enableAutoDownloadWithCompletionHandler:(CDUnknownBlockType)arg1; +- (BOOL)checkEnabledMediaTypes; +- (void)getEnabledMedaTypesWithCompletionHandler:(CDUnknownBlockType)arg1; +- (BOOL)registerPushToken; +- (void)registerDeviceTokenWithCompletionHandler:(CDUnknownBlockType)arg1; +- (void)_writeAutoDownloadEnabled:(long long)arg1 forAccount:(id)arg2; +- (BOOL)_isAutoDownloadEnabledForAccount:(id)arg1; +- (void)_updateRegisteredDSIDsPreferences:(id)arg1 forDSID:(id)arg2; +- (BOOL)_setRegisteredDSIDsPreferences:(id)arg1; +- (id)_registeredDSIDsPreferences; +- (void)_sendChangedToDelegate; +- (void)_sendSuccessToDelegate; +- (void)_sendErrorToDelegate:(id)arg1; + +@end + diff --git a/mas-cli/Headers/CommerceKit/CKRestoreDownloadsRequest.h b/mas-cli/Headers/CommerceKit/CKRestoreDownloadsRequest.h new file mode 100644 index 0000000..73a64f3 --- /dev/null +++ b/mas-cli/Headers/CommerceKit/CKRestoreDownloadsRequest.h @@ -0,0 +1,24 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "SSRequest.h" + +@class ISServiceProxy, NSArray; + +@interface CKRestoreDownloadsRequest : SSRequest +{ + NSArray *_archivedFiles; + ISServiceProxy *_serviceProxy; + BOOL _userInitiated; +} + +@property BOOL userInitiated; // @synthesize userInitiated=_userInitiated; +- (void).cxx_destruct; +- (BOOL)issueRequestForIdentifier:(id)identifier error:(NSError **)error; +- (id)initWithArchivedFiles:(id)arg1; + +@end + diff --git a/mas-cli/Headers/CommerceKit/CKServiceInterface.h b/mas-cli/Headers/CommerceKit/CKServiceInterface.h new file mode 100644 index 0000000..14a2639 --- /dev/null +++ b/mas-cli/Headers/CommerceKit/CKServiceInterface.h @@ -0,0 +1,14 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "ISServiceProxy.h" + +@interface CKServiceInterface : ISServiceProxy +{ +} + +@end + diff --git a/mas-cli/Headers/CommerceKit/CKSoftwareMap.h b/mas-cli/Headers/CommerceKit/CKSoftwareMap.h new file mode 100644 index 0000000..6f42616 --- /dev/null +++ b/mas-cli/Headers/CommerceKit/CKSoftwareMap.h @@ -0,0 +1,35 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "CKServiceInterface.h" +#import "CKSoftwareProduct.h" + +@class NSLock, NSMutableArray; + +@interface CKSoftwareMap : CKServiceInterface +{ + NSMutableArray *_observers; + NSLock *_observersLock; +} + ++ (CKSoftwareMap *)sharedSoftwareMap; +- (id)adaptableBundleIdentifiers; +- (BOOL)adoptionCompletedForBundleID:(id)arg1 adoptingDSID:(out id *)arg2 appleID:(out id *)arg3; +- (id)updateRequestBodyData:(char *)arg1 includeInstalledApps:(BOOL)arg2 includeBundledApps:(BOOL)arg3 conditionally:(BOOL)arg4 hadUnadoptedApps:(out char *)arg5; +- (id)iconForApplicationWithBundeID:(id)arg1; +- (id)bundleInfoFromBundleAtPath:(id)arg1; +- (BOOL)isTrialVersionOfBundleIdentifier:(id)arg1; +- (id)receiptFromBundleAtPath:(id)arg1; +- (id)productForPath:(id)arg1; +- (id)allProducts; +- (CKSoftwareProduct *)productForItemIdentifier:(unsigned long long)arg1; +- (CKSoftwareProduct *)productForBundleIdentifier:(NSString *)arg1; +- (void)removeProductsObserver:(id)arg1; +//- (id)addProductsObserver:(CDUnknownBlockType)arg1 queue:(id)arg2; +- (id)initWithStoreClient:(id)arg1; + +@end + diff --git a/mas-cli/Headers/CommerceKit/CKSoftwareMapObserver.h b/mas-cli/Headers/CommerceKit/CKSoftwareMapObserver.h new file mode 100644 index 0000000..87a3f81 --- /dev/null +++ b/mas-cli/Headers/CommerceKit/CKSoftwareMapObserver.h @@ -0,0 +1,22 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSObject.h" + +@class NSObject; + +@interface CKSoftwareMapObserver : NSObject +{ + CDUnknownBlockType _block; + NSObject *_queue; +} + +@property(retain) NSObject *queue; // @synthesize queue=_queue; +@property(copy) CDUnknownBlockType block; // @synthesize block=_block; +- (void).cxx_destruct; + +@end + diff --git a/mas-cli/Headers/CommerceKit/CKStoreClient.h b/mas-cli/Headers/CommerceKit/CKStoreClient.h new file mode 100644 index 0000000..66b5a57 --- /dev/null +++ b/mas-cli/Headers/CommerceKit/CKStoreClient.h @@ -0,0 +1,36 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSObject.h" + +#import "ISSingleton.h" + +@class ISStoreClient, NSString; + +@interface CKStoreClient : NSObject +{ + ISStoreClient *_storeClient; +} + ++ (void)setStoreFrontID:(id)arg1; ++ (id)storeFrontID; ++ (BOOL)isBookStoreClient; ++ (BOOL)isAppStoreClient; ++ (void)configureClientAsType:(long long)arg1; ++ (id)_serviceProxy; ++ (id)sharedInstance; +@property(readonly) ISStoreClient *storeClient; // @synthesize storeClient=_storeClient; +- (void).cxx_destruct; +- (id)primaryAccount; + +// Remaining properties +@property(readonly, copy) NSString *debugDescription; +@property(readonly, copy) NSString *description; +@property(readonly) unsigned long long hash; +@property(readonly) Class superclass; + +@end + diff --git a/mas-cli/Headers/CommerceKit/CKUpToDate.h b/mas-cli/Headers/CommerceKit/CKUpToDate.h new file mode 100644 index 0000000..cac2ba6 --- /dev/null +++ b/mas-cli/Headers/CommerceKit/CKUpToDate.h @@ -0,0 +1,25 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSObject.h" + +@interface CKUpToDate : NSObject +{ + CDUnknownBlockType _callbackBlock; +} + ++ (BOOL)isEligibleForItemID:(id)arg1; ++ (id)eligibleUpToDateAppsForServer; ++ (id)eligibleUpToDateApps; ++ (void)startCheckIgnoringTimestamps:(BOOL)arg1; ++ (id)sharedInstance; ++ (BOOL)usePorco; +@property(copy) CDUnknownBlockType callbackBlock; // @synthesize callbackBlock=_callbackBlock; +- (void).cxx_destruct; +- (void)claimItems:(id)arg1 withDownloadItems:(id)arg2 completionBlock:(CDUnknownBlockType)arg3; + +@end + diff --git a/mas-cli/Headers/CommerceKit/CKUpdateController.h b/mas-cli/Headers/CommerceKit/CKUpdateController.h new file mode 100644 index 0000000..26537b7 --- /dev/null +++ b/mas-cli/Headers/CommerceKit/CKUpdateController.h @@ -0,0 +1,56 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "CKServiceInterface.h" + +@interface CKUpdateController : CKServiceInterface +{ +// CDUnknownBlockType _dialogHandler; +} + ++ (CKUpdateController *)sharedUpdateController; +//@property(copy) CDUnknownBlockType dialogHandler; // @synthesize dialogHandler=_dialogHandler; +//- (void).cxx_destruct; +- (void)promptUserToOptInForAutoUpdateWithShowNotification:(BOOL)arg1; +- (BOOL)shouldPromptForAutoUpdateOptIn; +- (BOOL)isAutoUpdatedEnabled; +- (id)installedUpdatesJournal; +- (BOOL)softwareUpdateCatalogIsSeedCatalog; +- (long long)softwareUpdateCatalogTrustLevel; +- (int)catalogTrustLevel; +- (id)catalogHostName; +- (void)stopObservingOSUpdateProgressWithCallback:(id)arg1; +//- (id)observerOSUpdateProgressWithProgressHandler:(CDUnknownBlockType)arg1; +- (void)stopObservingOSUpdateScansWithCallback:(id)arg1; +//- (id)observerOSUpdateScansWithProgressHandler:(CDUnknownBlockType)arg1; +- (void)startOSUpdateScanWithForceFullScan:(BOOL)arg1 reportProgressImmediately:(BOOL)arg2 launchedFromNotification:(BOOL)arg3 userHasSeenAllUpdates:(BOOL)arg4 checkForOtherUpdates:(BOOL)arg5; +- (void)unhideAllOSUpdates; +- (void)hideOSUpdatesWithProductKeys:(id)arg1; +- (BOOL)hasHiddenOSUpdates; +- (BOOL)osUpdateScanInProgress; +- (id)_updateFailureDialogWithAuditInfo:(id)arg1; +- (BOOL)_otherUsersAreLoggedIn; +- (void)showUpdateFailureWithAuditToken:(id)arg1; +- (void)removeUpdateFromInstallLaterWithBundleID:(id)arg1; +- (id)appUpdatesToBeInstalledLater; +- (id)osUpdatesToBeInstalledLater; +- (id)osUpdatesToBeInstalledAfterLogout; +- (void)cancelUpdatesToBeInstalledLater; +- (void)installAvailableUpdatesLaterWithMode:(long long)arg1; +- (BOOL)shouldOfferDoItLater; +- (void)installAllAvailableUpdates; +//- (void)startAppUpdates:(id)arg1 andOSUpdates:(id)arg2 withDelegate:(id)arg3 completionHandler:(CDUnknownBlockType)arg4; +//- (void)checkForUpdatesWithUserHasSeenUpdates:(BOOL)arg1 completionHandler:(CDUnknownBlockType)arg2; +- (void)removeAvailableUpdatesObserver:(id)arg1; +//- (id)addAvailableUpdatesObserverWithBlock:(CDUnknownBlockType)arg1; +- (unsigned long long)availableUpdatesBadgeCount; +- (id)incompatibleUpdates; +- (id)availableUpdateWithItemIdentifier:(unsigned long long)arg1; +- (id)availableUpdates; +- (id)init; + +@end + diff --git a/mas-cli/Headers/CommerceKit/CKUpdateControllerClient.h b/mas-cli/Headers/CommerceKit/CKUpdateControllerClient.h new file mode 100644 index 0000000..c84ea7e --- /dev/null +++ b/mas-cli/Headers/CommerceKit/CKUpdateControllerClient.h @@ -0,0 +1,30 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSObject.h" + +#import "ISAvailableUpdatesObserver.h" +#import "ISOSUpdateProgressObserver.h" +#import "ISOSUpdateScanObserver.h" + +@interface CKUpdateControllerClient : NSObject +{ + CDUnknownBlockType _osUpdateProgressHandler; + CDUnknownBlockType _availableUpdatesObserverBlock; + CDUnknownBlockType _osUpdateScanObserverBlock; +} + +@property(copy) CDUnknownBlockType osUpdateScanObserverBlock; // @synthesize osUpdateScanObserverBlock=_osUpdateScanObserverBlock; +@property(copy) CDUnknownBlockType availableUpdatesObserverBlock; // @synthesize availableUpdatesObserverBlock=_availableUpdatesObserverBlock; +@property(copy) CDUnknownBlockType osUpdateProgressHandler; // @synthesize osUpdateProgressHandler=_osUpdateProgressHandler; +- (void).cxx_destruct; +- (void)osUpdateScanDidProgressWithPercentComplete:(float)arg1 isFinished:(BOOL)arg2 error:(id)arg3; +- (void)availableUpdatesDidChangedWithUpdates:(id)arg1 osUpdates:(id)arg2 badgeCount:(unsigned long long)arg3; +- (void)osUpdates:(id)arg1 didFailWithError:(id)arg2; +- (void)osUpdates:(id)arg1 didProgressWithState:(long long)arg2 percentComplete:(double)arg3 statusInfo:(id)arg4 includesCriticalUpdates:(BOOL)arg5 canCancel:(BOOL)arg6; + +@end + diff --git a/mas-cli/Headers/CommerceKit/CKiTunesAppleIDAuthentication.h b/mas-cli/Headers/CommerceKit/CKiTunesAppleIDAuthentication.h new file mode 100644 index 0000000..d06bce0 --- /dev/null +++ b/mas-cli/Headers/CommerceKit/CKiTunesAppleIDAuthentication.h @@ -0,0 +1,37 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import + +#import "ISStoreURLOperationDelegate.h" + +@class ISStoreURLOperation, NSMutableData, NSString, NSURL; + +@interface CKiTunesAppleIDAuthentication : CKAccountAuthentication +{ + NSURL *_url; + NSMutableData *_receivedData; + ISStoreURLOperation *_loadOperation; +} + +- (void).cxx_destruct; +- (void)stop; +- (BOOL)start; +- (void)operation:(id)arg1 willSendRequest:(id)arg2; +- (void)operation:(id)arg1 didReceiveResponse:(id)arg2; +- (void)operation:(id)arg1 finishedWithOutput:(id)arg2; +- (id)_encodeString:(id)arg1; +- (id)_requestBodyDataWithAdditionalQueryParameters:(id)arg1; +- (id)initWithURL:(id)arg1; + +// Remaining properties +@property(readonly, copy) NSString *debugDescription; +@property(readonly, copy) NSString *description; +@property(readonly) unsigned long long hash; +@property(readonly) Class superclass; + +@end + diff --git a/mas-cli/Headers/CommerceKit/ISAccountStoreObserver-Protocol.h b/mas-cli/Headers/CommerceKit/ISAccountStoreObserver-Protocol.h new file mode 100644 index 0000000..43ff483 --- /dev/null +++ b/mas-cli/Headers/CommerceKit/ISAccountStoreObserver-Protocol.h @@ -0,0 +1,12 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +@class ISStoreAccount; + +@protocol ISAccountStoreObserver +- (void)primaryAccountDidChange:(ISStoreAccount *)arg1; +@end + diff --git a/mas-cli/Headers/CommerceKit/ISAppleIDCookie.h b/mas-cli/Headers/CommerceKit/ISAppleIDCookie.h new file mode 100644 index 0000000..472ee89 --- /dev/null +++ b/mas-cli/Headers/CommerceKit/ISAppleIDCookie.h @@ -0,0 +1,18 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSObject.h" + +@interface ISAppleIDCookie : NSObject +{ +} + ++ (id)sharedAppleIDCookie; +- (id)appleID; +- (void)setAppleID:(id)arg1; + +@end + diff --git a/mas-cli/Headers/CommerceKit/ISAutomaticDownloadQueue.h b/mas-cli/Headers/CommerceKit/ISAutomaticDownloadQueue.h new file mode 100644 index 0000000..7b78711 --- /dev/null +++ b/mas-cli/Headers/CommerceKit/ISAutomaticDownloadQueue.h @@ -0,0 +1,14 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSObject.h" + +@interface ISAutomaticDownloadQueue : NSObject +{ +} + +@end + diff --git a/mas-cli/Headers/CommerceKit/ISAvailableUpdatesObserver-Protocol.h b/mas-cli/Headers/CommerceKit/ISAvailableUpdatesObserver-Protocol.h new file mode 100644 index 0000000..4905c24 --- /dev/null +++ b/mas-cli/Headers/CommerceKit/ISAvailableUpdatesObserver-Protocol.h @@ -0,0 +1,12 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +@class NSArray; + +@protocol ISAvailableUpdatesObserver +- (void)availableUpdatesDidChangedWithUpdates:(NSArray *)arg1 osUpdates:(NSArray *)arg2 badgeCount:(unsigned long long)arg3; +@end + diff --git a/mas-cli/Headers/CommerceKit/ISBookLibraryObserver-Protocol.h b/mas-cli/Headers/CommerceKit/ISBookLibraryObserver-Protocol.h new file mode 100644 index 0000000..c08c70a --- /dev/null +++ b/mas-cli/Headers/CommerceKit/ISBookLibraryObserver-Protocol.h @@ -0,0 +1,12 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +@class NSArray; + +@protocol ISBookLibraryObserver +- (void)bookLibraryHasAdded:(NSArray *)arg1 changed:(NSArray *)arg2 removed:(NSArray *)arg3; +@end + diff --git a/mas-cli/Headers/CommerceKit/ISDevice-AppleConfigurator.h b/mas-cli/Headers/CommerceKit/ISDevice-AppleConfigurator.h new file mode 100644 index 0000000..afecee0 --- /dev/null +++ b/mas-cli/Headers/CommerceKit/ISDevice-AppleConfigurator.h @@ -0,0 +1,13 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "ISDevice.h" + +@interface ISDevice (AppleConfigurator) ++ (id)sharedInstance; +- (id)guid; +@end + diff --git a/mas-cli/Headers/CommerceKit/ISDownloadQueueObserver-Protocol.h b/mas-cli/Headers/CommerceKit/ISDownloadQueueObserver-Protocol.h new file mode 100644 index 0000000..54d1241 --- /dev/null +++ b/mas-cli/Headers/CommerceKit/ISDownloadQueueObserver-Protocol.h @@ -0,0 +1,15 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +@class ISStoreAccount, NSArray, SSDownload, SSDownloadStatus; + +@protocol ISDownloadQueueObserver +- (void)downloadQueueDidCheckServerDownloadQueueForAccount:(ISStoreAccount *)arg1 withDownloadCount:(long long)arg2 newDownloads:(NSArray*)arg3; +- (void)download:(SSDownload *)arg1 didUpdateStatus:(SSDownloadStatus *)arg2; +- (void)downloadQueueDidRemoveDownload:(SSDownload *)arg1 queueIsIdle:(BOOL)arg2; +- (void)downloadQueueDidAddDownload:(SSDownload *)arg1; +@end + diff --git a/mas-cli/Headers/CommerceKit/ISLoadURLBagOperation.h b/mas-cli/Headers/CommerceKit/ISLoadURLBagOperation.h new file mode 100644 index 0000000..c7dacc2 --- /dev/null +++ b/mas-cli/Headers/CommerceKit/ISLoadURLBagOperation.h @@ -0,0 +1,32 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "ISOperation.h" + +#import "ISStoreURLOperationDelegate.h" + +@class ISURLBagContext, NSString; + +@interface ISLoadURLBagOperation : ISOperation +{ + ISURLBagContext *_context; +} + +@property(readonly) ISURLBagContext *context; // @synthesize context=_context; +- (void).cxx_destruct; +- (void)run; +- (void)dealloc; +- (id)initWithBagContext:(id)arg1; +- (id)init; + +// Remaining properties +@property(readonly, copy) NSString *debugDescription; +@property(readonly, copy) NSString *description; +@property(readonly) unsigned long long hash; +@property(readonly) Class superclass; + +@end + diff --git a/mas-cli/Headers/CommerceKit/ISOSUpdateProgressObserver-Protocol.h b/mas-cli/Headers/CommerceKit/ISOSUpdateProgressObserver-Protocol.h new file mode 100644 index 0000000..929fd56 --- /dev/null +++ b/mas-cli/Headers/CommerceKit/ISOSUpdateProgressObserver-Protocol.h @@ -0,0 +1,13 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +@class NSArray, NSDictionary, NSError; + +@protocol ISOSUpdateProgressObserver +- (void)osUpdates:(NSArray *)arg1 didFailWithError:(NSError *)arg2; +- (void)osUpdates:(NSArray *)arg1 didProgressWithState:(long long)arg2 percentComplete:(double)arg3 statusInfo:(NSDictionary *)arg4 includesCriticalUpdates:(BOOL)arg5 canCancel:(BOOL)arg6; +@end + diff --git a/mas-cli/Headers/CommerceKit/ISOSUpdateScanObserver-Protocol.h b/mas-cli/Headers/CommerceKit/ISOSUpdateScanObserver-Protocol.h new file mode 100644 index 0000000..d49ba1b --- /dev/null +++ b/mas-cli/Headers/CommerceKit/ISOSUpdateScanObserver-Protocol.h @@ -0,0 +1,12 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +@class NSError; + +@protocol ISOSUpdateScanObserver +- (void)osUpdateScanDidProgressWithPercentComplete:(float)arg1 isFinished:(BOOL)arg2 error:(NSError *)arg3; +@end + diff --git a/mas-cli/Headers/CommerceKit/ISOperationDelegate-Protocol.h b/mas-cli/Headers/CommerceKit/ISOperationDelegate-Protocol.h new file mode 100644 index 0000000..a8aa286 --- /dev/null +++ b/mas-cli/Headers/CommerceKit/ISOperationDelegate-Protocol.h @@ -0,0 +1,16 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +@class ISOperation, NSError, SSOperationProgress; + +@protocol ISOperationDelegate + +@optional +- (void)operationFinished:(ISOperation *)arg1; +- (void)operation:(ISOperation *)arg1 updatedProgress:(SSOperationProgress *)arg2; +- (void)operation:(ISOperation *)arg1 failedWithError:(NSError *)arg2; +@end + diff --git a/mas-cli/Headers/CommerceKit/ISProcessPropertyListOperation.h b/mas-cli/Headers/CommerceKit/ISProcessPropertyListOperation.h new file mode 100644 index 0000000..b8d4895 --- /dev/null +++ b/mas-cli/Headers/CommerceKit/ISProcessPropertyListOperation.h @@ -0,0 +1,37 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "ISOperation.h" + +#import "ISURLOperationDelegate.h" + +@class ISPropertyListProvider, NSDictionary, NSString, NSURL; + +@interface ISProcessPropertyListOperation : ISOperation +{ + ISPropertyListProvider *_dataProvider; + NSDictionary *_propertyList; + NSURL *_propertyListURL; + CDUnknownBlockType _preParserBlock; +} + +@property(retain) ISPropertyListProvider *dataProvider; // @synthesize dataProvider=_dataProvider; +- (void).cxx_destruct; +- (void)operation:(id)arg1 failedWithError:(id)arg2; +- (void)operation:(id)arg1 finishedWithOutput:(id)arg2; +- (void)run; +- (id)initWithPropertyListAtURL:(id)arg1 withPreParserBlock:(CDUnknownBlockType)arg2 storeClient:(id)arg3; +- (id)initWithPropertyList:(id)arg1 storeClient:(id)arg2; +- (id)initWithStoreClient:(id)arg1; + +// Remaining properties +@property(readonly, copy) NSString *debugDescription; +@property(readonly, copy) NSString *description; +@property(readonly) unsigned long long hash; +@property(readonly) Class superclass; + +@end + diff --git a/mas-cli/Headers/CommerceKit/ISSingleton-Protocol.h b/mas-cli/Headers/CommerceKit/ISSingleton-Protocol.h new file mode 100644 index 0000000..ffe6b22 --- /dev/null +++ b/mas-cli/Headers/CommerceKit/ISSingleton-Protocol.h @@ -0,0 +1,12 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSObject.h" + +@protocol ISSingleton ++ (id)sharedInstance; +@end + diff --git a/mas-cli/Headers/CommerceKit/ISStoreURLOperation-CommerceKit.h b/mas-cli/Headers/CommerceKit/ISStoreURLOperation-CommerceKit.h new file mode 100644 index 0000000..6b6e049 --- /dev/null +++ b/mas-cli/Headers/CommerceKit/ISStoreURLOperation-CommerceKit.h @@ -0,0 +1,11 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "ISStoreURLOperation.h" + +@interface ISStoreURLOperation (CommerceKit) +@end + diff --git a/mas-cli/Headers/CommerceKit/ISStoreURLOperationDelegate-Protocol.h b/mas-cli/Headers/CommerceKit/ISStoreURLOperationDelegate-Protocol.h new file mode 100644 index 0000000..749293f --- /dev/null +++ b/mas-cli/Headers/CommerceKit/ISStoreURLOperationDelegate-Protocol.h @@ -0,0 +1,17 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "ISURLOperationDelegate-Protocol.h" + +@class ISStoreURLOperation, NSNumber, NSString; + +@protocol ISStoreURLOperationDelegate + +@optional +- (BOOL)operation:(ISStoreURLOperation *)arg1 shouldSetStoreFrontID:(NSString *)arg2; +- (void)operation:(ISStoreURLOperation *)arg1 didAuthenticateWithDSID:(NSNumber *)arg2; +@end + diff --git a/mas-cli/Headers/CommerceKit/ISURLBag.h b/mas-cli/Headers/CommerceKit/ISURLBag.h new file mode 100644 index 0000000..6761825 --- /dev/null +++ b/mas-cli/Headers/CommerceKit/ISURLBag.h @@ -0,0 +1,16 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSObject.h" + +@interface ISURLBag : NSObject +{ +} + ++ (id)urlForKey:(id)arg1 inBagContext:(id)arg2; + +@end + diff --git a/mas-cli/Headers/CommerceKit/ISURLBagContext.h b/mas-cli/Headers/CommerceKit/ISURLBagContext.h new file mode 100644 index 0000000..92f4b4e --- /dev/null +++ b/mas-cli/Headers/CommerceKit/ISURLBagContext.h @@ -0,0 +1,19 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSObject.h" + +@interface ISURLBagContext : NSObject +{ + unsigned long long _bagType; +} + ++ (id)contextWithBagType:(unsigned long long)arg1; +@property unsigned long long bagType; // @synthesize bagType=_bagType; +- (id)copyWithZone:(struct _NSZone *)arg1; + +@end + diff --git a/mas-cli/Headers/CommerceKit/ISURLBagObserver-Protocol.h b/mas-cli/Headers/CommerceKit/ISURLBagObserver-Protocol.h new file mode 100644 index 0000000..ab3ee41 --- /dev/null +++ b/mas-cli/Headers/CommerceKit/ISURLBagObserver-Protocol.h @@ -0,0 +1,12 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +@class NSError; + +@protocol ISURLBagObserver +- (void)urlBagDidUpdateWithSuccess:(BOOL)arg1 error:(NSError *)arg2; +@end + diff --git a/mas-cli/Headers/CommerceKit/ISURLCache.h b/mas-cli/Headers/CommerceKit/ISURLCache.h new file mode 100644 index 0000000..3948aae --- /dev/null +++ b/mas-cli/Headers/CommerceKit/ISURLCache.h @@ -0,0 +1,47 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSObject.h" + +@class NSArray, NSSet, NSString, NSURLCache; + +@interface ISURLCache : NSObject +{ + NSURLCache *_cache; + NSArray *_clientIdentifiers; + NSSet *_fileExtensions; + NSString *_persistentIdentifier; + NSArray *_urlPatterns; +} + ++ (id)persistentIdentifierFromPropertyList:(id)arg1; ++ (id)cacheDirectoryPath; +@property(readonly) NSString *persistentIdentifier; // @synthesize persistentIdentifier=_persistentIdentifier; +- (void).cxx_destruct; +- (BOOL)_urlStringMatchesURLPatterns:(id)arg1; +- (BOOL)_urlStringMatchesFileExtensions:(id)arg1; +- (BOOL)_parseURLPatternCriteriaFromPropertyList:(id)arg1; +- (BOOL)_parseFileExtensionCriteriaFromPropertyList:(id)arg1; +- (BOOL)_parseCriteriaFromPropertyList:(id)arg1; +- (BOOL)_parseClientCriteriaFromPropertyList:(id)arg1; +- (void)storeCachedResponse:(id)arg1 forRequest:(id)arg2; +- (void)saveMemoryCacheToDisk; +- (void)removeCachedResponseForRequest:(id)arg1; +- (void)removeAllCachedResponses; +- (void)purgeMemoryCache; +@property(readonly, nonatomic) unsigned long long memoryCapacity; +@property(readonly, nonatomic) unsigned long long diskCapacity; +@property(readonly, nonatomic) unsigned long long currentMemoryUsage; +@property(readonly, nonatomic) unsigned long long currentDiskUsage; +- (id)cachedResponseForRequest:(id)arg1; +- (BOOL)reloadWithPropertyList:(id)arg1; +- (BOOL)isUsableByClientWithIdentifier:(id)arg1; +- (BOOL)criteriaMatchesRequest:(id)arg1; +- (id)initWithPropertyList:(id)arg1; +- (id)init; + +@end + diff --git a/mas-cli/Headers/CommerceKit/ISURLCacheGroup.h b/mas-cli/Headers/CommerceKit/ISURLCacheGroup.h new file mode 100644 index 0000000..3274f37 --- /dev/null +++ b/mas-cli/Headers/CommerceKit/ISURLCacheGroup.h @@ -0,0 +1,43 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSURLCache.h" + +@class NSArray, NSLock, NSString; + +@interface ISURLCacheGroup : NSURLCache +{ + NSArray *_caches; + NSString *_clientIdentifier; + NSLock *_lock; +} + ++ (id)sharedInstance; ++ (void)setSharedInstance:(id)arg1; +@property(readonly) NSString *clientIdentifier; // @synthesize clientIdentifier=_clientIdentifier; +- (void).cxx_destruct; +- (void)_reloadForNewCaches:(id)arg1; +- (id)_ntsCacheForRequest:(id)arg1; +- (id)_ntsCacheForPersistentIdentifier:(id)arg1; +- (void)storeCachedResponse:(id)arg1 forRequest:(id)arg2; +- (void)setMemoryCapacity:(unsigned long long)arg1; +- (void)setDiskCapacity:(unsigned long long)arg1; +- (void)removeCachedResponseForRequest:(id)arg1; +- (void)removeAllCachedResponses; +- (unsigned long long)memoryCapacity; +- (unsigned long long)diskCapacity; +- (unsigned long long)currentMemoryUsage; +- (unsigned long long)currentDiskUsage; +- (id)cachedResponseForRequest:(id)arg1; +- (void)setCachesFromPropertyList:(id)arg1; +- (void)saveMemoryCacheToDisk; +- (void)purgeMemoryCache; +- (id)initWithMemoryCapacity:(unsigned long long)arg1 diskCapacity:(unsigned long long)arg2 diskPath:(id)arg3; +- (id)initWithClientIdentifier:(id)arg1; +- (id)init; + +@end + diff --git a/mas-cli/Headers/CommerceKit/ISURLOperationDelegate-Protocol.h b/mas-cli/Headers/CommerceKit/ISURLOperationDelegate-Protocol.h new file mode 100644 index 0000000..155816b --- /dev/null +++ b/mas-cli/Headers/CommerceKit/ISURLOperationDelegate-Protocol.h @@ -0,0 +1,18 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "ISOperationDelegate-Protocol.h" + +@class ISURLOperation, NSMutableURLRequest, NSURLResponse; + +@protocol ISURLOperationDelegate + +@optional +- (void)operation:(ISURLOperation *)arg1 willSendRequest:(NSMutableURLRequest *)arg2; +- (void)operation:(ISURLOperation *)arg1 didReceiveResponse:(NSURLResponse *)arg2; +- (void)operation:(ISURLOperation *)arg1 finishedWithOutput:(id)arg2; +@end + diff --git a/mas-cli/Headers/CommerceKit/MBSetupAssistantDelegateConfiguration-Protocol.h b/mas-cli/Headers/CommerceKit/MBSetupAssistantDelegateConfiguration-Protocol.h new file mode 100644 index 0000000..3aad4ed --- /dev/null +++ b/mas-cli/Headers/CommerceKit/MBSetupAssistantDelegateConfiguration-Protocol.h @@ -0,0 +1,19 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +@class NSDictionary, NSString; + +@protocol MBSetupAssistantDelegateConfiguration +- (void)completeSetupWithResponse:(NSDictionary *)arg1 handler:(void (^)(BOOL, NSError *))arg2; +- (NSDictionary *)delegateSetupRequest; +- (NSString *)delegateIdentifier; + +@optional +- (void)terminateSetupCompletion; +- (NSString *)delegateAccountInformation; +- (void)completeSetupWithResponse:(NSDictionary *)arg1 context:(long long)arg2 handler:(void (^)(BOOL, NSError *))arg3; +@end + diff --git a/mas-cli/Headers/CommerceKit/NSArray-CKPushNotification.h b/mas-cli/Headers/CommerceKit/NSArray-CKPushNotification.h new file mode 100644 index 0000000..5684f38 --- /dev/null +++ b/mas-cli/Headers/CommerceKit/NSArray-CKPushNotification.h @@ -0,0 +1,13 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSArray.h" + +@interface NSArray (CKPushNotification) ++ (id)arrayWithMediaTypeMask:(long long)arg1; +- (long long)mediaTypeMask; +@end + diff --git a/mas-cli/Headers/CommerceKit/NSBundle-ISAdditions.h b/mas-cli/Headers/CommerceKit/NSBundle-ISAdditions.h new file mode 100644 index 0000000..1740333 --- /dev/null +++ b/mas-cli/Headers/CommerceKit/NSBundle-ISAdditions.h @@ -0,0 +1,12 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSBundle.h" + +@interface NSBundle (ISAdditions) ++ (id)pathForITunesStoreResource:(id)arg1 ofType:(id)arg2; +@end + diff --git a/mas-cli/Headers/CommerceKit/NSCoding-Protocol.h b/mas-cli/Headers/CommerceKit/NSCoding-Protocol.h new file mode 100644 index 0000000..fa8a380 --- /dev/null +++ b/mas-cli/Headers/CommerceKit/NSCoding-Protocol.h @@ -0,0 +1,13 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +@class NSCoder; + +@protocol NSCoding +- (id)initWithCoder:(NSCoder *)arg1; +- (void)encodeWithCoder:(NSCoder *)arg1; +@end + diff --git a/mas-cli/Headers/CommerceKit/NSCopying-Protocol.h b/mas-cli/Headers/CommerceKit/NSCopying-Protocol.h new file mode 100644 index 0000000..10a8b7b --- /dev/null +++ b/mas-cli/Headers/CommerceKit/NSCopying-Protocol.h @@ -0,0 +1,10 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +@protocol NSCopying +- (id)copyWithZone:(struct _NSZone *)arg1; +@end + diff --git a/mas-cli/Headers/CommerceKit/NSMutableCopying-Protocol.h b/mas-cli/Headers/CommerceKit/NSMutableCopying-Protocol.h new file mode 100644 index 0000000..a4edc4d --- /dev/null +++ b/mas-cli/Headers/CommerceKit/NSMutableCopying-Protocol.h @@ -0,0 +1,10 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +@protocol NSMutableCopying +- (id)mutableCopyWithZone:(struct _NSZone *)arg1; +@end + diff --git a/mas-cli/Headers/CommerceKit/NSObject-Protocol.h b/mas-cli/Headers/CommerceKit/NSObject-Protocol.h new file mode 100644 index 0000000..3320b3c --- /dev/null +++ b/mas-cli/Headers/CommerceKit/NSObject-Protocol.h @@ -0,0 +1,33 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +@class NSString, Protocol; + +@protocol NSObject +@property(readonly, copy) NSString *description; +@property(readonly) Class superclass; +@property(readonly) unsigned long long hash; +- (struct _NSZone *)zone; +- (unsigned long long)retainCount; +- (id)autorelease; +- (oneway void)release; +- (id)retain; +- (BOOL)respondsToSelector:(SEL)arg1; +- (BOOL)conformsToProtocol:(Protocol *)arg1; +- (BOOL)isMemberOfClass:(Class)arg1; +- (BOOL)isKindOfClass:(Class)arg1; +- (BOOL)isProxy; +- (id)performSelector:(SEL)arg1 withObject:(id)arg2 withObject:(id)arg3; +- (id)performSelector:(SEL)arg1 withObject:(id)arg2; +- (id)performSelector:(SEL)arg1; +- (id)self; +- (Class)class; +- (BOOL)isEqual:(id)arg1; + +@optional +@property(readonly, copy) NSString *debugDescription; +@end + diff --git a/mas-cli/Headers/CommerceKit/NSProcessInfo-SuddenTerminaton.h b/mas-cli/Headers/CommerceKit/NSProcessInfo-SuddenTerminaton.h new file mode 100644 index 0000000..a2bcc69 --- /dev/null +++ b/mas-cli/Headers/CommerceKit/NSProcessInfo-SuddenTerminaton.h @@ -0,0 +1,12 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSProcessInfo.h" + +@interface NSProcessInfo (SuddenTerminaton) ++ (long long)suddenTerminationDisablingCount; +@end + diff --git a/mas-cli/Headers/CommerceKit/NSURLConnectionDelegate-Protocol.h b/mas-cli/Headers/CommerceKit/NSURLConnectionDelegate-Protocol.h new file mode 100644 index 0000000..c62f45e --- /dev/null +++ b/mas-cli/Headers/CommerceKit/NSURLConnectionDelegate-Protocol.h @@ -0,0 +1,21 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSObject.h" + +@class NSError, NSURLAuthenticationChallenge, NSURLConnection, NSURLProtectionSpace; + +@protocol NSURLConnectionDelegate + +@optional +- (void)connection:(NSURLConnection *)arg1 didCancelAuthenticationChallenge:(NSURLAuthenticationChallenge *)arg2; +- (void)connection:(NSURLConnection *)arg1 didReceiveAuthenticationChallenge:(NSURLAuthenticationChallenge *)arg2; +- (BOOL)connection:(NSURLConnection *)arg1 canAuthenticateAgainstProtectionSpace:(NSURLProtectionSpace *)arg2; +- (void)connection:(NSURLConnection *)arg1 willSendRequestForAuthenticationChallenge:(NSURLAuthenticationChallenge *)arg2; +- (BOOL)connectionShouldUseCredentialStorage:(NSURLConnection *)arg1; +- (void)connection:(NSURLConnection *)arg1 didFailWithError:(NSError *)arg2; +@end + diff --git a/mas-cli/Headers/CommerceKit/NSWorkspace-InstalledApp.h b/mas-cli/Headers/CommerceKit/NSWorkspace-InstalledApp.h new file mode 100644 index 0000000..61a47d9 --- /dev/null +++ b/mas-cli/Headers/CommerceKit/NSWorkspace-InstalledApp.h @@ -0,0 +1,12 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSWorkspace.h" + +@interface NSWorkspace (InstalledApp) +- (id)installedAbsolutePathForAppBundleWithIdentifier:(id)arg1; +@end + diff --git a/mas-cli/Headers/CommerceKit/SSMutableURLRequestProperties.h b/mas-cli/Headers/CommerceKit/SSMutableURLRequestProperties.h new file mode 100644 index 0000000..18217e2 --- /dev/null +++ b/mas-cli/Headers/CommerceKit/SSMutableURLRequestProperties.h @@ -0,0 +1,31 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import + +@class NSData, NSDictionary, NSString, NSURL; + +@interface SSMutableURLRequestProperties : SSURLRequestProperties +{ +} + +- (void)setValue:(id)arg1 forRequestParameter:(id)arg2; +- (void)setValue:(id)arg1 forHTTPHeaderField:(id)arg2; +@property(retain) NSURL *URL; // @dynamic URL; +@property(copy) NSString *URLBagKey; // @dynamic URLBagKey; +@property double timeoutInterval; // @dynamic timeoutInterval; +@property(copy) NSDictionary *requestParameters; // @dynamic requestParameters; +@property(getter=isITunesStoreRequest) BOOL ITunesStoreRequest; // @dynamic ITunesStoreRequest; +@property(copy) NSString *HTTPMethod; // @dynamic HTTPMethod; +@property(copy) NSDictionary *HTTPHeaders; // @dynamic HTTPHeaders; +@property(copy) NSData *HTTPBody; // @dynamic HTTPBody; +@property(copy) NSString *clientIdentifier; // @dynamic clientIdentifier; +@property unsigned long long cachePolicy; // @dynamic cachePolicy; +@property long long allowedRetryCount; // @dynamic allowedRetryCount; +- (id)copyWithZone:(struct _NSZone *)arg1; + +@end + diff --git a/mas-cli/Headers/CommerceKit/SSRemoteNotification.h b/mas-cli/Headers/CommerceKit/SSRemoteNotification.h new file mode 100644 index 0000000..1485763 --- /dev/null +++ b/mas-cli/Headers/CommerceKit/SSRemoteNotification.h @@ -0,0 +1,31 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSObject.h" + +@class NSDictionary, NSNumber, NSString; + +@interface SSRemoteNotification : NSObject +{ + NSDictionary *_userInfo; +} + +- (void).cxx_destruct; +- (id)_valueForAlertKey:(id)arg1; +@property(readonly, nonatomic) NSDictionary *notificationUserInfo; +- (id)valueForKey:(id)arg1; +@property(readonly, nonatomic) NSString *soundFileName; +@property(readonly, nonatomic) id badgeValue; +@property(readonly, nonatomic) NSString *alertTitleString; +@property(readonly, nonatomic) NSString *alertOKString; +@property(readonly, nonatomic) NSString *alertCancelString; +@property(readonly, nonatomic) NSString *alertBodyString; +@property(readonly, nonatomic) NSNumber *targetDSID; +@property(readonly, nonatomic) long long actionType; +- (id)initWithNotificationUserInfo:(id)arg1; + +@end + diff --git a/mas-cli/Headers/CommerceKit/SSRestoreContentItem.h b/mas-cli/Headers/CommerceKit/SSRestoreContentItem.h new file mode 100644 index 0000000..9f31695 --- /dev/null +++ b/mas-cli/Headers/CommerceKit/SSRestoreContentItem.h @@ -0,0 +1,48 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSObject.h" + +@class NSMutableDictionary, NSNumber, NSString; + +@interface SSRestoreContentItem : NSObject +{ + NSNumber *_accountID; + NSString *_appleID; + NSString *_bundleID; + NSNumber *_cloudMatchStatus; + BOOL _isRestore; + NSMutableDictionary *_properties; +} + +@property(copy, nonatomic) NSString *bundleID; // @synthesize bundleID=_bundleID; +- (void).cxx_destruct; +- (void)_setValue:(id)arg1 forProperty:(id)arg2; +- (id)_restoreKeyForDownloadProperty:(id)arg1; +- (id)_restoreKeyForAssetProperty:(id)arg1; +@property(copy, nonatomic) NSString *installPath; +@property(copy, nonatomic) NSString *videoDimensions; +@property(copy, nonatomic) NSString *storeSoftwareVersionID; +@property(retain, nonatomic) NSNumber *storeItemID; +@property(copy, nonatomic) NSString *storeFrontID; +@property(copy, nonatomic) NSString *storeFlavor; +@property(retain, nonatomic) NSNumber *storeAccountID; +@property(copy, nonatomic) NSString *storeAccountAppleID; +- (void)setValue:(id)arg1 forDownloadProperty:(id)arg2; +- (void)setValue:(id)arg1 forAssetProperty:(id)arg2; +@property(copy, nonatomic) NSString *podcastEpisodeGUID; +@property(nonatomic, getter=isDRMFree) BOOL DRMFree; +@property(copy, nonatomic) NSString *downloadKind; +@property(retain, nonatomic) NSNumber *cloudMatchStatus; +@property(retain, nonatomic) NSNumber *cloudItemID; +- (BOOL)isEligibleForRestore:(id *)arg1; +- (id)copyRestoreDictionary; +- (id)initWithRestoreDownload:(id)arg1; +- (id)init; +- (id)_initSSRestoreContentItem; + +@end + diff --git a/mas-cli/Headers/CommerceKit/SSURLRequestProperties.h b/mas-cli/Headers/CommerceKit/SSURLRequestProperties.h new file mode 100644 index 0000000..9330270 --- /dev/null +++ b/mas-cli/Headers/CommerceKit/SSURLRequestProperties.h @@ -0,0 +1,52 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSObject.h" + +#import "NSCoding.h" +#import "NSCopying.h" +#import "NSMutableCopying.h" + +@class NSData, NSDictionary, NSString, NSURL; + +@interface SSURLRequestProperties : NSObject +{ + long long _allowedRetryCount; + unsigned long long _cachePolicy; + NSString *_clientIdentifier; + NSData *_httpBody; + NSDictionary *_httpHeaders; + NSString *_httpMethod; + BOOL _isITunesStoreRequest; + NSDictionary *_requestParameters; + double _timeoutInterval; + NSString *_urlBagKey; + NSURL *_url; +} + +- (void).cxx_destruct; +@property(readonly) NSURL *URL; +@property(readonly, copy) NSString *URLBagKey; +@property(readonly) double timeoutInterval; +@property(readonly, copy) NSDictionary *requestParameters; +@property(readonly, getter=isITunesStoreRequest) BOOL ITunesStoreRequest; +@property(readonly, copy) NSString *HTTPMethod; +@property(readonly, copy) NSDictionary *HTTPHeaders; +@property(readonly, copy) NSData *HTTPBody; +- (id)copyURLRequest; +@property(readonly, copy) NSString *clientIdentifier; +@property(readonly) unsigned long long cachePolicy; +@property(readonly) long long allowedRetryCount; +- (id)mutableCopyWithZone:(struct _NSZone *)arg1; +- (id)copyWithZone:(struct _NSZone *)arg1; +- (id)initWithCoder:(id)arg1; +- (void)encodeWithCoder:(id)arg1; +- (id)initWithURLRequest:(id)arg1; +- (id)init; +- (id)_initCommon; + +@end + diff --git a/mas-cli/Headers/CommerceKit/SetupAssistantPlugin.h b/mas-cli/Headers/CommerceKit/SetupAssistantPlugin.h new file mode 100644 index 0000000..b34d835 --- /dev/null +++ b/mas-cli/Headers/CommerceKit/SetupAssistantPlugin.h @@ -0,0 +1,33 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSObject.h" + +#import "MBSetupAssistantDelegateConfiguration.h" + +@class ISStoreClient, NSString; + +@interface SetupAssistantPlugin : NSObject +{ + ISStoreClient *_storeClient; + NSString *_appName; + NSString *_appVersion; + NSString *_appPreferencesDomain; + NSString *_listenerName; +} + +@property(readonly, retain) NSString *listenerName; // @synthesize listenerName=_listenerName; +- (void).cxx_destruct; +- (id)storeUserAgentString; +- (void)terminateSetupCompletion; +- (void)completeSetupWithResponse:(id)arg1 handler:(CDUnknownBlockType)arg2; +- (id)delegateAccountInformation; +- (id)delegateSetupRequest; +- (id)delegateIdentifier; +- (id)initWithStoreClient:(id)arg1; + +@end + diff --git a/mas-cli/Headers/StoreFoundation/CDStructures.h b/mas-cli/Headers/StoreFoundation/CDStructures.h new file mode 100644 index 0000000..234b944 --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/CDStructures.h @@ -0,0 +1,27 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#pragma mark Blocks + +typedef void (^CDUnknownBlockType)(void); // return type and parameters are unknown + +#pragma mark Named Structures + +struct CGPoint { + double x; + double y; +}; + +struct CGRect { + struct CGPoint origin; + struct CGSize size; +}; + +struct CGSize { + double width; + double height; +}; + diff --git a/mas-cli/Headers/StoreFoundation/CKBook.h b/mas-cli/Headers/StoreFoundation/CKBook.h new file mode 100644 index 0000000..aa68a85 --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/CKBook.h @@ -0,0 +1,80 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSObject.h" + +#import "NSCopying.h" +#import "NSSecureCoding.h" + +@class NSDate, NSDictionary, NSMutableDictionary, NSNumber, NSString, NSURL, SSPurchase; + +@interface CKBook : NSObject +{ + BOOL _isLocal; + NSString *_path; + NSString *_title; + NSString *_author; + NSString *_category; + NSString *_sortName; + NSDate *_purchaseDate; + NSString *_uniqueIdentifier; + NSNumber *_itemIdentifier; + NSNumber *_publicationVersion; + NSString *_publicationDisplayVersion; + NSDictionary *_bookInfo; + NSDictionary *_iTunesMetaData; + NSString *_redownloadBuyParams; + NSNumber *_downloadAssetSize; + NSString *_updateBuyParams; + NSDate *_expectedReleaseDate; + NSNumber *_daapPurchasedToken; + NSNumber *_daapItemIdentifier; + NSURL *_coverImageURL; + NSNumber *_jaliscoItemIdentifier; + NSMutableDictionary *_externalMetadata; +} + ++ (id)_imageFetchQueue; ++ (BOOL)supportsSecureCoding; +@property(retain) NSMutableDictionary *externalMetadata; // @synthesize externalMetadata=_externalMetadata; +@property(copy) NSNumber *jaliscoItemIdentifier; // @synthesize jaliscoItemIdentifier=_jaliscoItemIdentifier; +@property(copy) NSURL *coverImageURL; // @synthesize coverImageURL=_coverImageURL; +@property(copy) NSNumber *daapItemIdentifier; // @synthesize daapItemIdentifier=_daapItemIdentifier; +@property(copy) NSNumber *daapPurchasedToken; // @synthesize daapPurchasedToken=_daapPurchasedToken; +@property(copy) NSDate *expectedReleaseDate; // @synthesize expectedReleaseDate=_expectedReleaseDate; +@property(copy) NSString *updateBuyParams; // @synthesize updateBuyParams=_updateBuyParams; +@property(copy) NSNumber *downloadAssetSize; // @synthesize downloadAssetSize=_downloadAssetSize; +@property(copy) NSString *redownloadBuyParams; // @synthesize redownloadBuyParams=_redownloadBuyParams; +@property(copy) NSDictionary *iTunesMetaData; // @synthesize iTunesMetaData=_iTunesMetaData; +@property(copy) NSDictionary *bookInfo; // @synthesize bookInfo=_bookInfo; +@property(copy) NSString *publicationDisplayVersion; // @synthesize publicationDisplayVersion=_publicationDisplayVersion; +@property(copy) NSNumber *publicationVersion; // @synthesize publicationVersion=_publicationVersion; +@property(copy, nonatomic) NSNumber *itemIdentifier; // @synthesize itemIdentifier=_itemIdentifier; +@property(copy) NSString *uniqueIdentifier; // @synthesize uniqueIdentifier=_uniqueIdentifier; +@property(copy) NSDate *purchaseDate; // @synthesize purchaseDate=_purchaseDate; +@property(copy) NSString *sortName; // @synthesize sortName=_sortName; +@property(copy) NSString *category; // @synthesize category=_category; +@property(copy) NSString *author; // @synthesize author=_author; +@property(copy) NSString *title; // @synthesize title=_title; +@property BOOL isLocal; // @synthesize isLocal=_isLocal; +@property(copy) NSString *path; // @synthesize path=_path; +- (void).cxx_destruct; +- (id)getItemIdentifier; +@property(readonly) BOOL isPreorder; +@property(readonly) SSPurchase *updatePurchase; +@property(readonly) SSPurchase *redownloadPurchase; +- (void)fetchCoverImageWithCompletionHandler:(CDUnknownBlockType)arg1; +- (void)_copyLibraryPropertiesFromBook:(id)arg1; +- (void)setValue:(id)arg1 forUndefinedKey:(id)arg2; +- (id)valueForUndefinedKey:(id)arg1; +- (id)description; +- (BOOL)isEqualToBook:(id)arg1; +- (id)copyWithZone:(struct _NSZone *)arg1; +- (id)initWithCoder:(id)arg1; +- (void)encodeWithCoder:(id)arg1; + +@end + diff --git a/mas-cli/Headers/StoreFoundation/CKBookFetchCoverImageOperation.h b/mas-cli/Headers/StoreFoundation/CKBookFetchCoverImageOperation.h new file mode 100644 index 0000000..b98124a --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/CKBookFetchCoverImageOperation.h @@ -0,0 +1,25 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import + +@class CKBook, NSImage; + +@interface CKBookFetchCoverImageOperation : ISOperation +{ + CKBook *_book; + NSImage *_coverImage; +} + +@property(readonly) NSImage *coverImage; // @synthesize coverImage=_coverImage; +@property(readonly) CKBook *book; // @synthesize book=_book; +- (void).cxx_destruct; +- (id)_downloadCoverImageFromURL:(id)arg1 returningError:(id *)arg2; +- (void)run; +- (id)initWithBook:(id)arg1 storeClient:(id)arg2; + +@end + diff --git a/mas-cli/Headers/StoreFoundation/CKDAAPPurchasedItem.h b/mas-cli/Headers/StoreFoundation/CKDAAPPurchasedItem.h new file mode 100644 index 0000000..49de8c2 --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/CKDAAPPurchasedItem.h @@ -0,0 +1,25 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import + +#import "NSSecureCoding.h" + +@class NSDictionary; + +@interface CKDAAPPurchasedItem : CKBook +{ + NSDictionary *_daapDictionary; +} + ++ (BOOL)supportsSecureCoding; +@property(copy) NSDictionary *daapDictionary; // @synthesize daapDictionary=_daapDictionary; +- (void).cxx_destruct; +- (id)initWithCoder:(id)arg1; +- (void)encodeWithCoder:(id)arg1; + +@end + diff --git a/mas-cli/Headers/StoreFoundation/CKDockMessaging.h b/mas-cli/Headers/StoreFoundation/CKDockMessaging.h new file mode 100644 index 0000000..55fa23c --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/CKDockMessaging.h @@ -0,0 +1,33 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSObject.h" + +@class NSMutableDictionary, NSObject; + +@interface CKDockMessaging : NSObject +{ + NSObject *_xpcDockConnection; + NSMutableDictionary *_cachedIconPaths; +} + ++ (id)sharedInstance; +- (void).cxx_destruct; +- (void)loadIconForProductWithInfo:(id)arg1 storeClient:(id)arg2; +- (void)loadIconForProductID:(id)arg1 fromURL:(id)arg2 storeClient:(id)arg3; +- (id)cachedIconPathForProductID:(id)arg1; +- (void)sendMessageForDownload:(id)arg1 status:(id)arg2; +- (void)sendDockMessage:(int)arg1; +- (void)sendInitialMessageForDownload:(id)arg1; +- (void)sendInitialMessageForProductID:(id)arg1 title:(id)arg2 bundleID:(id)arg3 action:(int)arg4 flyOrigin:(struct CGRect)arg5 imagePath:(id)arg6; +- (id)xpcObjectForDownload:(id)arg1 status:(id)arg2; +- (id)xpcProgressObjectWithType:(int)arg1 productID:(const char *)arg2 title:(const char *)arg3 bundleID:(const char *)arg4 imagePath:(const char *)arg5 status:(int)arg6 progress:(double)arg7 installPath:(const char *)arg8 downloadedBytes:(double)arg9 totalBytes:(double)arg10; +- (id)_xpcDockConnection; +- (id)_xpcDispatchQueue; +- (id)init; + +@end + diff --git a/mas-cli/Headers/StoreFoundation/CKLocalization.h b/mas-cli/Headers/StoreFoundation/CKLocalization.h new file mode 100644 index 0000000..ef53262 --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/CKLocalization.h @@ -0,0 +1,14 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSObject.h" + +@interface CKLocalization : NSObject +{ +} + +@end + diff --git a/mas-cli/Headers/StoreFoundation/CKRootHelper.h b/mas-cli/Headers/StoreFoundation/CKRootHelper.h new file mode 100644 index 0000000..d24c493 --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/CKRootHelper.h @@ -0,0 +1,24 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSObject.h" + +@class NSLock, NSXPCConnection; + +@interface CKRootHelper : NSObject +{ + NSXPCConnection *_connection; + NSLock *_connectionLock; +} + ++ (id)sharedInstance; +- (void).cxx_destruct; +- (id)proxy; +- (id)init; +- (id)_connection; + +@end + diff --git a/mas-cli/Headers/StoreFoundation/CKSoftwareProduct.h b/mas-cli/Headers/StoreFoundation/CKSoftwareProduct.h new file mode 100644 index 0000000..319c080 --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/CKSoftwareProduct.h @@ -0,0 +1,71 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +@class NSDate, NSNumber, NSString, NSValue; + +@interface CKSoftwareProduct : NSObject +{ + BOOL _installed; + BOOL _isVPPLicensed; + BOOL _vppLicenseRevoked; + BOOL _isMachineLicensed; + BOOL _isLegacyApp; + BOOL _metadataChangeIsExpected; + NSString *_accountOpaqueDSID; + NSString *_accountIdentifier; + NSString *_bundleIdentifier; + NSString *_bundleVersion; + NSString *_bundlePath; + NSString *_receiptType; + NSNumber *_itemIdentifier; + NSNumber *_storeFrontIdentifier; + NSNumber *_versionIdentifier; + NSValue *_mdItemRef; + NSString *_vppLicenseOrganizationName; + NSDate *_vppLicenseExpirationDate; + NSDate *_vppLicenseRenewalDate; + NSString *_vppLicenseCancellationReason; + long long _source; + NSString *_expectedBundleVersion; + NSNumber *_expectedStoreVersion; +} + ++ (id)productAtPath:(id)arg1; ++ (id)productPathToUpgradeForBundleIdentifier:(id)arg1 versionNumberString:(id)arg2; ++ (BOOL)supportsSecureCoding; +@property(copy) NSNumber *expectedStoreVersion; // @synthesize expectedStoreVersion=_expectedStoreVersion; +@property(copy) NSString *expectedBundleVersion; // @synthesize expectedBundleVersion=_expectedBundleVersion; +@property BOOL metadataChangeIsExpected; // @synthesize metadataChangeIsExpected=_metadataChangeIsExpected; +@property long long source; // @synthesize source=_source; +@property BOOL isLegacyApp; // @synthesize isLegacyApp=_isLegacyApp; +@property BOOL isMachineLicensed; // @synthesize isMachineLicensed=_isMachineLicensed; +@property(retain) NSString *vppLicenseCancellationReason; // @synthesize vppLicenseCancellationReason=_vppLicenseCancellationReason; +@property(retain) NSDate *vppLicenseRenewalDate; // @synthesize vppLicenseRenewalDate=_vppLicenseRenewalDate; +@property(retain) NSDate *vppLicenseExpirationDate; // @synthesize vppLicenseExpirationDate=_vppLicenseExpirationDate; +@property(retain) NSString *vppLicenseOrganizationName; // @synthesize vppLicenseOrganizationName=_vppLicenseOrganizationName; +@property BOOL vppLicenseRevoked; // @synthesize vppLicenseRevoked=_vppLicenseRevoked; +@property BOOL isVPPLicensed; // @synthesize isVPPLicensed=_isVPPLicensed; +@property BOOL installed; // @synthesize installed=_installed; +@property(retain) NSValue *mdItemRef; // @synthesize mdItemRef=_mdItemRef; +@property(retain) NSNumber *versionIdentifier; // @synthesize versionIdentifier=_versionIdentifier; +@property(retain) NSNumber *storeFrontIdentifier; // @synthesize storeFrontIdentifier=_storeFrontIdentifier; +@property(retain) NSNumber *itemIdentifier; // @synthesize itemIdentifier=_itemIdentifier; +@property(retain) NSString *receiptType; // @synthesize receiptType=_receiptType; +@property(retain) NSString *bundlePath; // @synthesize bundlePath=_bundlePath; +@property(retain) NSString *bundleVersion; // @synthesize bundleVersion=_bundleVersion; +@property(retain) NSString *bundleIdentifier; // @synthesize bundleIdentifier=_bundleIdentifier; +@property(retain) NSString *accountIdentifier; // @synthesize accountIdentifier=_accountIdentifier; +@property(retain) NSString *accountOpaqueDSID; // @synthesize accountOpaqueDSID=_accountOpaqueDSID; +//- (void).cxx_destruct; +- (id)copyWithZone:(struct _NSZone *)arg1; +- (id)initWithCoder:(id)arg1; +- (void)encodeWithCoder:(id)arg1; +@property(readonly) NSString *appName; +- (id)description; +@property(readonly) NSString *sourceString; + +@end + diff --git a/mas-cli/Headers/StoreFoundation/CKUpdate.h b/mas-cli/Headers/StoreFoundation/CKUpdate.h new file mode 100644 index 0000000..524b573 --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/CKUpdate.h @@ -0,0 +1,43 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSObject.h" + +#import "NSSecureCoding.h" + +@class NSDate, NSDictionary, NSMutableDictionary, NSNumber, NSString, SSPurchase; + +@interface CKUpdate : NSObject +{ + NSMutableDictionary *_dictionary; + long long _softwareUpdateState; +} + ++ (BOOL)supportsSecureCoding; +@property(nonatomic) long long softwareUpdateState; // @synthesize softwareUpdateState=_softwareUpdateState; +@property(readonly) NSDictionary *dictionary; // @synthesize dictionary=_dictionary; +- (void).cxx_destruct; +@property(readonly, nonatomic) NSString *autoUpdateAbortReason; +@property(nonatomic) BOOL hasBeenSeenByUser; +@property(readonly, nonatomic) BOOL didFailToAutoInstall; +- (double)_autoInstallUpdateMaximumRetryInterval; +@property(copy, nonatomic) NSDate *firstAutoUpdateAttemptDate; +@property(nonatomic) long long autoUpdateAbortCode; +@property(nonatomic) BOOL isStaged; +- (id)description; +@property(readonly, nonatomic) NSString *title; +@property(readonly, nonatomic) NSDate *releaseDate; +@property(readonly, nonatomic) NSString *bundleVersion; // @dynamic bundleVersion; +@property(readonly, nonatomic) NSString *bundleID; // @dynamic bundleID; +@property(readonly, nonatomic) NSString *actionParams; // @dynamic actionParams; +@property(readonly, nonatomic) NSNumber *itemIdentifier; // @dynamic itemIdentifier; +@property(readonly, nonatomic) SSPurchase *purchase; +- (id)initWithCoder:(id)arg1; +- (void)encodeWithCoder:(id)arg1; +- (id)initWithDictionary:(id)arg1; + +@end + diff --git a/mas-cli/Headers/StoreFoundation/ISAccountService-Protocol.h b/mas-cli/Headers/StoreFoundation/ISAccountService-Protocol.h new file mode 100644 index 0000000..a25224d --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/ISAccountService-Protocol.h @@ -0,0 +1,53 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +@class ISAuthenticationContext, ISAuthenticationResponse, ISStoreAccount, NSDictionary, NSNumber, NSString, NSURL; + +@protocol ISAccountService +- (void)completeSetupWithResponse:(NSDictionary *)arg1 withReply:(void (^)(BOOL, NSError *))arg2; +- (void)handlePushNotificationMessage:(NSDictionary *)arg1; +- (void)isRegisteredForAccount:(NSNumber *)arg1 andMask:(long long)arg2 withReply:(void (^)(BOOL, NSError *, BOOL))arg3; +- (void)disableAutoDownloadWithReply:(void (^)(BOOL, NSError *))arg1; +- (void)enableAutoDownloadForEnvironmentNamed:(NSString *)arg1 withReply:(void (^)(BOOL, NSError *))arg2; +- (void)getEnabledMediaTypesWithReply:(void (^)(BOOL, NSError *, long long))arg1; +- (void)registerDeviceTokenForEnvironmentNamed:(NSString *)arg1 withReply:(void (^)(BOOL, NSError *))arg2; +- (void)recommendedAppleIDForAccountSignIn:(void (^)(NSString *))arg1; +- (void)iCloudDSIDReplyBlock:(void (^)(NSString *))arg1; +- (void)setStoreFrontID:(NSString *)arg1; +- (void)storeFrontWithReplyBlock:(void (^)(NSString *))arg1; +- (void)shouldSendGUIDWithRequestForURL:(NSURL *)arg1 withReplyBlock:(void (^)(BOOL))arg2; +- (void)consumeCookiesWithHTTPHeaders:(NSDictionary *)arg1 fromURL:(NSURL *)arg2; +- (void)httpHeadersForURL:(NSURL *)arg1 forDSID:(NSNumber *)arg2 includeADIHeaders:(BOOL)arg3 withReplyBlock:(void (^)(NSDictionary *))arg4; +//- (void)removeURLBagObserver:(id )arg1; +//- (void)addURLBagObserver:(id )arg1; +//- (void)dictionaryWithReplyBlock:(void (^)(NSDictionary *))arg1; +//- (void)isValidWithReplyBlock:(void (^)(BOOL))arg1; +//- (void)regexWithKey:(NSString *)arg1 matchesString:(NSString *)arg2 replyBlock:(void (^)(BOOL))arg3; +//- (void)invalidateAllBags; +//- (void)loadURLBagWithType:(unsigned long long)arg1 replyBlock:(void (^)(BOOL, BOOL, NSError *))arg2; +//- (void)needsSilentADIActionForURL:(NSURL *)arg1 withReplyBlock:(void (^)(BOOL))arg2; +//- (void)urlIsTrustedByURLBag:(NSURL *)arg1 withReplyBlock:(void (^)(BOOL))arg2; +//- (void)valueForURLBagKey:(NSString *)arg1 withReplyBlock:(void (^)(id))arg2; +//- (void)updatePasswordSettings:(NSDictionary *)arg1 replyBlock:(void (^)(BOOL, NSError *))arg2; +//- (void)getPasswordSettingsWithReplyBlock:(void (^)(NSDictionary *, NSError *))arg1; +//- (void)getEligibilityForService:(NSNumber *)arg1 replyBlock:(void (^)(NSNumber *, NSError *))arg2; +//- (void)eligibilityForService:(NSNumber *)arg1 replyBlock:(void (^)(NSNumber *))arg2; +//- (void)retailStoreDemoModeReplyBlock:(void (^)(BOOL, NSString *, NSString *, BOOL))arg1; +//- (void)removeAccountStoreObserver:(id )arg1; +//- (void)addAccountStoreObserver:(id )arg1; +- (void)parseCreditStringForProtocol:(NSDictionary *)arg1; +//- (void)signOut; +//- (void)signInWithContext:(ISAuthenticationContext *)arg1 replyBlock:(void (^)(BOOL, ISStoreAccount *, NSError *))arg2; +- (void)addAccount:(ISStoreAccount *)arg1; +- (void)addAccountWithAuthenticationResponse:(ISAuthenticationResponse *)arg1 makePrimary:(BOOL)arg2 replyBlock:(void (^)(ISStoreAccount *))arg3; +- (void)accountWithAppleID:(NSString *)arg1 replyBlock:(void (^)(ISStoreAccount *))arg2; +- (void)accountWithDSID:(NSNumber *)arg1 replyBlock:(void (^)(ISStoreAccount *))arg2; +- (void)primaryAccountWithReplyBlock:(void (^)(ISStoreAccount *))arg1; +- (void)authIsExpiredWithReplyBlock:(void (^)(BOOL))arg1; +- (void)strongTokenForAccount:(ISStoreAccount *)arg1 withReplyBlock:(void (^)(NSString *))arg2; +- (void)accountsWithReplyBlock:(void (^)(NSArray *))arg1; +@end + diff --git a/mas-cli/Headers/StoreFoundation/ISAccountStoreObserver-Protocol.h b/mas-cli/Headers/StoreFoundation/ISAccountStoreObserver-Protocol.h new file mode 100644 index 0000000..43ff483 --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/ISAccountStoreObserver-Protocol.h @@ -0,0 +1,12 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +@class ISStoreAccount; + +@protocol ISAccountStoreObserver +- (void)primaryAccountDidChange:(ISStoreAccount *)arg1; +@end + diff --git a/mas-cli/Headers/StoreFoundation/ISAppleIDLookupOperation.h b/mas-cli/Headers/StoreFoundation/ISAppleIDLookupOperation.h new file mode 100644 index 0000000..1641723 --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/ISAppleIDLookupOperation.h @@ -0,0 +1,35 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import + +#import "ISURLOperationDelegate.h" + +@class ISPurchaseReceipt, NSString; + +@interface ISAppleIDLookupOperation : ISOperation +{ + ISPurchaseReceipt *mReceipt; + NSString *mAppleID; +} + ++ (id)appleIDLookupOperationForReceipt:(id)arg1 storeClient:(id)arg2; +@property(readonly) NSString *appleID; // @synthesize appleID=mAppleID; +- (void).cxx_destruct; +- (void)operation:(id)arg1 finishedWithOutput:(id)arg2; +- (void)run; +- (id)initWithReceipt:(id)arg1 storeClient:(id)arg2; +- (id)_newURLOperationWithURLBagType:(unsigned long long)arg1; +- (id)_requestBodyData; + +// Remaining properties +@property(readonly, copy) NSString *debugDescription; +@property(readonly, copy) NSString *description; +@property(readonly) unsigned long long hash; +@property(readonly) Class superclass; + +@end + diff --git a/mas-cli/Headers/StoreFoundation/ISAssetService-Protocol.h b/mas-cli/Headers/StoreFoundation/ISAssetService-Protocol.h new file mode 100644 index 0000000..23b54ca --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/ISAssetService-Protocol.h @@ -0,0 +1,83 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "ISServiceRemoteObject.h" + +@class CKSoftwareProduct, NSArray, NSDictionary, NSNumber, NSString, NSURL, SSDownload; + +@protocol ISAssetService +- (void)didClickOnWhatsNewMenuItem; +- (void)purchasedItemsWithReplyBlock:(void (^)(NSArray *))arg1; +- (void)pollForPurchasedItems:(BOOL)arg1; +- (void)redownloadBooksWithItemIdentifiers:(NSArray *)arg1 dsid:(NSNumber *)arg2; +- (void)pollForPurchasedBooksWithReplyBlock:(void (^)(BOOL))arg1; +- (void)removeLibraryObserver:(id )arg1; +- (void)addLibraryObserver:(id )arg1; +- (void)hasSampleWithItemIdentifier:(NSNumber *)arg1 replyBlock:(void (^)(BOOL, NSDictionary *))arg2; +- (void)bookWithInfo:(NSDictionary *)arg1 replyBlock:(void (^)(CKBook *))arg2; +- (void)bookAtIndexWithInfo:(NSDictionary *)arg1 replyBlock:(void (^)(CKBook *))arg2; +- (void)sortedBooksWithInfo:(NSDictionary *)arg1 replyBlock:(void (^)(NSArray *))arg2; +- (void)countOfBooksWithInfo:(NSDictionary *)arg1 replyBlock:(void (^)(unsigned long long))arg2; +- (void)softwareUpdateDidFinishBackgroundScanWithInfo:(NSDictionary *)arg1; +- (void)adaptableBundleIdentifiersWithReplyBlock:(void (^)(NSArray *))arg1; +- (void)adoptionCompletedForBundleIDWithInfo:(NSDictionary *)arg1 replyBlock:(void (^)(NSDictionary *))arg2; +- (void)adoptionEligibilityResponseWithReplyBlock:(void (^)(NSDictionary *))arg1; +- (void)adoptBundleIDsWithInfo:(NSDictionary *)arg1 replyBlock:(void (^)(BOOL, NSDictionary *, NSError *))arg2; +- (void)startAdoptionEligibilityCheckWithReplyBlock:(void (^)(BOOL, NSDictionary *))arg1; +- (void)processMDMManifestURL:(NSURL *)arg1 options:(NSDictionary *)arg2 storeClientType:(long long)arg3 replyBlock:(void (^)(BOOL, NSArray *, NSError *))arg4; +- (void)redownloadWithItemIdentifier:(long long)arg1 bundleIdentifier:(NSString *)arg2 storeClientType:(long long)arg3 replyBlock:(void (^)(BOOL, long long, NSString *, NSError *))arg4; +- (void)showInvite:(NSURL *)arg1 organizationName:(NSString *)arg2 storeClientType:(long long)arg3; +- (void)laterDidNotOccurWithDueToACPower:(BOOL)arg1; +- (void)nowIsLaterWithMode:(long long)arg1 countdownDeferred:(BOOL)arg2; +- (void)updateAutoInfoWithToken:(NSString *)arg1 replyBlock:(void (^)(NSDictionary *))arg2; +- (void)promptUserToOptInForAutoUpdateWithShowNotification:(BOOL)arg1; +- (void)shouldPromptForAutoUpdateOptInWithReplyBlock:(void (^)(BOOL))arg1; +- (void)isAutoUpdateEnabledWithReplyBlock:(void (^)(BOOL))arg1; +- (void)installedUpdatesJournalWithReplyBlock:(void (^)(NSArray *))arg1; +- (void)cancelUpdatesToBeInstalledLater; +- (void)appUpdatesToInstallLaterWithReplyBlock:(void (^)(NSArray *))arg1; +- (void)installAvailableUpdatesLaterWithMode:(long long)arg1; +- (void)shouldOfferDoItLaterForAvailableUpdatesWithReplyBlock:(void (^)(BOOL))arg1; +- (void)removeUpdateFromInstallLaterWithBundleID:(NSString *)arg1; +- (void)didFinishDownloadForUpdateWithItemIdentifier:(unsigned long long)arg1 didInstall:(BOOL)arg2; +- (void)willStartDownloadForUpdateWithIdentifier:(unsigned long long)arg1; +- (void)removeOSUpdateScanObserver:(id )arg1; +- (void)addOSUpdateScanObserver:(id )arg1; +- (void)startOSUpdateScanWithForceFullScan:(BOOL)arg1 reportProgressImmediately:(BOOL)arg2 launchedFromNotification:(BOOL)arg3 userHasSeenAllUpdates:(BOOL)arg4 checkForOtherUpdates:(BOOL)arg5; +- (void)unhideAllOSUpdatesWithReplyBlock:(void (^)(BOOL))arg1; +- (void)hideOSUpdatesWithProductKeys:(NSArray *)arg1 withReplyBlock:(void (^)(BOOL))arg2; +- (void)osUpdateScanInProgressWithReplyBlock:(void (^)(BOOL))arg1; +- (void)checkForUpdatesWithUserHasSeenUpdates:(BOOL)arg1 replyBlock:(void (^)(BOOL, NSArray *, NSError *))arg2; +- (void)cancelOSUpdates:(NSArray *)arg1; +- (void)removeOSUpdateProgressObserver:(id )arg1; +- (void)addOSUpdateProgressObserver:(id )arg1; +- (void)startAppUpdates:(NSArray *)arg1 andOSUpdates:(NSArray *)arg2 withDelegate:(id )arg3 replyBlock:(void (^)(BOOL, NSError *))arg4; +- (void)removeAvailableUpdatesObserver:(id )arg1; +- (void)addAvailableUpdatesObserver:(id )arg1; +- (void)incompatibleUpdatesWithReplyBlock:(void (^)(NSArray *))arg1; +- (void)availableUpdateWithItemIdentifier:(unsigned long long)arg1 replyBlock:(void (^)(CKUpdate *))arg2; +- (void)availableUpdatesWithReplyBlock:(void (^)(NSArray *))arg1; +- (void)availableUpdatesBadgeCountWithReplyBlock:(void (^)(unsigned long long))arg1; +- (void)requestVPPReceiptRenewalAtPath:(NSString *)arg1 bundleIdentifier:(NSString *)arg2 sandboxOptions:(NSDictionary *)arg3 replyBlock:(void (^)(BOOL, NSError *))arg4; +- (void)lookupAppleIDForApp:(CKSoftwareProduct *)arg1 replyBlock:(void (^)(NSString *))arg2; +- (void)shouldAllowAutoPushForBundleID:(NSString *)arg1 bundleVersion:(NSString *)arg2 replyBlock:(void (^)(BOOL))arg3; +- (void)renewReceiptForApplicationAtPath:(NSString *)arg1 withAppleID:(NSString *)arg2 password:(NSString *)arg3 forceSandbox:(BOOL)arg4 replyBlock:(void (^)(BOOL, NSError *))arg5; +- (void)renewReceiptForApplicationAtPath:(NSString *)arg1 withAppleID:(NSString *)arg2 password:(NSString *)arg3 forceSandbox:(BOOL)arg4 relaunchOnRenewal:(BOOL)arg5 replyBlock:(void (^)(BOOL, NSError *))arg6; +- (void)productAtPath:(NSString *)arg1 willBeUpdatedToBundleVersion:(NSString *)arg2 storeVersion:(NSNumber *)arg3; +- (void)productAtPath:(NSString *)arg1 wasUpdated:(BOOL)arg2 toBundleVersion:(NSString *)arg3 storeVersion:(NSNumber *)arg4; +- (void)httpPostBodyWithInstalledApps:(BOOL)arg1 bundledApps:(BOOL)arg2 conditionally:(BOOL)arg3 replyBlock:(void (^)(NSData *, BOOL, BOOL))arg4; +- (void)iconForApplicationWithBundeID:(NSString *)arg1 replyBlock:(void (^)(NSData *))arg2; +- (void)bundleInfoFromBundleAtPath:(NSString *)arg1 replyBlock:(void (^)(NSDictionary *))arg2; +- (void)productPathToUpgradeForBundleIdentifier:(NSString *)arg1 versionNumberString:(NSString *)arg2 replyBlock:(void (^)(NSString *))arg3; +- (void)isTrialVersionOfBundleIdentifier:(NSString *)arg1 replyBlock:(void (^)(BOOL))arg2; +- (void)receiptFromBundleAtPath:(NSString *)arg1 replyBlock:(void (^)(ISPurchaseReceipt *))arg2; +- (void)productAtPath:(NSString *)arg1 replyBlock:(void (^)(CKSoftwareProduct *))arg2; +- (void)performVPPReceiptRenewalIfNecessaryForDownload:(SSDownload *)arg1 replyBlock:(void (^)(BOOL, NSError *))arg2; +- (void)allProductsWithReplyBlock:(void (^)(NSArray *))arg1; +- (void)productForItemIdentifier:(unsigned long long)arg1 replyBlock:(void (^)(CKSoftwareProduct *))arg2; +- (void)productForBundleIdentifier:(NSString *)arg1 replyBlock:(void (^)(CKSoftwareProduct *))arg2; +@end + diff --git a/mas-cli/Headers/StoreFoundation/ISAuthenticationChallenge.h b/mas-cli/Headers/StoreFoundation/ISAuthenticationChallenge.h new file mode 100644 index 0000000..f4a09b4 --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/ISAuthenticationChallenge.h @@ -0,0 +1,31 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSObject.h" + +@class NSString; + +@interface ISAuthenticationChallenge : NSObject +{ + NSString *_localizedMessage; + NSString *_localizedTitle; +} + +@property(retain) NSString *localizedTitle; // @synthesize localizedTitle=_localizedTitle; +@property(retain) NSString *localizedMessage; // @synthesize localizedMessage=_localizedMessage; +- (void).cxx_destruct; +@property(readonly) BOOL userNameIsEmail; +@property(readonly) BOOL userNameIsEditable; +- (void)useCredential:(id)arg1; +@property(readonly) NSString *user; +@property(readonly) __weak id sender; +@property(readonly) NSString *password; +@property(readonly) BOOL hasPassword; +@property(readonly) long long failureCount; +- (void)cancelAuthentication; + +@end + diff --git a/mas-cli/Headers/StoreFoundation/ISAuthenticationContext.h b/mas-cli/Headers/StoreFoundation/ISAuthenticationContext.h new file mode 100644 index 0000000..38ff368 --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/ISAuthenticationContext.h @@ -0,0 +1,57 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSObject.h" + +#import "NSSecureCoding.h" + +@class NSDictionary, NSNumber, NSString; + +@interface ISAuthenticationContext : NSObject +{ + NSNumber *_accountID; + NSDictionary *_additionalQueryParameters; + NSDictionary *_dialogDictionary; + long long _bagType; + NSDictionary *_signUpQueryParameters; + BOOL _shouldFollowAccountButtons; + long long _style; + BOOL _useCachedCredentials; + long long _authenticationReason; + NSString *_appleIDOverride; + BOOL _enforceAppleIDOverride; + NSString *_applicationName; + BOOL _demoMode; + BOOL _demoAutologinMode; + NSString *_demoAccountName; + NSString *_demoAccountPassword; +} + ++ (BOOL)supportsSecureCoding; +@property(retain) NSString *demoAccountPassword; // @synthesize demoAccountPassword=_demoAccountPassword; +@property(retain) NSString *demoAccountName; // @synthesize demoAccountName=_demoAccountName; +@property BOOL demoAutologinMode; // @synthesize demoAutologinMode=_demoAutologinMode; +@property BOOL demoMode; // @synthesize demoMode=_demoMode; +@property(retain) NSDictionary *dialogDictionary; // @synthesize dialogDictionary=_dialogDictionary; +@property(retain) NSString *applicationName; // @synthesize applicationName=_applicationName; +@property BOOL enforceAppleIDOverride; // @synthesize enforceAppleIDOverride=_enforceAppleIDOverride; +@property(retain) NSString *appleIDOverride; // @synthesize appleIDOverride=_appleIDOverride; +@property long long authenticationReason; // @synthesize authenticationReason=_authenticationReason; +@property BOOL useCachedCredentials; // @synthesize useCachedCredentials=_useCachedCredentials; +@property BOOL shouldFollowAccountButtons; // @synthesize shouldFollowAccountButtons=_shouldFollowAccountButtons; +@property(retain) NSDictionary *signUpQueryParameters; // @synthesize signUpQueryParameters=_signUpQueryParameters; +@property long long bagType; // @synthesize bagType=_bagType; +@property long long authenticationStyle; // @synthesize authenticationStyle=_style; +@property(retain) NSDictionary *additionalQueryParameters; // @synthesize additionalQueryParameters=_additionalQueryParameters; +@property(readonly) NSNumber *accountID; // @synthesize accountID=_accountID; +- (void).cxx_destruct; +- (void)encodeWithCoder:(id)arg1; +- (id)initWithCoder:(id)arg1; +- (id)initWithAccountID:(id)arg1; +- (id)init; + +@end + diff --git a/mas-cli/Headers/StoreFoundation/ISAuthenticationResponse.h b/mas-cli/Headers/StoreFoundation/ISAuthenticationResponse.h new file mode 100644 index 0000000..8ca20da --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/ISAuthenticationResponse.h @@ -0,0 +1,40 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSObject.h" + +#import "NSSecureCoding.h" + +@class NSNumber, NSString; + +@interface ISAuthenticationResponse : NSObject +{ + NSString *_token; + unsigned long long _urlBagType; + NSString *_storeFront; + unsigned long long _URLBagType; + NSString *_accountIdentifier; + long long _accountKind; + NSString *_creditString; + NSNumber *_dsID; +} + ++ (BOOL)supportsSecureCoding; +@property(readonly) NSString *storeFront; // @synthesize storeFront=_storeFront; +@property(readonly) NSString *token; // @synthesize token=_token; +@property(readonly) NSNumber *dsID; // @synthesize dsID=_dsID; +@property(readonly) NSString *creditString; // @synthesize creditString=_creditString; +@property(readonly) long long accountKind; // @synthesize accountKind=_accountKind; +@property(readonly) NSString *accountIdentifier; // @synthesize accountIdentifier=_accountIdentifier; +@property unsigned long long URLBagType; // @synthesize URLBagType=_URLBagType; +- (void).cxx_destruct; +- (BOOL)_loadFromDictionary:(id)arg1; +- (id)initWithCoder:(id)arg1; +- (void)encodeWithCoder:(id)arg1; +- (id)initWithDictionary:(id)arg1; + +@end + diff --git a/mas-cli/Headers/StoreFoundation/ISAvailableUpdatesObserver-Protocol.h b/mas-cli/Headers/StoreFoundation/ISAvailableUpdatesObserver-Protocol.h new file mode 100644 index 0000000..4905c24 --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/ISAvailableUpdatesObserver-Protocol.h @@ -0,0 +1,12 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +@class NSArray; + +@protocol ISAvailableUpdatesObserver +- (void)availableUpdatesDidChangedWithUpdates:(NSArray *)arg1 osUpdates:(NSArray *)arg2 badgeCount:(unsigned long long)arg3; +@end + diff --git a/mas-cli/Headers/StoreFoundation/ISBookLibraryObserver-Protocol.h b/mas-cli/Headers/StoreFoundation/ISBookLibraryObserver-Protocol.h new file mode 100644 index 0000000..c08c70a --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/ISBookLibraryObserver-Protocol.h @@ -0,0 +1,12 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +@class NSArray; + +@protocol ISBookLibraryObserver +- (void)bookLibraryHasAdded:(NSArray *)arg1 changed:(NSArray *)arg2 removed:(NSArray *)arg3; +@end + diff --git a/mas-cli/Headers/StoreFoundation/ISCertificate.h b/mas-cli/Headers/StoreFoundation/ISCertificate.h new file mode 100644 index 0000000..fedef36 --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/ISCertificate.h @@ -0,0 +1,22 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSObject.h" + +@interface ISCertificate : NSObject +{ + struct __SecTrust *_trust; +} + +- (void)_invalidate; +- (void)setCertificateData:(id)arg1; +- (BOOL)isValid; +- (BOOL)checkData:(id)arg1 againstAppleSignature:(id)arg2; +- (BOOL)checkData:(id)arg1 againstSignature:(id)arg2; +- (void)dealloc; + +@end + diff --git a/mas-cli/Headers/StoreFoundation/ISCodeSignatureOperation.h b/mas-cli/Headers/StoreFoundation/ISCodeSignatureOperation.h new file mode 100644 index 0000000..5dde398 --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/ISCodeSignatureOperation.h @@ -0,0 +1,31 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import + +@class ISServiceProxy, NSString; + +@interface ISCodeSignatureOperation : ISOperation +{ + ISServiceProxy *_proxy; + NSString *_bundlePath; + BOOL _showProgress; + BOOL _isDeveloperSigned; + BOOL _isAppleSigned; +} + ++ (id)operationWithBundlePath:(id)arg1 showProgress:(BOOL)arg2 storeClient:(id)arg3; +@property BOOL isAppleSigned; // @synthesize isAppleSigned=_isAppleSigned; +@property BOOL isDeveloperSigned; // @synthesize isDeveloperSigned=_isDeveloperSigned; +@property BOOL showProgress; // @synthesize showProgress=_showProgress; +@property(retain) NSString *bundlePath; // @synthesize bundlePath=_bundlePath; +@property(retain) ISServiceProxy *proxy; // @synthesize proxy=_proxy; +- (void).cxx_destruct; +- (void)main; +- (id)initWithBundlePath:(id)arg1 showProgress:(BOOL)arg2 storeClient:(id)arg3; + +@end + diff --git a/mas-cli/Headers/StoreFoundation/ISDataProvider.h b/mas-cli/Headers/StoreFoundation/ISDataProvider.h new file mode 100644 index 0000000..8a4d53c --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/ISDataProvider.h @@ -0,0 +1,49 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSObject.h" + +#import "NSCopying.h" + +@class ISAuthenticationContext, ISStoreClient, NSNumber, NSString, NSURL; + +@interface ISDataProvider : NSObject +{ + ISAuthenticationContext *_authenticationContext; + NSNumber *_authenticatedAccountDSID; + long long _contentLength; + NSString *_contentType; + id _output; + NSURL *_redirectURL; + int _bagType; + ISStoreClient *_storeClient; +} + ++ (id)provider; ++ (id)providerWithStoreClient:(id)arg1; +@property int bagType; // @synthesize bagType=_bagType; +@property(readonly) ISStoreClient *storeClient; // @synthesize storeClient=_storeClient; +@property(retain) NSURL *redirectURL; // @synthesize redirectURL=_redirectURL; +@property(retain) id output; // @synthesize output=_output; +@property(retain) NSString *contentType; // @synthesize contentType=_contentType; +@property long long contentLength; // @synthesize contentLength=_contentLength; +@property(retain) NSNumber *authenticatedAccountDSID; // @synthesize authenticatedAccountDSID=_authenticatedAccountDSID; +@property(retain) ISAuthenticationContext *authenticationContext; // @synthesize authenticationContext=_authenticationContext; +- (void).cxx_destruct; +- (void)setup; +- (BOOL)parseData:(id)arg1 returningError:(id *)arg2; +@property(readonly) long long streamedBytes; +- (void)resetStream; +- (void)migrateOutputFromSubProvider:(id)arg1; +@property(readonly, getter=isStream) BOOL stream; +- (void)configureFromProvider:(id)arg1; +- (void)closeStreamReturningError:(id *)arg1; +- (id)copyWithZone:(struct _NSZone *)arg1; +- (id)init; +- (id)initWithStoreClient:(id)arg1; + +@end + diff --git a/mas-cli/Headers/StoreFoundation/ISDelayedInvocationRecorder.h b/mas-cli/Headers/StoreFoundation/ISDelayedInvocationRecorder.h new file mode 100644 index 0000000..6d77fff --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/ISDelayedInvocationRecorder.h @@ -0,0 +1,18 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import + +@interface ISDelayedInvocationRecorder : ISInvocationRecorder +{ + double _delayInterval; +} + +@property(nonatomic) double delayInterval; // @synthesize delayInterval=_delayInterval; +- (void)invokeInvocation:(id)arg1; + +@end + diff --git a/mas-cli/Headers/StoreFoundation/ISDevice.h b/mas-cli/Headers/StoreFoundation/ISDevice.h new file mode 100644 index 0000000..17d65d2 --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/ISDevice.h @@ -0,0 +1,21 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSObject.h" + +@interface ISDevice : NSObject +{ +} + ++ (BOOL)isBootedFromRecoveryPartition; ++ (id)osMajorVersionString; ++ (void)osVersionReturningMajor:(int *)arg1 minor:(int *)arg2 point:(int *)arg3; ++ (long long)availableDiskSpace; ++ (long long)availableSpaceOnDiskAtPath:(id)arg1; ++ (id)guid; + +@end + diff --git a/mas-cli/Headers/StoreFoundation/ISDialog.h b/mas-cli/Headers/StoreFoundation/ISDialog.h new file mode 100644 index 0000000..c475b41 --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/ISDialog.h @@ -0,0 +1,84 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSObject.h" + +#import "NSSecureCoding.h" + +@class ISDialogButton, NSArray, NSDictionary, NSLock, NSMutableDictionary, NSString; + +@interface ISDialog : NSObject +{ + BOOL _allowDuplicates; + BOOL _authorizationIsForced; + NSArray *_buttons; + long long _defaultButtonIndex; + BOOL _dismissOnLock; + BOOL _expectsResponse; + BOOL _groupsTextFields; + long long _kind; + NSLock *_lock; + NSString *_message; + BOOL _oneButtonPerLine; + NSArray *_textFields; + NSString *_title; + NSMutableDictionary *_userInfo; + NSDictionary *_baseDictionary; + NSDictionary *_authenticationParameters; + id _delegate; + ISDialogButton *_okButton; + ISDialogButton *_cancelButton; + ISDialogButton *_otherButton; + ISDialogButton *_suppressionCheckbox; +} + ++ (void)dismissDialogWithDictionary:(id)arg1; ++ (BOOL)supportsSecureCoding; ++ (id)dialogWithError:(id)arg1; ++ (id)dialogWithDictionary:(id)arg1; +@property(nonatomic) __weak id delegate; // @synthesize delegate=_delegate; +@property(readonly) ISDialogButton *suppressionCheckbox; // @synthesize suppressionCheckbox=_suppressionCheckbox; +@property(readonly) ISDialogButton *otherButton; // @synthesize otherButton=_otherButton; +@property(readonly) ISDialogButton *cancelButton; // @synthesize cancelButton=_cancelButton; +@property(readonly) ISDialogButton *okButton; // @synthesize okButton=_okButton; +@property(readonly) NSDictionary *authenticationParameters; // @synthesize authenticationParameters=_authenticationParameters; +@property(readonly) NSDictionary *baseDictionary; // @synthesize baseDictionary=_baseDictionary; +@property(retain) NSString *title; // @synthesize title=_title; +@property(retain) NSArray *textFields; // @synthesize textFields=_textFields; +@property BOOL oneButtonPerLine; // @synthesize oneButtonPerLine=_oneButtonPerLine; +@property(retain) NSString *message; // @synthesize message=_message; +@property long long kind; // @synthesize kind=_kind; +@property BOOL groupsTextFields; // @synthesize groupsTextFields=_groupsTextFields; +@property BOOL expectsResponse; // @synthesize expectsResponse=_expectsResponse; +@property BOOL dismissOnLock; // @synthesize dismissOnLock=_dismissOnLock; +@property long long defaultButtonIndex; // @synthesize defaultButtonIndex=_defaultButtonIndex; +@property(retain) NSArray *buttons; // @synthesize buttons=_buttons; +@property BOOL authorizationIsForced; // @synthesize authorizationIsForced=_authorizationIsForced; +@property BOOL allowDuplicates; // @synthesize allowDuplicates=_allowDuplicates; +- (void).cxx_destruct; +- (void)stopModalForDialog:(id)arg1; +- (void)handleDismissNoficiation:(id)arg1; +@property(readonly) BOOL needsDedicatedUI; +- (BOOL)shouldDismissWithReturnCode:(long long)arg1 userInfo:(id *)arg2; +- (void)dismissDialogWithExitCode:(long long)arg1; +- (void)_runModalWithSettings:(id)arg1 completionHandler:(CDUnknownBlockType)arg2; +- (void)performAction:(long long)arg1; +- (void)beginSheetModalForWindow:(id)arg1 completionHandler:(CDUnknownBlockType)arg2; +- (long long)_kindForString:(id)arg1; +- (id)valueForUserInfoKey:(id)arg1; +- (void)setValue:(id)arg1 forUserInfoKey:(id)arg2; +- (BOOL)isEqual:(id)arg1; +- (id)copyUserNotification; +- (id)initWithCoder:(id)arg1; +- (void)encodeWithCoder:(id)arg1; +- (id)initWithTitle:(id)arg1 message:(id)arg2; +- (id)initWithError:(id)arg1; +- (id)initWithDialogDictionary:(id)arg1; +- (id)init; +- (id)initWithAuthenticationChallege:(id)arg1; + +@end + diff --git a/mas-cli/Headers/StoreFoundation/ISDialogButton.h b/mas-cli/Headers/StoreFoundation/ISDialogButton.h new file mode 100644 index 0000000..452114e --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/ISDialogButton.h @@ -0,0 +1,40 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSObject.h" + +#import "NSSecureCoding.h" + +@class NSNumber, NSString; + +@interface ISDialogButton : NSObject +{ + int _actionType; + id _parameter; + NSString *_title; + long long _urlType; + NSNumber *_state; +} + ++ (BOOL)supportsSecureCoding; ++ (id)buttonWithTitle:(id)arg1; +@property(retain) NSNumber *state; // @synthesize state=_state; +@property long long urlType; // @synthesize urlType=_urlType; +@property(retain) NSString *title; // @synthesize title=_title; +@property(retain) id parameter; // @synthesize parameter=_parameter; +@property int actionType; // @synthesize actionType=_actionType; +- (void).cxx_destruct; +- (long long)_urlTypeForString:(id)arg1; +- (int)_actionTypeForString:(id)arg1; +- (id)initWithCoder:(id)arg1; +- (void)encodeWithCoder:(id)arg1; +- (void)performActionFromDialog:(id)arg1 withStoreClient:(id)arg2; +- (void)performActionWithStoreClient:(id)arg1; +- (void)loadFromDictionary:(id)arg1; +- (BOOL)isEqual:(id)arg1 superficial:(BOOL)arg2; + +@end + diff --git a/mas-cli/Headers/StoreFoundation/ISDialogDelegate-Protocol.h b/mas-cli/Headers/StoreFoundation/ISDialogDelegate-Protocol.h new file mode 100644 index 0000000..2a7d3e0 --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/ISDialogDelegate-Protocol.h @@ -0,0 +1,12 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +@class ISDialog; + +@protocol ISDialogDelegate +- (void)dialog:(ISDialog *)arg1 shouldDismissWithReturnCode:(long long)arg2 replyBlock:(void (^)(BOOL, NSDictionary *))arg3; +@end + diff --git a/mas-cli/Headers/StoreFoundation/ISDialogDelegateProxy.h b/mas-cli/Headers/StoreFoundation/ISDialogDelegateProxy.h new file mode 100644 index 0000000..a115992 --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/ISDialogDelegateProxy.h @@ -0,0 +1,25 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSObject.h" + +#import "ISDialogDelegate.h" + +@class NSObject; + +@interface ISDialogDelegateProxy : NSObject +{ + id _delegate; +} + +@property(retain) id delegate; // @synthesize delegate=_delegate; +- (void).cxx_destruct; +- (void)dialog:(id)arg1 shouldDismissWithReturnCode:(long long)arg2 replyBlock:(CDUnknownBlockType)arg3; +@property(readonly, nonatomic) NSObject *requestQueue; +- (id)initWithDelegate:(id)arg1; + +@end + diff --git a/mas-cli/Headers/StoreFoundation/ISDialogOperation.h b/mas-cli/Headers/StoreFoundation/ISDialogOperation.h new file mode 100644 index 0000000..2506ef5 --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/ISDialogOperation.h @@ -0,0 +1,34 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import + +@class ISDialog, ISDialogButton, ISServerAuthenticationOperation; + +@interface ISDialogOperation : ISOperation +{ + ISDialog *_dialog; + BOOL _performDefaultActions; + ISDialogButton *_selectedButton; + id _userNotification; + ISServerAuthenticationOperation *_authenticationOperation; + CDUnknownBlockType _buttonClickHandler; +} + ++ (id)operationWithDialog:(id)arg1 storeClient:(id)arg2; +@property(copy) CDUnknownBlockType buttonClickHandler; // @synthesize buttonClickHandler=_buttonClickHandler; +@property(retain) ISDialogButton *selectedButton; // @synthesize selectedButton=_selectedButton; +@property BOOL performDefaultActions; // @synthesize performDefaultActions=_performDefaultActions; +@property(readonly) ISDialog *dialog; // @synthesize dialog=_dialog; +- (void).cxx_destruct; +- (void)run; +- (void)handleButtonSelected:(long long)arg1; +@property(readonly) ISServerAuthenticationOperation *authenticationOperation; // @dynamic authenticationOperation; +- (id)initWithDialog:(id)arg1 storeClient:(id)arg2; +- (id)init; + +@end + diff --git a/mas-cli/Headers/StoreFoundation/ISDialogTextField.h b/mas-cli/Headers/StoreFoundation/ISDialogTextField.h new file mode 100644 index 0000000..ef4f70e --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/ISDialogTextField.h @@ -0,0 +1,27 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSObject.h" + +@class NSString; + +@interface ISDialogTextField : NSObject +{ + long long _keyboardType; + BOOL _secure; + NSString *_title; + NSString *_value; +} + ++ (id)textFieldWithTitle:(id)arg1; +@property(retain) NSString *value; // @synthesize value=_value; +@property(retain) NSString *title; // @synthesize title=_title; +@property(getter=isSecure) BOOL secure; // @synthesize secure=_secure; +@property long long keyboardType; // @synthesize keyboardType=_keyboardType; +- (void).cxx_destruct; + +@end + diff --git a/mas-cli/Headers/StoreFoundation/ISDownloadQueueObserver-Protocol.h b/mas-cli/Headers/StoreFoundation/ISDownloadQueueObserver-Protocol.h new file mode 100644 index 0000000..ae9f397 --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/ISDownloadQueueObserver-Protocol.h @@ -0,0 +1,15 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +@class ISStoreAccount, NSArray, SSDownload, SSDownloadStatus; + +@protocol ISDownloadQueueObserver +- (void)downloadQueueDidCheckServerDownloadQueueForAccount:(ISStoreAccount *)arg1 withDownloadCount:(long long)arg2 newDownloads:(NSArray *)arg3; +- (void)download:(SSDownload *)arg1 didUpdateStatus:(SSDownloadStatus *)arg2; +- (void)downloadQueueDidRemoveDownload:(SSDownload *)arg1 queueIsIdle:(BOOL)arg2; +- (void)downloadQueueDidAddDownload:(SSDownload *)arg1; +@end + diff --git a/mas-cli/Headers/StoreFoundation/ISDownloadService-Protocol.h b/mas-cli/Headers/StoreFoundation/ISDownloadService-Protocol.h new file mode 100644 index 0000000..ca91d65 --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/ISDownloadService-Protocol.h @@ -0,0 +1,38 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "ISServiceRemoteObject.h" + +@class ISStoreAccount, NSArray, NSDictionary, NSError, NSString, NSURL, SSDownload, SSDownloadMetadata; + +@protocol ISDownloadService +- (void)restoreDownloadsWithArchivedFiles:(NSArray *)arg1 replyBlock:(void (^)(BOOL, NSError *))arg2; +- (void)runWarningDialogForDownloadMetadata:(SSDownloadMetadata *)arg1 error:(NSError *)arg2 replyBlock:(void (^)(BOOL))arg3; +- (void)runErrorDialogForDownloadMetadata:(SSDownloadMetadata *)arg1 error:(NSError *)arg2; +- (void)checkPreflightWithItemIdentifier:(unsigned long long)arg1 url:(NSURL *)arg2 systemVersionInfo:(NSDictionary *)arg3 replyBlock:(void (^)(BOOL, NSError *))arg4; +- (void)recoverAvailableDiskSpace; +- (void)lockedApplicationTriedToLaunchAtPath:(NSString *)arg1; +- (void)unlockApplicationsWithBundleIdentifier:(NSString *)arg1; +- (void)lockApplicationsForBundleID:(NSString *)arg1; +- (void)fetchIconForItemIdentifier:(unsigned long long)arg1 atURL:(NSURL *)arg2 replyBlock:(void (^)(unsigned long long, BOOL, NSURL *, NSError *))arg3; +- (void)cacheReceiptAsString:(id)arg1 forDownload:(SSDownload *)arg2 reply:(void (^)(BOOL, NSError *))arg3; +- (void)checkAutomaticDownloadQueue; +- (void)triggerDownloadsWithReplyBlock:(void (^)(void))arg1; +- (void)checkServerDownloadQueueWithReplyBlock:(void (^)(BOOL, long long, long long))arg1; +- (void)checkStoreDownloadQueueForAccount:(ISStoreAccount *)arg1; +- (void)downloadWithItemIdentifier:(unsigned long long)arg1 reply:(void (^)(SSDownload *))arg2; +- (void)downloadsWithTypeMask:(long long)arg1 reply:(void (^)(NSArray *))arg2; +- (void)removeDownloadQueueObserver:(id )arg1; +- (void)addDownloadQueueObserver:(id )arg1; +- (void)resetStatusForDownloadWithItemIdentifier:(unsigned long long)arg1; +- (void)removeDownloadWithItemIdentifier:(unsigned long long)arg1; +- (void)cancelDownloadWithItemIdentifier:(unsigned long long)arg1 promptToConfirm:(BOOL)arg2 askToDelete:(BOOL)arg3; +- (void)resumeDownloadWithItemIdentifier:(unsigned long long)arg1; +- (void)pauseDownloadWithItemIdentifier:(unsigned long long)arg1; +- (void)addDownload:(SSDownload *)arg1 replyBlock:(void (^)(unsigned long long, NSError *))arg2; +- (void)performDownload:(SSDownload *)arg1 withOptions:(unsigned long long)arg2 replyBlock:(void (^)(unsigned long long, NSError *))arg3; +@end + diff --git a/mas-cli/Headers/StoreFoundation/ISFetchIconOperation.h b/mas-cli/Headers/StoreFoundation/ISFetchIconOperation.h new file mode 100644 index 0000000..fa8a5a4 --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/ISFetchIconOperation.h @@ -0,0 +1,26 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import + +@class NSNumber, NSURL; + +@interface ISFetchIconOperation : ISOperation +{ + NSURL *_remoteURL; + NSURL *_localURL; + NSURL *_localIconURL; + NSNumber *_productID; +} + +@property(readonly) NSNumber *productID; // @synthesize productID=_productID; +@property(readonly) NSURL *iconURL; // @synthesize iconURL=_localIconURL; +- (void).cxx_destruct; +- (void)run; +- (id)initWithProductID:(id)arg1 url:(id)arg2 storeClient:(id)arg3; + +@end + diff --git a/mas-cli/Headers/StoreFoundation/ISInAppService-Protocol.h b/mas-cli/Headers/StoreFoundation/ISInAppService-Protocol.h new file mode 100644 index 0000000..2e9cf97 --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/ISInAppService-Protocol.h @@ -0,0 +1,14 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "ISServiceRemoteObject.h" + +@class NSArray; + +@protocol ISInAppService +- (void)requestProductsWithIdentifiers:(NSArray *)arg1 replyBlock:(void (^)(void))arg2; +@end + diff --git a/mas-cli/Headers/StoreFoundation/ISInvocationRecorder.h b/mas-cli/Headers/StoreFoundation/ISInvocationRecorder.h new file mode 100644 index 0000000..14be01f --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/ISInvocationRecorder.h @@ -0,0 +1,23 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSObject.h" + +@interface ISInvocationRecorder : NSObject +{ + id _target; +} + +- (void).cxx_destruct; +- (id)methodSignatureForSelector:(SEL)arg1; +- (void)forwardInvocation:(id)arg1; +- (void)invokeInvocation:(id)arg1; +- (id)adjustedTargetForSelector:(SEL)arg1; +- (void)dealloc; +- (id)initWithTarget:(id)arg1; + +@end + diff --git a/mas-cli/Headers/StoreFoundation/ISJSONProvider.h b/mas-cli/Headers/StoreFoundation/ISJSONProvider.h new file mode 100644 index 0000000..3e4db1f --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/ISJSONProvider.h @@ -0,0 +1,16 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import + +@interface ISJSONProvider : ISPropertyListProvider +{ +} + +- (BOOL)parseData:(id)arg1 returningError:(id *)arg2; + +@end + diff --git a/mas-cli/Headers/StoreFoundation/ISMainThreadInvocationRecorder.h b/mas-cli/Headers/StoreFoundation/ISMainThreadInvocationRecorder.h new file mode 100644 index 0000000..9ad9ec1 --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/ISMainThreadInvocationRecorder.h @@ -0,0 +1,18 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import + +@interface ISMainThreadInvocationRecorder : ISInvocationRecorder +{ + BOOL _waitUntilDone; +} + +@property(nonatomic) BOOL waitUntilDone; // @synthesize waitUntilDone=_waitUntilDone; +- (void)invokeInvocation:(id)arg1; + +@end + diff --git a/mas-cli/Headers/StoreFoundation/ISManagedRestrictions.h b/mas-cli/Headers/StoreFoundation/ISManagedRestrictions.h new file mode 100644 index 0000000..6eb66c5 --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/ISManagedRestrictions.h @@ -0,0 +1,16 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSObject.h" + +@interface ISManagedRestrictions : NSObject +{ +} + ++ (BOOL)isRestrictedTo:(struct __CFString *)arg1; + +@end + diff --git a/mas-cli/Headers/StoreFoundation/ISOSUpdateProgressObserver-Protocol.h b/mas-cli/Headers/StoreFoundation/ISOSUpdateProgressObserver-Protocol.h new file mode 100644 index 0000000..929fd56 --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/ISOSUpdateProgressObserver-Protocol.h @@ -0,0 +1,13 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +@class NSArray, NSDictionary, NSError; + +@protocol ISOSUpdateProgressObserver +- (void)osUpdates:(NSArray *)arg1 didFailWithError:(NSError *)arg2; +- (void)osUpdates:(NSArray *)arg1 didProgressWithState:(long long)arg2 percentComplete:(double)arg3 statusInfo:(NSDictionary *)arg4 includesCriticalUpdates:(BOOL)arg5 canCancel:(BOOL)arg6; +@end + diff --git a/mas-cli/Headers/StoreFoundation/ISOSUpdateScanObserver-Protocol.h b/mas-cli/Headers/StoreFoundation/ISOSUpdateScanObserver-Protocol.h new file mode 100644 index 0000000..d49ba1b --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/ISOSUpdateScanObserver-Protocol.h @@ -0,0 +1,12 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +@class NSError; + +@protocol ISOSUpdateScanObserver +- (void)osUpdateScanDidProgressWithPercentComplete:(float)arg1 isFinished:(BOOL)arg2 error:(NSError *)arg3; +@end + diff --git a/mas-cli/Headers/StoreFoundation/ISOperation.h b/mas-cli/Headers/StoreFoundation/ISOperation.h new file mode 100644 index 0000000..1bb7d37 --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/ISOperation.h @@ -0,0 +1,75 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSOperation.h" + +@class ISServiceProxy, ISStoreAccount, ISStoreClient, NSError, NSLock, NSRunLoop, NSString, SSOperationProgress; + +@interface ISOperation : NSOperation +{ + NSError *_error; + NSLock *_lock; + NSRunLoop *_operationRunLoop; + ISOperation *_parentOperation; + SSOperationProgress *_progress; + ISOperation *_subOperation; + BOOL _success; + void *_operationContext; + ISServiceProxy *_serviceProxy; + NSLock *_serviceProxyLock; + ISStoreAccount *_storeAccount; + NSLock *_storeAccountLock; + id _xpcReplyObject; + int _requiredBagType; + id _delegate; + ISStoreClient *_storeClient; + CDUnknownBlockType _completionHandler; + CDUnknownBlockType _progressHandler; +} + +@property int requiredBagType; // @synthesize requiredBagType=_requiredBagType; +@property(copy) CDUnknownBlockType progressHandler; // @synthesize progressHandler=_progressHandler; +@property(copy) CDUnknownBlockType completionHandler; // @synthesize completionHandler=_completionHandler; +@property(retain) ISStoreClient *storeClient; // @synthesize storeClient=_storeClient; +@property __weak id delegate; // @synthesize delegate=_delegate; +@property(readonly) id xpcReplyObject; // @synthesize xpcReplyObject=_xpcReplyObject; +@property void *operationContext; // @synthesize operationContext=_operationContext; +@property BOOL success; // @synthesize success=_success; +@property(retain) ISOperation *subOperation; // @synthesize subOperation=_subOperation; +@property(retain) ISOperation *parentOperation; // @synthesize parentOperation=_parentOperation; +@property(retain) NSRunLoop *operationRunLoop; // @synthesize operationRunLoop=_operationRunLoop; +@property(retain) NSError *error; // @synthesize error=_error; +- (void).cxx_destruct; +- (id)urlForURLBagKey:(id)arg1; +- (id)valueForURLBagKey:(id)arg1; +- (BOOL)_loadRequredBagReturningError:(id *)arg1; +- (void)_sendSuccessToDelegate; +- (void)_sendErrorToDelegate:(id)arg1; +- (void)_main:(BOOL)arg1; +- (void)_failAfterException; +- (void)unlock; +- (void)sendProgressToDelegate; +- (void)run:(BOOL)arg1; +- (void)lock; +- (void)main; +- (void)cancel; +@property(readonly) NSString *uniqueKey; +- (void)stopRunLoop; +- (BOOL)runSubOperation:(id)arg1 returningError:(id *)arg2; +- (int)runRunLoopUntilStopped; +- (BOOL)runSyncReturningError:(id *)arg1; +- (void)run; +@property(readonly) double earlyTimeRemainingEstimate; +@property(readonly) long long progressWeight; +@property(readonly, nonatomic) SSOperationProgress *progress; +@property(retain, nonatomic) ISStoreAccount *storeAccount; +@property(readonly) ISServiceProxy *serviceProxy; +- (id)init; +- (id)initWithStoreClient:(id)arg1; +- (BOOL)showDialogInSeperateProcessForOperation:(id)arg1; + +@end + diff --git a/mas-cli/Headers/StoreFoundation/ISOperationDelegate-Protocol.h b/mas-cli/Headers/StoreFoundation/ISOperationDelegate-Protocol.h new file mode 100644 index 0000000..7813457 --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/ISOperationDelegate-Protocol.h @@ -0,0 +1,18 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSObject.h" + +@class ISOperation, NSError, SSOperationProgress; + +@protocol ISOperationDelegate + +@optional +- (void)operationFinished:(ISOperation *)arg1; +- (void)operation:(ISOperation *)arg1 updatedProgress:(SSOperationProgress *)arg2; +- (void)operation:(ISOperation *)arg1 failedWithError:(NSError *)arg2; +@end + diff --git a/mas-cli/Headers/StoreFoundation/ISOperationQueue.h b/mas-cli/Headers/StoreFoundation/ISOperationQueue.h new file mode 100644 index 0000000..6009cd5 --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/ISOperationQueue.h @@ -0,0 +1,28 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSObject.h" + +@class NSOperationQueue; + +@interface ISOperationQueue : NSObject +{ + NSOperationQueue *_queue; +} + ++ (id)mainQueue; ++ (BOOL)isActive; +- (void).cxx_destruct; +- (void)setSuspended:(BOOL)arg1; +- (void)setMaxConcurrentOperationCount:(long long)arg1; +- (id)operations; +- (void)cancelAllOperations; +- (void)addOperation:(id)arg1; +- (void)dealloc; +- (id)init; + +@end + diff --git a/mas-cli/Headers/StoreFoundation/ISPropertyListProvider.h b/mas-cli/Headers/StoreFoundation/ISPropertyListProvider.h new file mode 100644 index 0000000..ae09521 --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/ISPropertyListProvider.h @@ -0,0 +1,50 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import + +@class ISServiceProxy, NSArray, NSMutableArray; + +@interface ISPropertyListProvider : ISDataProvider +{ + BOOL _shouldProcessAccount; + BOOL _shouldProcessDialogs; + BOOL _shouldProcessDownloads; + BOOL _shouldProcessProtocol; + BOOL _shouldTriggerDownloads; + BOOL _shouldRedirectOnGotoAction; + BOOL _shouldProcessDownloadsForUpToDate; + NSMutableArray *_upToDateDownloadItemIDs; + BOOL _didProcessDialog; + CDUnknownBlockType _actionHandler; + ISServiceProxy *_serviceProxy; +} + +@property(readonly) ISServiceProxy *serviceProxy; // @synthesize serviceProxy=_serviceProxy; +@property(copy) CDUnknownBlockType actionHandler; // @synthesize actionHandler=_actionHandler; +@property BOOL shouldTriggerDownloads; // @synthesize shouldTriggerDownloads=_shouldTriggerDownloads; +@property(readonly) NSArray *upToDateDownloadItemIDs; // @synthesize upToDateDownloadItemIDs=_upToDateDownloadItemIDs; +@property BOOL shouldProcessDownloadsForUpToDate; // @synthesize shouldProcessDownloadsForUpToDate=_shouldProcessDownloadsForUpToDate; +@property BOOL shouldProcessDownloads; // @synthesize shouldProcessDownloads=_shouldProcessDownloads; +@property BOOL shouldProcessProtocol; // @synthesize shouldProcessProtocol=_shouldProcessProtocol; +@property(readonly) BOOL didProcessDialog; // @synthesize didProcessDialog=_didProcessDialog; +@property BOOL shouldProcessDialogs; // @synthesize shouldProcessDialogs=_shouldProcessDialogs; +@property BOOL shouldProcessAccount; // @synthesize shouldProcessAccount=_shouldProcessAccount; +- (void).cxx_destruct; +- (void)_processDownloads:(id)arg1 fallback:(id)arg2; +- (void)_processTriggerDownload:(id)arg1 fallback:(id)arg2; +- (BOOL)_processStoreVersion:(id)arg1 returningError:(id *)arg2; +- (void)_processStoreCredits:(id)arg1 fallback:(id)arg2; +- (void)_processPingsInDictionary:(id)arg1; +- (void)_processActions:(id)arg1 fallback:(id)arg2; +- (void)_processAccount:(id)arg1 fallback:(id)arg2; +- (BOOL)parseData:(id)arg1 returningError:(id *)arg2; +- (BOOL)processPropertyList:(id)arg1 returningError:(id *)arg2; +- (BOOL)processDialogFromPropertyList:(id)arg1 returningError:(id *)arg2; +- (id)initWithStoreClient:(id)arg1; + +@end + diff --git a/mas-cli/Headers/StoreFoundation/ISServerAuthenticationOperation.h b/mas-cli/Headers/StoreFoundation/ISServerAuthenticationOperation.h new file mode 100644 index 0000000..7a763ad --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/ISServerAuthenticationOperation.h @@ -0,0 +1,34 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import + +@class ISAuthenticationContext, ISDialog, NSNumber, NSURL; + +@interface ISServerAuthenticationOperation : ISOperation +{ + NSNumber *_authenticatedAccountDSID; + ISAuthenticationContext *_authenticationContext; + ISDialog *_dialog; + NSURL *_redirectURL; +} + ++ (id)operationWithDialog:(id)arg1 storeClient:(id)arg2; +@property(retain) NSURL *redirectURL; // @synthesize redirectURL=_redirectURL; +@property(readonly) ISDialog *dialog; // @synthesize dialog=_dialog; +@property(retain) NSNumber *authenticatedAccountDSID; // @synthesize authenticatedAccountDSID=_authenticatedAccountDSID; +@property(retain) ISAuthenticationContext *authenticationContext; // @synthesize authenticationContext=_authenticationContext; +- (void).cxx_destruct; +- (BOOL)_shouldAuthenticateForButton:(id)arg1; +- (void)_sendClientToURL:(id)arg1; +- (BOOL)_handleSelectedButton:(id)arg1; +- (void)run; +- (id)initWithDialog:(id)arg1 storeClient:(id)arg2; +- (id)_authentciateReturningError:(id *)arg1; +- (id)_authenticationContext; + +@end + diff --git a/mas-cli/Headers/StoreFoundation/ISServiceClientInterface.h b/mas-cli/Headers/StoreFoundation/ISServiceClientInterface.h new file mode 100644 index 0000000..f3edc36 --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/ISServiceClientInterface.h @@ -0,0 +1,50 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + + + +#import "ISServiceRemoteObject-Protocol.h" + +@class ISServiceDelegate, NSLock, NSString, NSXPCConnection; + +@interface ISServiceClientInterface : ISServiceProxy +{ + NSLock *_serviceProxyLock; + NSXPCConnection *_conn; + ISServiceDelegate *_delegate; +} + +@property __weak ISServiceDelegate *delegate; // @synthesize delegate=_delegate; +@property(readonly) NSXPCConnection *conn; // @synthesize conn=_conn; +- (void)startService; +- (void)displayDialog:(id)arg1; +- (void)signURLRequest:(id)arg1 service:(id)arg2; +- (BOOL)copyAccountID:(id *)arg1 byAuthenticatingWithContext:(id)arg2 returningError:(id *)arg3; +- (void)setStoreFrontID:(id)arg1; +- (id)storeURLSchemeForAmbiguousURL:(id)arg1; +- (BOOL)shouldSendGUIDWithRequestForURL:(id)arg1; +- (id)httpHeadersForURL:(id)arg1 withDSID:(id)arg2; +- (BOOL)loadURLBagWithType:(long long)arg1 returningError:(id *)arg2; +- (BOOL)urlIsTrustedByURLBag:(id)arg1; +- (id)urlForURLBagKey:(id)arg1; +- (id)valueForURLBagKey:(id)arg1; +- (id)accountWithDSID:(id)arg1; +- (id)primaryAccount; +- (BOOL)authIsExpired; +@property(readonly, nonatomic) NSObject *requestQueue; +- (id)exportedObjectInterface; +- (id)exportedObjectProtocol; +- (id)remoteObjectProtocol; +- (id)initWithConnection:(id)arg1 delegate:(id)arg2; + +// Remaining properties +@property(readonly, copy) NSString *debugDescription; +@property(readonly, copy) NSString *description; +@property(readonly) NSUInteger hash; +@property(readonly) Class superclass; + +@end + diff --git a/mas-cli/Headers/StoreFoundation/ISServiceDelegate.h b/mas-cli/Headers/StoreFoundation/ISServiceDelegate.h new file mode 100644 index 0000000..a941dfd --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/ISServiceDelegate.h @@ -0,0 +1,37 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSObject.h" + +#import "NSXPCListenerDelegate.h" + +@class NSArray, NSLock, NSMutableArray, NSString; + +@interface ISServiceDelegate : NSObject +{ + NSLock *_clientsLock; + NSMutableArray *_clients; + NSString *_serviceName; +} + ++ (Class)clientInterfaceClass; ++ (id)sharedInstance; +@property(readonly) NSArray *clients; // @synthesize clients=_clients; +- (void).cxx_destruct; +- (void)client:(id)arg1 didInvalidationConnection:(id)arg2; +- (void)client:(id)arg1 didInterruptConnection:(id)arg2; +- (BOOL)listener:(id)arg1 shouldAcceptNewConnection:(id)arg2; +- (id)initWithServiceName:(id)arg1; +- (id)init; + +// Remaining properties +@property(readonly, copy) NSString *debugDescription; +@property(readonly, copy) NSString *description; +@property(readonly) unsigned long long hash; +@property(readonly) Class superclass; + +@end + diff --git a/mas-cli/Headers/StoreFoundation/ISServiceProxy.h b/mas-cli/Headers/StoreFoundation/ISServiceProxy.h new file mode 100644 index 0000000..b4d0ec7 --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/ISServiceProxy.h @@ -0,0 +1,49 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import + +@class ISStoreClient, NSLock, NSMutableDictionary, Protocol; + +@interface ISServiceProxy : NSObject +{ + NSLock *_serviceConnectionLock; + NSMutableDictionary *_connectionsByServiceName; + NSMutableDictionary *_localInterfacesByServiceName; + ISStoreClient *_storeClient; +} + +typedef void (^ISErrorHandler)(NSError * __nonnull error); + ++ (ISServiceProxy * __nonnull)genericSharedProxy; +@property(retain, nonatomic) ISStoreClient * __nullable storeClient; // @synthesize storeClient=_storeClient; +//- (void)uiServiceSynchronousBlock:(CDUnknownBlockType)arg1; +//@property(readonly, nonatomic) id uiService; +//- (id)uiServiceWithErrorHandler:(CDUnknownBlockType)arg1; +//- (void)inAppServiceSynchronousBlock:(CDUnknownBlockType)arg1; +//@property(readonly, nonatomic) id inAppService; +//- (id)inAppServiceWithErrorHandler:(CDUnknownBlockType)arg1; +//- (void)transactionServiceSynchronousBlock:(CDUnknownBlockType)arg1; +@property(readonly, nonatomic) id __nullable transactionService; +- (id __nullable)transactionServiceWithErrorHandler:(ISErrorHandler __nonnull)arg1; +//- (void)assetServiceSynchronousBlock:(CDUnknownBlockType)arg1; +//@property(readonly, nonatomic) id assetService; +//- (id)assetServiceWithErrorHandler:(CDUnknownBlockType)arg1; +//- (void)downloadServiceSynchronousBlock:(CDUnknownBlockType)arg1; +//@property(readonly, nonatomic) id downloadService; +//- (id)downloadServiceWithErrorHandler:(CDUnknownBlockType)arg1; +- (void)accountServiceSynchronousBlock:(void (^ __nonnull)(id __nonnull))arg1; +@property(readonly, nonatomic) id __nonnull accountService; +- (id __nonnull)accountServiceWithErrorHandler:(ISErrorHandler __nonnull)arg1; +//- (void)performSynchronousBlock:(CDUnknownBlockType)arg1 withServiceName:(id)arg2 protocol:(id)arg3 isMachService:(BOOL)arg4 interfaceClassName:(id)arg5; +//- (id)objectProxyForServiceName:(id)arg1 protocol:(id)arg2 interfaceClassName:(id)arg3 isMachService:(BOOL)arg4 errorHandler:(CDUnknownBlockType)arg5; +//- (id)connectionWithServiceName:(id)arg1 protocol:(id)arg2 isMachService:(BOOL)arg3; +@property(readonly, nonatomic) Protocol * __nullable exportedProtocol; +@property(readonly, nonatomic) __weak id __nullable exportedObject; +- (ISServiceProxy * __nonnull)initWithStoreClient:(ISStoreClient * __nonnull)arg1; + +@end + diff --git a/mas-cli/Headers/StoreFoundation/ISServiceRemoteObject-Protocol.h b/mas-cli/Headers/StoreFoundation/ISServiceRemoteObject-Protocol.h new file mode 100644 index 0000000..4db4e01 --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/ISServiceRemoteObject-Protocol.h @@ -0,0 +1,15 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import + +@class ISStoreClient; + +@protocol ISServiceRemoteObject +- (void)startService; +- (void)setStoreClient:(ISStoreClient *)arg1; +@end + diff --git a/mas-cli/Headers/StoreFoundation/ISSignInPrompt.h b/mas-cli/Headers/StoreFoundation/ISSignInPrompt.h new file mode 100644 index 0000000..e2886ab --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/ISSignInPrompt.h @@ -0,0 +1,83 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSWindowController.h" + +@class ISAuthenticationContext, ISDialog, ISStoreClient, NSButton, NSImageView, NSNumber, NSProgressIndicator, NSString, NSTextField, NSURL, NSWindow; + +@interface ISSignInPrompt : NSWindowController +{ + NSTextField *titleField; + NSTextField *messageField; + NSImageView *imageView; + NSButton *defaultButton; + NSButton *otherButton; + NSButton *alternateButton; + NSButton *forgotButton; + NSButton *helpButton; + NSProgressIndicator *progressIndicator; + NSTextField *usernameField; + NSTextField *passwordField; + NSTextField *errorField; + struct CGRect windowFactoryFrame; + struct CGRect titleFieldFactoryFrame; + struct CGRect defaultButtonFactoryFrame; + NSURL *authenticateAccountURL; + NSString *mSuppressionCheckboxTitle; + NSNumber *mSuppressionCheckboxState; + BOOL mForceActivate; + ISAuthenticationContext *context; + long long attempts; + ISStoreClient *storeClient; + ISDialog *dialog; + long long mExitCode; + id authentication; + NSWindow *_sheetWindow; +} + +@property(retain, nonatomic) NSWindow *sheetWindow; // @synthesize sheetWindow=_sheetWindow; +@property BOOL forceActivate; // @synthesize forceActivate=mForceActivate; +@property(retain, nonatomic) NSNumber *suppressionCheckboxState; // @synthesize suppressionCheckboxState=mSuppressionCheckboxState; +@property(retain, nonatomic) NSString *suppressionCheckboxTitle; // @synthesize suppressionCheckboxTitle=mSuppressionCheckboxTitle; +@property(readonly) id authentication; // @synthesize authentication; +@property(retain, nonatomic) ISDialog *dialog; // @synthesize dialog; +@property(retain, nonatomic) ISStoreClient *storeClient; // @synthesize storeClient; +@property(retain, nonatomic) ISAuthenticationContext *context; // @synthesize context; +@property(retain, nonatomic) NSURL *authenticateAccountURL; // @synthesize authenticateAccountURL; +- (void).cxx_destruct; +- (void)forgotPassword:(id)arg1; +- (void)helpButtonAction:(id)arg1; +- (void)alternateButtonAction:(id)arg1; +- (void)otherButtonAction:(id)arg1; +- (void)defaultButtonAction:(id)arg1; +- (id)_customIconImage; +@property BOOL usernameFieldIsEnabled; +@property(readonly) NSString *password; +@property(retain, nonatomic) NSString *username; +- (void)setAlternateButtonTitle:(id)arg1; +- (void)setOtherButtonTitle:(id)arg1; +- (void)setDefaultButtonTitle:(id)arg1; +- (void)setMessageString:(id)arg1; +- (void)setTitleString:(id)arg1; +- (void)controlTextDidChange:(id)arg1; +- (void)_beginDialogWithCompletionHandler:(CDUnknownBlockType)arg1; +- (void)_beginAuthDialogWithCompletionHandler:(CDUnknownBlockType)arg1; +- (void)beginDialogWithCompletionHandler:(CDUnknownBlockType)arg1; +- (void)_handleError:(id)arg1 returnCode:(long long)arg2; +- (void)_dismissPanelWithCode:(long long)arg1; +- (void)_hideProgressIndicator; +- (void)_showProgressIndicator:(id)arg1; +- (void)_alertSheetDidEnd:(id)arg1 returnCode:(long long)arg2 contextInfo:(void *)arg3; +- (void)_alertSheetDidDismiss:(id)arg1 returnCode:(long long)arg2 contextInfo:(void *)arg3; +- (void)awakeFromNib; +- (id)initWithDialog:(id)arg1 storeClient:(id)arg2; +- (void)_showError:(id)arg1; +- (void)_prepareAK:(id)arg1; +- (void)_prepare; +- (void)_setButtonState:(id)arg1 withString:(id)arg2; + +@end + diff --git a/mas-cli/Headers/StoreFoundation/ISSignInPromptResponse.h b/mas-cli/Headers/StoreFoundation/ISSignInPromptResponse.h new file mode 100644 index 0000000..6c8002b --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/ISSignInPromptResponse.h @@ -0,0 +1,34 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSObject.h" + +#import "NSSecureCoding.h" + +@class NSDictionary, NSNumber, NSString; + +@interface ISSignInPromptResponse : NSObject +{ + long long returnCode; + NSString *username; + NSString *password; + NSNumber *suppressionCheckboxState; + NSDictionary *serverResponse; +} + ++ (BOOL)supportsSecureCoding; +@property(retain) NSDictionary *serverResponse; // @synthesize serverResponse; +@property(retain) NSNumber *suppressionCheckboxState; // @synthesize suppressionCheckboxState; +@property(retain) NSString *password; // @synthesize password; +@property(retain) NSString *username; // @synthesize username; +@property long long returnCode; // @synthesize returnCode; +- (void).cxx_destruct; +- (id)description; +- (void)encodeWithCoder:(id)arg1; +- (id)initWithCoder:(id)arg1; + +@end + diff --git a/mas-cli/Headers/StoreFoundation/ISSignInPromptSettings.h b/mas-cli/Headers/StoreFoundation/ISSignInPromptSettings.h new file mode 100644 index 0000000..91a6136 --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/ISSignInPromptSettings.h @@ -0,0 +1,56 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSObject.h" + +#import "NSSecureCoding.h" + +@class ISAuthenticationContext, ISStoreClient, NSNumber, NSString, NSURL, NSWindow; + +@interface ISSignInPromptSettings : NSObject +{ + NSString *titleString; + NSString *messageString; + NSString *defaultButtonString; + NSString *alternateButtonString; + NSString *otherButtonString; + NSString *suppressionCheckboxString; + NSNumber *suppressionCheckboxState; + NSURL *authenticateAccountURL; + ISAuthenticationContext *context; + ISStoreClient *storeClient; + BOOL needsDedicatedUI; + BOOL shouldUseAppStoreUI; + BOOL forceActivate; + NSWindow *_sheetWindow; +} + ++ (BOOL)supportsSecureCoding; ++ (id)settingsWithTitle:(id)arg1 message:(id)arg2 defaultButton:(id)arg3 alternateButton:(id)arg4 otherButton:(id)arg5 suppressionCheckbox:(id)arg6 suppressionCheckboxState:(id)arg7 authenticateAccountURL:(id)arg8 authenticationContext:(id)arg9 needsDedicatedUI:(BOOL)arg10 storeClient:(id)arg11; ++ (id)settingsWithTitle:(id)arg1 message:(id)arg2 defaultButton:(id)arg3 alternateButton:(id)arg4 otherButton:(id)arg5 suppressionCheckbox:(id)arg6 suppressionCheckboxState:(id)arg7 authenticateAccountURL:(id)arg8 authenticationContext:(id)arg9 shouldUseAppStoreUI:(BOOL)arg10 storeClient:(id)arg11; ++ (id)settingsWithTitle:(id)arg1 message:(id)arg2 defaultButton:(id)arg3 alternateButton:(id)arg4 otherButton:(id)arg5 suppressionCheckbox:(id)arg6 suppressionCheckboxState:(id)arg7 authenticateAccountURL:(id)arg8 authenticationContext:(id)arg9 storeClient:(id)arg10; +@property(retain) NSWindow *sheetWindow; // @synthesize sheetWindow=_sheetWindow; +@property(retain) ISStoreClient *storeClient; // @synthesize storeClient; +@property BOOL forceActivate; // @synthesize forceActivate; +@property BOOL shouldUseAppStoreUI; // @synthesize shouldUseAppStoreUI; +@property BOOL needsDedicatedUI; // @synthesize needsDedicatedUI; +@property(retain) ISAuthenticationContext *context; // @synthesize context; +@property(retain) NSURL *authenticateAccountURL; // @synthesize authenticateAccountURL; +@property(retain) NSNumber *suppressionCheckboxState; // @synthesize suppressionCheckboxState; +@property(retain) NSString *suppressionCheckboxString; // @synthesize suppressionCheckboxString; +@property(retain) NSString *otherButtonString; // @synthesize otherButtonString; +@property(retain) NSString *alternateButtonString; // @synthesize alternateButtonString; +@property(retain) NSString *defaultButtonString; // @synthesize defaultButtonString; +@property(retain) NSString *messageString; // @synthesize messageString; +@property(retain) NSString *titleString; // @synthesize titleString; +- (void).cxx_destruct; +- (void)encodeWithCoder:(id)arg1; +- (id)initWithCoder:(id)arg1; +- (id)description; +- (id)_shortDescriptionForString:(id)arg1; + +@end + diff --git a/mas-cli/Headers/StoreFoundation/ISSingleton-Protocol.h b/mas-cli/Headers/StoreFoundation/ISSingleton-Protocol.h new file mode 100644 index 0000000..ffe6b22 --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/ISSingleton-Protocol.h @@ -0,0 +1,12 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSObject.h" + +@protocol ISSingleton ++ (id)sharedInstance; +@end + diff --git a/mas-cli/Headers/StoreFoundation/ISStoreAccount.h b/mas-cli/Headers/StoreFoundation/ISStoreAccount.h new file mode 100644 index 0000000..cba764b --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/ISStoreAccount.h @@ -0,0 +1,53 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +@class NSDate, NSNumber, NSString, NSTimer; + +@interface ISStoreAccount : NSObject +{ + NSTimer *_tokenInvalidTimer; + BOOL _isSignedIn; + BOOL _primary; + NSNumber *_dsID; + NSString *_identifier; + long long _kind; + NSString *_creditString; + NSString *_storeFront; + NSString *_password; + NSString *_token; + long long _URLBagType; + NSDate *_tokenIssuedDate; + NSTimer *_tokenExpirationTimer; +} + ++ (id)migratePersistedStoreDictionary:(id)arg1; ++ (id)dsidFromPlistValue:(id)arg1; ++ (BOOL)supportsSecureCoding; +@property(readonly, getter=isPrimary) BOOL primary; // @synthesize primary=_primary; +@property(retain) NSTimer *tokenExpirationTimer; // @synthesize tokenExpirationTimer=_tokenExpirationTimer; +@property(retain) NSDate *tokenIssuedDate; // @synthesize tokenIssuedDate=_tokenIssuedDate; +@property long long URLBagType; // @synthesize URLBagType=_URLBagType; +@property(copy) NSString *token; // @synthesize token=_token; +@property(copy) NSString *password; // @synthesize password=_password; +@property BOOL isSignedIn; // @synthesize isSignedIn=_isSignedIn; +@property(retain) NSString *storeFront; // @synthesize storeFront=_storeFront; +@property(copy) NSString *creditString; // @synthesize creditString=_creditString; +@property long long kind; // @synthesize kind=_kind; +@property(copy) NSString *identifier; // @synthesize identifier=_identifier; +@property(copy) NSNumber *dsID; // @synthesize dsID=_dsID; +//- (void).cxx_destruct; +- (void)mergeValuesFromAuthenticationResponse:(id)arg1; +- (BOOL)hasValidStrongToken; +- (double)strongTokenValidForSecond; +- (id)description; +@property(readonly, getter=isAuthenticated) BOOL authenticated; +- (id)persistedStoreDictionary; +- (id)initWithPersistedStoreDictionary:(id)arg1; +- (void)encodeWithCoder:(id)arg1; +- (id)initWithCoder:(id)arg1; + +@end + diff --git a/mas-cli/Headers/StoreFoundation/ISStoreAuthenticationChallenge.h b/mas-cli/Headers/StoreFoundation/ISStoreAuthenticationChallenge.h new file mode 100644 index 0000000..ca2ad7a --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/ISStoreAuthenticationChallenge.h @@ -0,0 +1,32 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import + +@class NSString; + +@interface ISStoreAuthenticationChallenge : ISAuthenticationChallenge +{ + long long _failureCount; + BOOL _hasPassword; + NSString *_password; + id _sender; + NSString *_user; + BOOL _userNameIsEditable; +} + +@property BOOL userNameIsEditable; // @synthesize userNameIsEditable=_userNameIsEditable; +@property(retain) NSString *user; // @synthesize user=_user; +@property __weak id sender; // @synthesize sender=_sender; +@property(retain) NSString *password; // @synthesize password=_password; +@property BOOL hasPassword; // @synthesize hasPassword=_hasPassword; +@property long long failureCount; // @synthesize failureCount=_failureCount; +- (void).cxx_destruct; +- (BOOL)userNameIsEmail; +- (id)init; + +@end + diff --git a/mas-cli/Headers/StoreFoundation/ISStoreClient.h b/mas-cli/Headers/StoreFoundation/ISStoreClient.h new file mode 100644 index 0000000..f4d51e0 --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/ISStoreClient.h @@ -0,0 +1,73 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +@class ISStoreAccount, NSArray, NSDictionary, NSString; + +@interface ISStoreClient : NSObject +{ + BOOL __alwaysUseSandboxEnvironment; + BOOL _isDaemon; + unsigned long long _frameworkVersion; + NSString *_identifier; + long long _clientType; + ISStoreAccount *_primaryAccount; + NSString *_userAgentAppName; + NSString *_userAgentAppVersion; + NSString *_agentPreferencesDomain; + NSString *_appPreferencesDomain; + NSString *_storeFrontBagKey; + NSArray *_productionBagURLs; + NSArray *_sandboxBagURLs; + NSString *_toolbarBagKey; + long long _requiredBagType; + NSString *_aslDomain; + NSString *_storeURLScheme; + NSString *_storeSecureURLScheme; + NSString *_tempPathClientIdentifier; + long long _mediaTypeMask; + NSString *_pushServiceName; + NSString *_appPath; + NSDictionary *_daap; + NSString *_displayUIHostID; + NSString *_agentListenerName; +} + ++ (id)knownClientWithIdentifier:(id)arg1 frameworkVersion:(id)arg2; ++ (BOOL)supportsSecureCoding; +@property BOOL isDaemon; // @synthesize isDaemon=_isDaemon; +@property(copy) NSString *agentListenerName; // @synthesize agentListenerName=_agentListenerName; +@property(copy) NSString *displayUIHostID; // @synthesize displayUIHostID=_displayUIHostID; +@property(copy) NSDictionary *daap; // @synthesize daap=_daap; +@property(copy) NSString *appPath; // @synthesize appPath=_appPath; +@property(copy) NSString *pushServiceName; // @synthesize pushServiceName=_pushServiceName; +@property long long mediaTypeMask; // @synthesize mediaTypeMask=_mediaTypeMask; +@property(copy) NSString *tempPathClientIdentifier; // @synthesize tempPathClientIdentifier=_tempPathClientIdentifier; +@property(copy) NSString *storeSecureURLScheme; // @synthesize storeSecureURLScheme=_storeSecureURLScheme; +@property(copy) NSString *storeURLScheme; // @synthesize storeURLScheme=_storeURLScheme; +@property(setter=_setAlwaysUseSandboxEnvironment:) BOOL _alwaysUseSandboxEnvironment; // @synthesize _alwaysUseSandboxEnvironment=__alwaysUseSandboxEnvironment; +@property(copy) NSString *aslDomain; // @synthesize aslDomain=_aslDomain; +@property long long requiredBagType; // @synthesize requiredBagType=_requiredBagType; +@property(copy) NSString *toolbarBagKey; // @synthesize toolbarBagKey=_toolbarBagKey; +@property(copy) NSArray *sandboxBagURLs; // @synthesize sandboxBagURLs=_sandboxBagURLs; +@property(copy) NSArray *productionBagURLs; // @synthesize productionBagURLs=_productionBagURLs; +@property(copy) NSString *storeFrontBagKey; // @synthesize storeFrontBagKey=_storeFrontBagKey; +@property(copy) NSString *appPreferencesDomain; // @synthesize appPreferencesDomain=_appPreferencesDomain; +@property(copy) NSString *agentPreferencesDomain; // @synthesize agentPreferencesDomain=_agentPreferencesDomain; +@property(copy) NSString *userAgentAppVersion; // @synthesize userAgentAppVersion=_userAgentAppVersion; +@property(copy) NSString *userAgentAppName; // @synthesize userAgentAppName=_userAgentAppName; +@property(copy) ISStoreAccount *primaryAccount; // @synthesize primaryAccount=_primaryAccount; +@property long long clientType; // @synthesize clientType=_clientType; +@property(copy) NSString *identifier; // @synthesize identifier=_identifier; +@property unsigned long long frameworkVersion; // @synthesize frameworkVersion=_frameworkVersion; +- (BOOL)isEqualToStoreClient:(id)arg1; +- (void)_cacheKnownClient:(id)arg1; +- (id)initWithCoder:(id)arg1; +- (void)encodeWithCoder:(id)arg1; +- (id)initWithApplicationPath:(id)arg1; +- (id)initWithStoreClientType:(long long)arg1; + +@end + diff --git a/mas-cli/Headers/StoreFoundation/ISStoreURLOperation.h b/mas-cli/Headers/StoreFoundation/ISStoreURLOperation.h new file mode 100644 index 0000000..ce0ec3c --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/ISStoreURLOperation.h @@ -0,0 +1,65 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import + +@class ISAuthenticationContext, NSNumber, NSString; + +@interface ISStoreURLOperation : ISURLOperation +{ + ISAuthenticationContext *_authenticationContext; + NSNumber *_authenticatedDSID; + int _bagType; + BOOL _needsAuthentication; + BOOL _sendToken; + NSString *_urlBagKey; + BOOL _urlKnownToBeTrusted; + BOOL _useDSIDSpecificBag; + BOOL _adiActionInResponse; + long long _adiSilentActionRetryCount; + BOOL _shouldRetryOnSilentADIAction; + CDUnknownBlockType _authenticationCompletedHandler; + CDUnknownBlockType _requestMutationHandler; + NSString *_strongToken; +} + ++ (void)addStandardQueryParametersForURL:(id)arg1 request:(id *)arg2 serviceProxy:(id)arg3; ++ (id)cacheBusterString; ++ (id)propertyListOperationWithURLBagKey:(id)arg1 storeClient:(id)arg2; ++ (id)pingOperationWithUrl:(id)arg1 storeClient:(id)arg2; ++ (void)addITunesStoreHeadersToRequest:(id)arg1 withStoreClient:(id)arg2 storeAccount:(id)arg3; ++ (id)acceptLanguageHeaderString; +@property(copy, nonatomic) NSString *strongToken; // @synthesize strongToken=_strongToken; +@property BOOL shouldRetryOnSilentADIAction; // @synthesize shouldRetryOnSilentADIAction=_shouldRetryOnSilentADIAction; +@property(copy) CDUnknownBlockType requestMutationHandler; // @synthesize requestMutationHandler=_requestMutationHandler; +@property(copy) CDUnknownBlockType authenticationCompletedHandler; // @synthesize authenticationCompletedHandler=_authenticationCompletedHandler; +@property BOOL useDSIDSpecificBag; // @synthesize useDSIDSpecificBag=_useDSIDSpecificBag; +@property BOOL urlKnownToBeTrusted; // @synthesize urlKnownToBeTrusted=_urlKnownToBeTrusted; +@property(retain) NSString *urlBagKey; // @synthesize urlBagKey=_urlBagKey; +@property BOOL sendToken; // @synthesize sendToken=_sendToken; +@property BOOL needsAuthentication; // @synthesize needsAuthentication=_needsAuthentication; +@property(retain) NSNumber *authenticatedDSID; // @synthesize authenticatedDSID=_authenticatedDSID; +@property(retain) ISAuthenticationContext *authenticationContext; // @synthesize authenticationContext=_authenticationContext; +- (void).cxx_destruct; +- (void)_runURLOperation; +- (BOOL)_canSendTokenToURL:(id)arg1; +- (BOOL)_authenticateReturningError:(id *)arg1; +- (void)_addStandardQueryParametersForURL:(id)arg1; +- (BOOL)shouldFollowRedirectWithRequest:(id)arg1 returningError:(id *)arg2; +- (void)run; +- (BOOL)_dataProviderDidProcessDialog; +- (id)newRequestWithURL:(id)arg1; +- (void)handleResponse:(id)arg1; +- (BOOL)handleRedirectFromDataProvider:(id)arg1; +- (id)authenticatedAccountDSID; +- (id)description; +- (id)init; + +// Remaining properties +@property __weak id delegate; // @dynamic delegate; + +@end + diff --git a/mas-cli/Headers/StoreFoundation/ISStoreVersion.h b/mas-cli/Headers/StoreFoundation/ISStoreVersion.h new file mode 100644 index 0000000..60984ec --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/ISStoreVersion.h @@ -0,0 +1,21 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSObject.h" + +@class NSURL; + +@interface ISStoreVersion : NSObject +{ + NSURL *_redirectURL; +} + +@property(retain, nonatomic) NSURL *redirectURL; // @synthesize redirectURL=_redirectURL; +- (void).cxx_destruct; +- (id)initWithDictionary:(id)arg1; + +@end + diff --git a/mas-cli/Headers/StoreFoundation/ISTransactionService-Protocol.h b/mas-cli/Headers/StoreFoundation/ISTransactionService-Protocol.h new file mode 100644 index 0000000..222a8a1 --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/ISTransactionService-Protocol.h @@ -0,0 +1,34 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "ISServiceRemoteObject-Protocol.h" + +@class ISAuthenticationContext, ISURLRequest, NSArray, NSData, NSDictionary, NSHTTPURLResponse, NSNumber, NSString, NSURL, SSPurchase, SSPurchaseResponse; + +@protocol ISTransactionService +- (void)processAskToBuyPermissionRequestWithURL:(NSURL *)arg1; +- (void)performInAppPurchaseWithBuyRequestDictionary:(NSDictionary *)arg1 urlBagKey:(NSString *)arg2 replyBlock:(void (^)(NSDictionary *, BOOL, NSError *))arg3; +- (void)performInAppPurchaseWithBuyParameters:(NSString *)arg1 urlBagKey:(NSString *)arg2 replyBlock:(void (^)(NSDictionary *, BOOL, NSError *))arg3; +- (void)itemLookup:(NSDictionary *)arg1 replyBlock:(void (^)(BOOL, NSDictionary *, NSError *))arg2; +- (void)deauthorizeMachineWithReplyBlock:(void (^)(BOOL, NSError *))arg1; +- (void)authorizeMachineWithAppleID:(NSString *)arg1 replyBlock:(void (^)(BOOL, NSError *))arg2; +- (void)explicitBookContentRestrictedNumberWithReplyBlock:(void (^)(NSNumber *))arg1; +- (void)purchaseInProgressForProductID:(NSNumber *)arg1 replyBlock:(void (^)(SSPurchase *))arg2; +- (void)performPurchases:(NSArray *)arg1 withBundleIDsToAdopt:(NSArray *)arg2 legacyAppsToGrant:(NSArray *)arg3 withOptions:(unsigned long long)arg4 replyBlock:(void (^)(NSDictionary *, BOOL, NSError *))arg5; +- (void)performPurchase:(SSPurchase *)arg1 withBundleIDsToAdopt:(NSArray *)arg2 legacyAppsToGrant:(NSArray *)arg3 withOptions:(unsigned long long)arg4 replyBlock:(void (^)(SSPurchase *, BOOL, NSError *, SSPurchaseResponse *))arg5; +- (void)signedBodyWithURLResponse:(NSHTTPURLResponse *)arg1 service:(NSString *)arg2 data:(NSData *)arg3 usingSAPSessionID:(NSString *)arg4 withReplyBlock:(void (^)(NSData *))arg5; +- (void)signURLRequest:(ISURLRequest *)arg1 service:(NSString *)arg2 usingSAPSessionID:(NSString *)arg3 withReplyBlock:(void (^)(ISURLRequest *))arg4; +- (void)signedHeadersForURLRequest:(ISURLRequest *)arg1 service:(NSString *)arg2 usingSAPSessionID:(NSString *)arg3 withReplyBlock:(void (^)(NSDictionary *))arg4; +- (void)signData:(NSData *)arg1 usingSAPSessionID:(NSString *)arg2 replyBlock:(void (^)(BOOL, NSData *, NSError *))arg3; +- (void)processSAPResponse:(NSData *)arg1 usingSessionUUID:(NSString *)arg2 replyBlock:(void (^)(BOOL, NSError *))arg3; +- (void)primeSAPContextForAccountCreationWithSessionUUID:(NSString *)arg1 replyBlock:(void (^)(BOOL, NSData *, NSError *))arg2; +- (void)disposeOfSAPSessionWithUUID:(NSString *)arg1; +- (void)createSAPSessionWithPrimedContext:(BOOL)arg1 replyBlock:(void (^)(NSString *, NSError *))arg2; +- (void)setNeedsSilentMachineAuthorization:(BOOL)arg1; +- (void)needsSilentMachineAuthorizationWithReplyBlock:(void (^)(BOOL))arg1; +- (void)dsidByAuthenticatingWithContext:(ISAuthenticationContext *)arg1 replyBlock:(void (^)(BOOL, NSNumber *, NSError *))arg2; +@end + diff --git a/mas-cli/Headers/StoreFoundation/ISUIHostProtocol-Protocol.h b/mas-cli/Headers/StoreFoundation/ISUIHostProtocol-Protocol.h new file mode 100644 index 0000000..aebf6a3 --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/ISUIHostProtocol-Protocol.h @@ -0,0 +1,16 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +@class ISDialog, NSData, NSString; + +@protocol ISUIHostProtocol +- (void)serviceDisplayFirmwareWarningWithTitle:(NSString *)arg1 content:(NSData *)arg2 replyBlock:(void (^)(BOOL))arg3; +- (void)serviceDisplayLicenseAgreementWithTitle:(NSString *)arg1 content:(NSData *)arg2 replyBlock:(void (^)(BOOL))arg3; +- (void)serviceDismissDialog:(ISDialog *)arg1 withExitCode:(long long)arg2; +- (void)serviceDisplayDialog:(ISDialog *)arg1 withServiceDelegate:(id )arg2 replyBlock:(void (^)(long long, ISSignInPromptResponse *))arg3; +- (void)serviceDisplayDialog:(ISDialog *)arg1; +@end + diff --git a/mas-cli/Headers/StoreFoundation/ISUIService-Protocol.h b/mas-cli/Headers/StoreFoundation/ISUIService-Protocol.h new file mode 100644 index 0000000..dde7608 --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/ISUIService-Protocol.h @@ -0,0 +1,23 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "ISServiceRemoteObject.h" + +@class ISDialog, NSData, NSString; + +@protocol ISUIService +- (void)dismissGatekeeperProgressWindowForPath:(NSString *)arg1 replyBlock:(void (^)(BOOL))arg2; +- (void)updateGatekeeperProgressWindowForPath:(NSString *)arg1 percentComplete:(float)arg2 replyBlock:(void (^)(BOOL))arg3; +- (void)displayGatekeeperProgressWindowForPath:(NSString *)arg1 replyBlock:(void (^)(BOOL))arg2; +- (void)displayFirmwareWarningWithTitle:(NSString *)arg1 content:(NSData *)arg2 replyBlock:(void (^)(BOOL, BOOL))arg3; +- (void)displayLicenseAgreementWithTitle:(NSString *)arg1 content:(NSData *)arg2 replyBlock:(void (^)(BOOL, BOOL))arg3; +- (void)dismissDialog:(ISDialog *)arg1 withExitCode:(long long)arg2; +- (void)displayDialog:(ISDialog *)arg1 withDelegate:(id )arg2 replyBlock:(void (^)(long long, ISSignInPromptResponse *))arg3; +- (void)displayDialog:(ISDialog *)arg1; +- (void)removeDialogHost:(id )arg1; +- (void)addDialogHost:(id )arg1; +@end + diff --git a/mas-cli/Headers/StoreFoundation/ISUIServiceClientRemoteObject-Protocol.h b/mas-cli/Headers/StoreFoundation/ISUIServiceClientRemoteObject-Protocol.h new file mode 100644 index 0000000..104f3d4 --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/ISUIServiceClientRemoteObject-Protocol.h @@ -0,0 +1,14 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +@class ISDialog; + +@protocol ISUIServiceClientRemoteObject +- (void)serviceDismissDialog:(ISDialog *)arg1 withExitCode:(long long)arg2; +- (void)serviceDisplayDialog:(ISDialog *)arg1 withServiceDelegate:(id )arg2 replyBlock:(void (^)(long long, ISSignInPromptResponse *))arg3; +- (void)serviceDisplayDialog:(ISDialog *)arg1; +@end + diff --git a/mas-cli/Headers/StoreFoundation/ISURLAuthenticationChallenge.h b/mas-cli/Headers/StoreFoundation/ISURLAuthenticationChallenge.h new file mode 100644 index 0000000..0672903 --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/ISURLAuthenticationChallenge.h @@ -0,0 +1,28 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import + +@class NSURLAuthenticationChallenge; + +@interface ISURLAuthenticationChallenge : ISAuthenticationChallenge +{ + NSURLAuthenticationChallenge *_challenge; +} + +- (void).cxx_destruct; +- (void)useCredential:(id)arg1; +- (id)user; +- (id)sender; +- (id)password; +- (BOOL)hasPassword; +- (long long)failureCount; +- (void)cancelAuthentication; +- (void)dealloc; +- (id)initWithAuthenticationChallenge:(id)arg1; + +@end + diff --git a/mas-cli/Headers/StoreFoundation/ISURLBagObserver-Protocol.h b/mas-cli/Headers/StoreFoundation/ISURLBagObserver-Protocol.h new file mode 100644 index 0000000..ab3ee41 --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/ISURLBagObserver-Protocol.h @@ -0,0 +1,12 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +@class NSError; + +@protocol ISURLBagObserver +- (void)urlBagDidUpdateWithSuccess:(BOOL)arg1 error:(NSError *)arg2; +@end + diff --git a/mas-cli/Headers/StoreFoundation/ISURLOperation.h b/mas-cli/Headers/StoreFoundation/ISURLOperation.h new file mode 100644 index 0000000..d17b7e5 --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/ISURLOperation.h @@ -0,0 +1,89 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import + +#import "NSURLConnectionDelegate.h" + +@class ISDataProvider, ISURLRequest, NSCountedSet, NSDictionary, NSMutableData, NSString, NSURLConnection, NSURLRequest, NSURLResponse; + +@interface ISURLOperation : ISOperation +{ + NSURLRequest *_activeURLRequest; + NSURLConnection *_connection; + NSMutableData *_dataBuffer; + ISDataProvider *_dataProvider; + long long _networkRetryCount; + long long _contentRetryCount; + NSCountedSet *_redirectURLs; + ISURLRequest *_request; + NSURLResponse *_response; + BOOL _shouldSetCookies; + unsigned long long _countedBytes; + BOOL _checkForIncompleteFinish; + BOOL _cancelIfNotAlreadyOnDisk; + BOOL _fileWasAlreadyOnDisk; + BOOL _shouldRetryOnNetworkError; + NSDictionary *_conditionalConnectionProperties; + CDUnknownBlockType _outputHandler; +} + ++ (long long)operationType; +@property(copy) CDUnknownBlockType outputHandler; // @synthesize outputHandler=_outputHandler; +@property(copy) NSDictionary *conditionalConnectionProperties; // @synthesize conditionalConnectionProperties=_conditionalConnectionProperties; +@property BOOL shouldRetryOnNetworkError; // @synthesize shouldRetryOnNetworkError=_shouldRetryOnNetworkError; +@property(readonly) BOOL fileWasAlreadyOnDisk; // @synthesize fileWasAlreadyOnDisk=_fileWasAlreadyOnDisk; +@property BOOL cancelIfNotAlreadyOnDisk; // @synthesize cancelIfNotAlreadyOnDisk=_cancelIfNotAlreadyOnDisk; +@property BOOL checkForIncompleteFinish; // @synthesize checkForIncompleteFinish=_checkForIncompleteFinish; +@property(getter=_shouldSetCookies, setter=_setShouldSetCookies:) BOOL _shouldSetCookies; // @synthesize _shouldSetCookies; +@property(retain) NSURLResponse *response; // @synthesize response=_response; +@property(retain) ISDataProvider *dataProvider; // @synthesize dataProvider=_dataProvider; +- (void).cxx_destruct; +- (void)_updateProgress; +- (void)_stopConnection; +- (void)_sendResponseToDelegate:(id)arg1; +- (void)_sendRequestToDelegate:(id)arg1; +- (void)_sendOutputToDelegate:(id)arg1; +- (void)_setActiveURLRequest:(id)arg1; +- (BOOL)_runWithURL:(id)arg1; +- (void)_run; +- (void)_retry; +- (id)_urlConnectionWithRequest:(id)arg1; +- (void)_logResponseBody:(id)arg1; +- (void)_logRequest:(id)arg1; +- (void)_logHeadersForRequest:(id)arg1; +- (id)_copyQueryStringDictionaryForRedirect:(id)arg1; +- (id)_copyAcceptLanguageString; +- (id)_activeURL; +- (id)_handleRedirectRequest:(id)arg1 response:(id)arg2; +- (void)_handleReceivedResponse:(id)arg1; +- (void)_handleReceivedData:(id)arg1; +- (void)_handleFinishedLoading; +- (id)_request; +- (void)connection:(id)arg1 conditionalRequirementsChanged:(BOOL)arg2; +- (id)connection:(id)arg1 willSendRequestForEstablishedConnection:(id)arg2 properties:(id)arg3; +- (void)connectionDidFinishLoading:(id)arg1; +- (id)connection:(id)arg1 willSendRequest:(id)arg2 redirectResponse:(id)arg3; +- (void)connection:(id)arg1 didReceiveResponse:(id)arg2; +- (void)connection:(id)arg1 didReceiveData:(id)arg2; +- (void)connection:(id)arg1 didFailWithError:(id)arg2; +- (BOOL)shouldFollowRedirectWithRequest:(id)arg1 returningError:(id *)arg2; +- (id)newRequestWithURL:(id)arg1; +- (void)handleResponse:(id)arg1; +- (BOOL)handleRedirectFromDataProvider:(id)arg1; +- (void)run; +@property(copy) ISURLRequest *request; // @synthesize request=_request; +- (id)init; + +// Remaining properties +@property(readonly, copy) NSString *debugDescription; +@property __weak id delegate; // @dynamic delegate; +@property(readonly, copy) NSString *description; +@property(readonly) unsigned long long hash; +@property(readonly) Class superclass; + +@end + diff --git a/mas-cli/Headers/StoreFoundation/ISURLOperationDelegate-Protocol.h b/mas-cli/Headers/StoreFoundation/ISURLOperationDelegate-Protocol.h new file mode 100644 index 0000000..3465186 --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/ISURLOperationDelegate-Protocol.h @@ -0,0 +1,18 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "ISOperationDelegate.h" + +@class ISURLOperation, NSMutableURLRequest, NSURLResponse; + +@protocol ISURLOperationDelegate + +@optional +- (void)operation:(ISURLOperation *)arg1 willSendRequest:(NSMutableURLRequest *)arg2; +- (void)operation:(ISURLOperation *)arg1 didReceiveResponse:(NSURLResponse *)arg2; +- (void)operation:(ISURLOperation *)arg1 finishedWithOutput:(id)arg2; +@end + diff --git a/mas-cli/Headers/StoreFoundation/ISURLRequest.h b/mas-cli/Headers/StoreFoundation/ISURLRequest.h new file mode 100644 index 0000000..3cd4e47 --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/ISURLRequest.h @@ -0,0 +1,59 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSObject.h" + +#import "NSCopying.h" +#import "NSSecureCoding.h" + +@class NSArray, NSData, NSDictionary, NSString, NSURL; + +@interface ISURLRequest : NSObject +{ + NSData *_body; + NSString *_method; + NSDictionary *_queryStringDictionary; + double _timeoutInterval; + BOOL _retryAfterTimeout; + NSArray *_urls; + unsigned long long _cachePolicy; + NSDictionary *_customHeaders; + BOOL _resourceRequest; + BOOL _preventsIdleSystemSleep; + BOOL _suppressADIHeaders; + BOOL _alwaysSendGUID; +} + ++ (id)requestWithURL:(id)arg1; ++ (BOOL)supportsSecureCoding; +@property BOOL alwaysSendGUID; // @synthesize alwaysSendGUID=_alwaysSendGUID; +@property BOOL suppressADIHeaders; // @synthesize suppressADIHeaders=_suppressADIHeaders; +@property BOOL preventsIdleSystemSleep; // @synthesize preventsIdleSystemSleep=_preventsIdleSystemSleep; +@property(readonly) BOOL resourceRequest; // @synthesize resourceRequest=_resourceRequest; +@property(retain) NSDictionary *customHeaders; // @synthesize customHeaders=_customHeaders; +@property unsigned long long cachePolicy; // @synthesize cachePolicy=_cachePolicy; +@property(retain) NSArray *URLs; // @synthesize URLs=_urls; +@property BOOL retryAfterTimeout; // @synthesize retryAfterTimeout=_retryAfterTimeout; +@property double timeoutInterval; // @synthesize timeoutInterval=_timeoutInterval; +@property(retain) NSDictionary *queryStringDictionary; // @synthesize queryStringDictionary=_queryStringDictionary; +@property(retain) NSString *method; // @synthesize method=_method; +@property(retain) NSData *body; // @synthesize body=_body; +- (void).cxx_destruct; +- (id)description; +- (void)setValue:(id)arg1 forQueryStringParameter:(id)arg2; +- (void)setValue:(id)arg1 forHeaderField:(id)arg2; +@property(readonly) NSURL *primaryURL; +- (id)newURLRequestWithURL:(id)arg1 storeAccount:(id)arg2 serviceProxy:(id)arg3; +- (BOOL)isEqual:(id)arg1; +- (id)copyWithZone:(struct _NSZone *)arg1; +- (id)initWithCoder:(id)arg1; +- (void)encodeWithCoder:(id)arg1; +- (id)initWithURL:(id)arg1; +- (id)initWithURLRequest:(id)arg1; +- (id)init; + +@end + diff --git a/mas-cli/Headers/StoreFoundation/ISUniqueOperationContext.h b/mas-cli/Headers/StoreFoundation/ISUniqueOperationContext.h new file mode 100644 index 0000000..af42272 --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/ISUniqueOperationContext.h @@ -0,0 +1,28 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSObject.h" + +@class NSMutableDictionary, NSMutableSet; + +@interface ISUniqueOperationContext : NSObject +{ + NSMutableSet *_operations; + NSMutableDictionary *_uniqueOperations; +} + +- (void).cxx_destruct; +- (id)uniqueOperationForKey:(id)arg1; +- (void)setUniqueOperation:(id)arg1 forKey:(id)arg2; +- (void)removeOperation:(id)arg1; +- (unsigned long long)countOfOperations; +- (BOOL)containsOperation:(id)arg1; +- (void)addOperation:(id)arg1; +- (void)dealloc; +- (id)init; + +@end + diff --git a/mas-cli/Headers/StoreFoundation/ISUniqueOperationManager.h b/mas-cli/Headers/StoreFoundation/ISUniqueOperationManager.h new file mode 100644 index 0000000..fbf60a6 --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/ISUniqueOperationManager.h @@ -0,0 +1,40 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSObject.h" + +#import "ISSingleton.h" + +@class ISUniqueOperationContext, NSLock, NSMutableArray, NSString; + +@interface ISUniqueOperationManager : NSObject +{ + ISUniqueOperationContext *_activeContext; + NSMutableArray *_contexts; + NSLock *_lock; +} + ++ (id)sharedInstance; ++ (void)setSharedInstance:(id)arg1; +- (void).cxx_destruct; +- (id)_contextForOperation:(id)arg1; +- (id)_activeContext; +- (void)uniqueOperationFinished:(id)arg1 forKey:(id)arg2; +- (void)setPredecessorIfNeeded:(id)arg1 forKey:(id)arg2; +- (id)predecessorForKey:(id)arg1 operation:(id)arg2; +- (void)checkOutOperation:(id)arg1; +- (void)checkInOperation:(id)arg1; +- (void)dealloc; +- (id)init; + +// Remaining properties +@property(readonly, copy) NSString *debugDescription; +@property(readonly, copy) NSString *description; +@property(readonly) unsigned long long hash; +@property(readonly) Class superclass; + +@end + diff --git a/mas-cli/Headers/StoreFoundation/ISUpdateDelegate-Protocol.h b/mas-cli/Headers/StoreFoundation/ISUpdateDelegate-Protocol.h new file mode 100644 index 0000000..e87ffc5 --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/ISUpdateDelegate-Protocol.h @@ -0,0 +1,14 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +@class CKUpdate, NSError, SSPurchase, SSPurchaseResponse, SUAppStoreUpdate; + +@protocol ISUpdateDelegate +- (void)appUpdatePurchase:(SSPurchase *)arg1 didFinishWithSuccess:(BOOL)arg2 response:(SSPurchaseResponse *)arg3 error:(NSError *)arg4; +- (void)appUpdate:(CKUpdate *)arg1 wasCancelledWithError:(NSError *)arg2; +- (void)osUpdate:(SUAppStoreUpdate *)arg1 wasCancelledWithError:(NSError *)arg2; +@end + diff --git a/mas-cli/Headers/StoreFoundation/ISUserNotification.h b/mas-cli/Headers/StoreFoundation/ISUserNotification.h new file mode 100644 index 0000000..92341b6 --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/ISUserNotification.h @@ -0,0 +1,31 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSObject.h" + +@class NSDictionary; + +@interface ISUserNotification : NSObject +{ + long long _allowedRetryCount; + long long _currentRetryCount; + NSDictionary *_dictionary; + unsigned long long _optionFlags; + NSDictionary *_userInfo; +} + +@property(retain) NSDictionary *userInfo; // @synthesize userInfo=_userInfo; +@property unsigned long long optionFlags; // @synthesize optionFlags=_optionFlags; +@property(retain) NSDictionary *dictionary; // @synthesize dictionary=_dictionary; +@property long long currentRetryCount; // @synthesize currentRetryCount=_currentRetryCount; +@property long long allowedRetryCount; // @synthesize allowedRetryCount=_allowedRetryCount; +- (void).cxx_destruct; +- (struct __CFUserNotification *)copyUserNotification; +- (id)initWithDictionary:(id)arg1 options:(unsigned long long)arg2; +- (id)init; + +@end + diff --git a/mas-cli/Headers/StoreFoundation/NSBundle-CommerceKit.h b/mas-cli/Headers/StoreFoundation/NSBundle-CommerceKit.h new file mode 100644 index 0000000..c047a9b --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/NSBundle-CommerceKit.h @@ -0,0 +1,12 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSBundle.h" + +@interface NSBundle (CommerceKit) ++ (id)commerceKit; +@end + diff --git a/mas-cli/Headers/StoreFoundation/NSCoding-Protocol.h b/mas-cli/Headers/StoreFoundation/NSCoding-Protocol.h new file mode 100644 index 0000000..fa8a380 --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/NSCoding-Protocol.h @@ -0,0 +1,13 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +@class NSCoder; + +@protocol NSCoding +- (id)initWithCoder:(NSCoder *)arg1; +- (void)encodeWithCoder:(NSCoder *)arg1; +@end + diff --git a/mas-cli/Headers/StoreFoundation/NSCopying-Protocol.h b/mas-cli/Headers/StoreFoundation/NSCopying-Protocol.h new file mode 100644 index 0000000..10a8b7b --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/NSCopying-Protocol.h @@ -0,0 +1,10 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +@protocol NSCopying +- (id)copyWithZone:(struct _NSZone *)arg1; +@end + diff --git a/mas-cli/Headers/StoreFoundation/NSData-AdoptionSerialNumber.h b/mas-cli/Headers/StoreFoundation/NSData-AdoptionSerialNumber.h new file mode 100644 index 0000000..a2f39ef --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/NSData-AdoptionSerialNumber.h @@ -0,0 +1,14 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSData.h" + +@interface NSData (AdoptionSerialNumber) ++ (id)dataForNVRAMKey:(id)arg1; +- (id)hexAddressDescription; +- (id)nvramDescription; +@end + diff --git a/mas-cli/Headers/StoreFoundation/NSData-SSDebug.h b/mas-cli/Headers/StoreFoundation/NSData-SSDebug.h new file mode 100644 index 0000000..3beb9d3 --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/NSData-SSDebug.h @@ -0,0 +1,12 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSData.h" + +@interface NSData (SSDebug) +- (id)dictionaryFromData; +@end + diff --git a/mas-cli/Headers/StoreFoundation/NSData-dataWithAuthorizationRef.h b/mas-cli/Headers/StoreFoundation/NSData-dataWithAuthorizationRef.h new file mode 100644 index 0000000..fe5bf76 --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/NSData-dataWithAuthorizationRef.h @@ -0,0 +1,12 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSData.h" + +@interface NSData (dataWithAuthorizationRef) ++ (id)dataWithAuthorizationRef:(struct AuthorizationOpaqueRef *)arg1; +@end + diff --git a/mas-cli/Headers/StoreFoundation/NSDictionary-ISPropertyListAdditions.h b/mas-cli/Headers/StoreFoundation/NSDictionary-ISPropertyListAdditions.h new file mode 100644 index 0000000..eb376f5 --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/NSDictionary-ISPropertyListAdditions.h @@ -0,0 +1,12 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSDictionary.h" + +@interface NSDictionary (ISPropertyListAdditions) +- (BOOL)shouldTriggerDownloadQueueCheck; +@end + diff --git a/mas-cli/Headers/StoreFoundation/NSError-Authentication.h b/mas-cli/Headers/StoreFoundation/NSError-Authentication.h new file mode 100644 index 0000000..1f6c8c7 --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/NSError-Authentication.h @@ -0,0 +1,12 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSError.h" + +@interface NSError (Authentication) +- (BOOL)shouldOfferRetryForAuthentication; +@end + diff --git a/mas-cli/Headers/StoreFoundation/NSError-ISAdditions.h b/mas-cli/Headers/StoreFoundation/NSError-ISAdditions.h new file mode 100644 index 0000000..38eaca0 --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/NSError-ISAdditions.h @@ -0,0 +1,16 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSError.h" + +@interface NSError (ISAdditions) ++ (id)tooBigForDiskErrorWithCount:(long long)arg1; +- (BOOL)isFatalError; +- (BOOL)isEqual:(id)arg1 compareUserInfo:(BOOL)arg2; +- (id)errorBySettingValue:(id)arg1 forUserInfoKey:(id)arg2; +- (id)errorBySettingFatalError:(BOOL)arg1; +@end + diff --git a/mas-cli/Headers/StoreFoundation/NSFileManager-ISAdditions.h b/mas-cli/Headers/StoreFoundation/NSFileManager-ISAdditions.h new file mode 100644 index 0000000..a64d990 --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/NSFileManager-ISAdditions.h @@ -0,0 +1,31 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSFileManager.h" + +@interface NSFileManager (ISAdditions) ++ (BOOL)_storeMovePath:(id)arg1 toPath:(id)arg2; ++ (BOOL)ensureDirectoryExists:(id)arg1; ++ (id)cacheDirectoryPathWithName:(id)arg1; +- (BOOL)writeReceiptString:(id)arg1 toPath:(id)arg2; +- (BOOL)isBootableVolume:(id)arg1; +- (BOOL)isUpdatableAtPath:(id)arg1; +- (BOOL)isInstallableAtPath:(id)arg1; +- (BOOL)isAppStoreAppAtPath:(id)arg1; +- (BOOL)isSignedFileAtPath:(id)arg1; +- (BOOL)isSignedByDeveloperFileAtPath:(id)arg1 withProgressHandler:(CDUnknownBlockType)arg2; +- (BOOL)isSignedByDeveloperFileAtPath:(id)arg1 basicCheck:(BOOL)arg2; +- (BOOL)isSignedByDeveloperFileAtPath:(id)arg1 basicCheck:(BOOL)arg2 progressHandler:(CDUnknownBlockType)arg3; +- (BOOL)isSignedByDeveloperFileAtPath:(id)arg1; +- (BOOL)isSignedByAppleFileAtPath:(id)arg1; +- (BOOL)isSignedByAppleFileAtPath:(id)arg1 withProgressHandler:(CDUnknownBlockType)arg2; +- (BOOL)isSignedByAppleFileAtPath:(id)arg1 basicCheck:(BOOL)arg2; +- (BOOL)isSignedByAppleFileAtPath:(id)arg1 basicCheck:(BOOL)arg2 progressHandler:(CDUnknownBlockType)arg3; +- (BOOL)_isFileSignedAtPath:(id)arg1 withRequirement:(struct __CFData *)arg2; +- (BOOL)_isFileSignedAtPath:(id)arg1 withRequirement:(struct __CFData *)arg2 basicCheck:(BOOL)arg3; +- (BOOL)_isFileSignedAtPath:(id)arg1 withRequirement:(struct __CFData *)arg2 basicCheck:(BOOL)arg3 progressHandler:(CDUnknownBlockType)arg4; +@end + diff --git a/mas-cli/Headers/StoreFoundation/NSHTTPURLResponse-ISAdditions.h b/mas-cli/Headers/StoreFoundation/NSHTTPURLResponse-ISAdditions.h new file mode 100644 index 0000000..04db264 --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/NSHTTPURLResponse-ISAdditions.h @@ -0,0 +1,17 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSHTTPURLResponse.h" + +@interface NSHTTPURLResponse (ISAdditions) +- (long long)maxExpectedContentLength; +- (BOOL)getAppleMaxAge:(double *)arg1; +- (double)expirationInterval; +- (id)expirationDate; +- (id)_dateFromExpires; +- (BOOL)_getCacheControlMaxAge:(double *)arg1; +@end + diff --git a/mas-cli/Headers/StoreFoundation/NSNumber-SSAdditions.h b/mas-cli/Headers/StoreFoundation/NSNumber-SSAdditions.h new file mode 100644 index 0000000..227001f --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/NSNumber-SSAdditions.h @@ -0,0 +1,14 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSNumber.h" + +@interface NSNumber (SSAdditions) ++ (id)numberWithItemIdentifier:(unsigned long long)arg1; +- (unsigned long long)itemIdentifierValue; +- (id)initWithItemIdentifier:(unsigned long long)arg1; +@end + diff --git a/mas-cli/Headers/StoreFoundation/NSObject-ISInvocationAdditions.h b/mas-cli/Headers/StoreFoundation/NSObject-ISInvocationAdditions.h new file mode 100644 index 0000000..ba9e505 --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/NSObject-ISInvocationAdditions.h @@ -0,0 +1,14 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSObject.h" + +@interface NSObject (ISInvocationAdditions) +- (id)mainThreadProxy; +- (id)delayedProxy:(double)arg1; +- (id)blockingMainThreadProxy; +@end + diff --git a/mas-cli/Headers/StoreFoundation/NSObject-Protocol.h b/mas-cli/Headers/StoreFoundation/NSObject-Protocol.h new file mode 100644 index 0000000..3320b3c --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/NSObject-Protocol.h @@ -0,0 +1,33 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +@class NSString, Protocol; + +@protocol NSObject +@property(readonly, copy) NSString *description; +@property(readonly) Class superclass; +@property(readonly) unsigned long long hash; +- (struct _NSZone *)zone; +- (unsigned long long)retainCount; +- (id)autorelease; +- (oneway void)release; +- (id)retain; +- (BOOL)respondsToSelector:(SEL)arg1; +- (BOOL)conformsToProtocol:(Protocol *)arg1; +- (BOOL)isMemberOfClass:(Class)arg1; +- (BOOL)isKindOfClass:(Class)arg1; +- (BOOL)isProxy; +- (id)performSelector:(SEL)arg1 withObject:(id)arg2 withObject:(id)arg3; +- (id)performSelector:(SEL)arg1 withObject:(id)arg2; +- (id)performSelector:(SEL)arg1; +- (id)self; +- (Class)class; +- (BOOL)isEqual:(id)arg1; + +@optional +@property(readonly, copy) NSString *debugDescription; +@end + diff --git a/mas-cli/Headers/StoreFoundation/NSSecureCoding-Protocol.h b/mas-cli/Headers/StoreFoundation/NSSecureCoding-Protocol.h new file mode 100644 index 0000000..ad93698 --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/NSSecureCoding-Protocol.h @@ -0,0 +1,12 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSCoding.h" + +@protocol NSSecureCoding ++ (BOOL)supportsSecureCoding; +@end + diff --git a/mas-cli/Headers/StoreFoundation/NSString-ISAdditions.h b/mas-cli/Headers/StoreFoundation/NSString-ISAdditions.h new file mode 100644 index 0000000..567660f --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/NSString-ISAdditions.h @@ -0,0 +1,15 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSString.h" + +@interface NSString (ISAdditions) +- (id)volumePath; +- (id)parameterStringByAppendingParameters:(id)arg1; +- (id)stripPassword; +- (id)copyUTF8StringOfLength:(unsigned long long)arg1; +@end + diff --git a/mas-cli/Headers/StoreFoundation/NSString-SSAdditions.h b/mas-cli/Headers/StoreFoundation/NSString-SSAdditions.h new file mode 100644 index 0000000..3a1147f --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/NSString-SSAdditions.h @@ -0,0 +1,12 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSString.h" + +@interface NSString (SSAdditions) +- (unsigned long long)itemIdentifierValue; +@end + diff --git a/mas-cli/Headers/StoreFoundation/NSString-Sandbox.h b/mas-cli/Headers/StoreFoundation/NSString-Sandbox.h new file mode 100644 index 0000000..7837c24 --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/NSString-Sandbox.h @@ -0,0 +1,12 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSString.h" + +@interface NSString (Sandbox) +- (id)stringByExpandingTildeInPathOutsideOfSandbox; +@end + diff --git a/mas-cli/Headers/StoreFoundation/NSString-UniqueIdentifier.h b/mas-cli/Headers/StoreFoundation/NSString-UniqueIdentifier.h new file mode 100644 index 0000000..19023d7 --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/NSString-UniqueIdentifier.h @@ -0,0 +1,12 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSString.h" + +@interface NSString (UniqueIdentifier) ++ (id)uniqueIdentifier; +@end + diff --git a/mas-cli/Headers/StoreFoundation/NSURL-ISAdditions.h b/mas-cli/Headers/StoreFoundation/NSURL-ISAdditions.h new file mode 100644 index 0000000..f7d5986 --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/NSURL-ISAdditions.h @@ -0,0 +1,29 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSURL.h" + +@interface NSURL (ISAdditions) ++ (id)_userVisibleWebKitVersionString; ++ (id)_preferredLanguageCode; ++ (id)_macOSXBuildString; ++ (id)_macOSXVersionString; ++ (BOOL)openURL:(id)arg1; ++ (id)macOSXVersionString; ++ (id)storeUserAgentStringForClient:(id)arg1; ++ (id)unescapedStringForString:(id)arg1; ++ (id)queryStringForDictionary:(id)arg1 escapedValues:(BOOL)arg2; ++ (id)escapedStringForString:(id)arg1; ++ (id)copyDictionaryForQueryString:(id)arg1 unescapedValues:(BOOL)arg2; +- (id)stripPassword; +- (id)urlByConvertingToStoreURLForClient:(id)arg1; +- (id)schemeSwizzledURL; +- (BOOL)isSafeExternalURL; +- (id)urlBySettingQueryStringDictionary:(id)arg1; +- (id)copyQueryStringDictionaryWithUnescapedValues:(BOOL)arg1; +- (id)urlByAddingStringToQueryString:(id)arg1; +@end + diff --git a/mas-cli/Headers/StoreFoundation/NSURLConnectionDelegate-Protocol.h b/mas-cli/Headers/StoreFoundation/NSURLConnectionDelegate-Protocol.h new file mode 100644 index 0000000..c62f45e --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/NSURLConnectionDelegate-Protocol.h @@ -0,0 +1,21 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSObject.h" + +@class NSError, NSURLAuthenticationChallenge, NSURLConnection, NSURLProtectionSpace; + +@protocol NSURLConnectionDelegate + +@optional +- (void)connection:(NSURLConnection *)arg1 didCancelAuthenticationChallenge:(NSURLAuthenticationChallenge *)arg2; +- (void)connection:(NSURLConnection *)arg1 didReceiveAuthenticationChallenge:(NSURLAuthenticationChallenge *)arg2; +- (BOOL)connection:(NSURLConnection *)arg1 canAuthenticateAgainstProtectionSpace:(NSURLProtectionSpace *)arg2; +- (void)connection:(NSURLConnection *)arg1 willSendRequestForAuthenticationChallenge:(NSURLAuthenticationChallenge *)arg2; +- (BOOL)connectionShouldUseCredentialStorage:(NSURLConnection *)arg1; +- (void)connection:(NSURLConnection *)arg1 didFailWithError:(NSError *)arg2; +@end + diff --git a/mas-cli/Headers/StoreFoundation/NSURLResponse-ISAdditions.h b/mas-cli/Headers/StoreFoundation/NSURLResponse-ISAdditions.h new file mode 100644 index 0000000..45d1760 --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/NSURLResponse-ISAdditions.h @@ -0,0 +1,13 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSURLResponse.h" + +@interface NSURLResponse (ISAdditions) +- (id)allHeaderFields; +- (int)statusCode; +@end + diff --git a/mas-cli/Headers/StoreFoundation/NSXPCListenerDelegate-Protocol.h b/mas-cli/Headers/StoreFoundation/NSXPCListenerDelegate-Protocol.h new file mode 100644 index 0000000..a633154 --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/NSXPCListenerDelegate-Protocol.h @@ -0,0 +1,16 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSObject.h" + +@class NSXPCConnection, NSXPCListener; + +@protocol NSXPCListenerDelegate + +@optional +- (BOOL)listener:(NSXPCListener *)arg1 shouldAcceptNewConnection:(NSXPCConnection *)arg2; +@end + diff --git a/mas-cli/Headers/StoreFoundation/ReceiptInstallerProtocol-Protocol.h b/mas-cli/Headers/StoreFoundation/ReceiptInstallerProtocol-Protocol.h new file mode 100644 index 0000000..592ce7b --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/ReceiptInstallerProtocol-Protocol.h @@ -0,0 +1,32 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +@class NSArray, NSData, NSDictionary, NSNumber, NSString; + +@protocol ReceiptInstallerProtocol +- (oneway void)setLastDoItLaterLogoutFailed:(BOOL)arg1; +- (oneway void)createWhatsNewOnlinePageViewedTimestamp; +- (oneway void)createWhatsNewNotificationTimestampWithSystemVersion:(NSString *)arg1; +- (oneway void)writeUpToDateInfo:(NSData *)arg1; +- (oneway void)createUpToDateFirstCheckinCookie; +- (oneway void)deleteVPPInviteFromPreferences; +- (oneway void)setAutoUpdateRestartRequiredEnabledPreference:(NSNumber *)arg1 majorOSVersion:(NSString *)arg2; +- (oneway void)setAutoUpdateEnabledPreference:(NSNumber *)arg1 majorOSVersion:(NSString *)arg2; +- (oneway void)removeCriticalUpdateTimeStamp; +- (oneway void)createCriticalUpdateTimeStamp; +- (oneway void)updateLockedFilePaths:(NSArray *)arg1 addOrDelete:(BOOL)arg2; +- (oneway void)removeApplicationAtPath:(NSString *)arg1; +- (oneway void)unlockApplicationsAtPaths:(NSArray *)arg1; +- (oneway void)lockApplicationAtPath:(NSString *)arg1; +- (oneway void)setIconData:(NSData *)arg1 forPlaceholderAtPath:(NSString *)arg2; +- (oneway void)createPlaceholderAtPath:(NSString *)arg1 fromPath:(NSString *)arg2 replyBlock:(void (^)(NSError *, NSString *))arg3; +- (oneway void)removePlaceholderAtPath:(NSString *)arg1; +- (oneway void)createPlaceholderAtPath:(NSString *)arg1 withData:(NSData *)arg2; +- (oneway void)writeAdoptionInfo:(NSData *)arg1; +- (oneway void)removeIAPProductAtPath:(NSString *)arg1; +- (oneway void)installReceiptWithParameters:(NSDictionary *)arg1 replyBlock:(void (^)(NSError *))arg2; +@end + diff --git a/mas-cli/Headers/StoreFoundation/SSDownload.h b/mas-cli/Headers/StoreFoundation/SSDownload.h new file mode 100644 index 0000000..c89fa41 --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/SSDownload.h @@ -0,0 +1,60 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +@class NSArray, NSNumber, NSString, NSURL, SSDownloadMetadata, SSDownloadStatus; + +@interface SSDownload : NSObject +{ + BOOL _needsPreInstallValidation; + BOOL _installAfterLogout; + BOOL _didAutoUpdate; + BOOL _skipAssetDownloadIfNotAlreadyOnDisk; + BOOL _needsDisplayInDock; + BOOL _isInServerQueue; + NSArray *_assets; + SSDownloadMetadata *_metadata; + SSDownloadStatus *_status; + unsigned long long _downloadType; + NSNumber *_accountDSID; + NSString *_cancelURLString; + NSString *_installPath; + NSURL *_relaunchAppWithBundleURL; +} + ++ (BOOL)supportsSecureCoding; +@property BOOL isInServerQueue; // @synthesize isInServerQueue=_isInServerQueue; +@property BOOL needsDisplayInDock; // @synthesize needsDisplayInDock=_needsDisplayInDock; +@property BOOL skipAssetDownloadIfNotAlreadyOnDisk; // @synthesize skipAssetDownloadIfNotAlreadyOnDisk=_skipAssetDownloadIfNotAlreadyOnDisk; +@property(copy) NSURL *relaunchAppWithBundleURL; // @synthesize relaunchAppWithBundleURL=_relaunchAppWithBundleURL; +@property(copy) NSString *installPath; // @synthesize installPath=_installPath; +@property BOOL didAutoUpdate; // @synthesize didAutoUpdate=_didAutoUpdate; +@property(copy) NSString *cancelURLString; // @synthesize cancelURLString=_cancelURLString; +@property(copy) NSNumber *accountDSID; // @synthesize accountDSID=_accountDSID; +@property BOOL installAfterLogout; // @synthesize installAfterLogout=_installAfterLogout; +@property unsigned long long downloadType; // @synthesize downloadType=_downloadType; +@property(retain, nonatomic) SSDownloadStatus *status; // @synthesize status=_status; +@property(copy, nonatomic) SSDownloadMetadata *metadata; // @synthesize metadata=_metadata; +@property(copy, nonatomic) NSArray *assets; // @synthesize assets=_assets; +//- (void).cxx_destruct; +@property BOOL skipInstallPhase; +- (void)setUseUniqueDownloadFolder:(BOOL)arg1; +@property(copy) NSString *customDownloadPath; +- (id)primaryAsset; +- (void)cancelWithPrompt:(BOOL)arg1 storeClient:(id)arg2; +- (void)cancelWithStoreClient:(id)arg1; +- (void)cancelWithPrompt:(BOOL)arg1; +- (void)resumeWithStoreClient:(id)arg1; +- (void)pauseWithStoreClient:(id)arg1; +- (id)initWithCoder:(id)arg1; +- (void)encodeWithCoder:(id)arg1; +- (BOOL)isEqual:(id)arg1; +- (id)initWithAssets:(id)arg1 metadata:(id)arg2; +- (void)resume; +- (void)pause; +- (void)cancel; + +@end + diff --git a/mas-cli/Headers/StoreFoundation/SSDownloadAsset.h b/mas-cli/Headers/StoreFoundation/SSDownloadAsset.h new file mode 100644 index 0000000..e0501fc --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/SSDownloadAsset.h @@ -0,0 +1,75 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSObject.h" + +#import "NSSecureCoding.h" + +@class NSArray, NSDictionary, NSError, NSLock, NSString, NSURLRequest; + +@interface SSDownloadAsset : NSObject +{ + NSString *_downloadFileName; + NSString *_downloadFolderName; + long long _fileSize; + NSString *_finalizedFileName; + NSArray *_hashes; + NSArray *_clearHashes; + long long _numberOfBytesToHash; + BOOL _isExternal; + NSLock *_lock; + NSString *_processedPath; + long long _type; + long long _subType; + NSURLRequest *_urlRequest; + NSString *_customDownloadPath; + BOOL _useUniqueDownloadFolder; + BOOL _skipInstallPhase; + NSString *_bundleIdentifier; + NSString *_bundleVersion; + BOOL _deltaUpdateFailed; + BOOL _localDeltaUpdateFailed; + NSDictionary *_deltaPackage; + NSError *_localCachingError; + long long _localFullPackageFailureCount; +} + ++ (id)assetWithURL:(id)arg1 type:(long long)arg2; ++ (BOOL)supportsSecureCoding; +@property long long subType; // @synthesize subType=_subType; +@property(retain) NSError *localCachingError; // @synthesize localCachingError=_localCachingError; +@property long long localFullPackageFailureCount; // @synthesize localFullPackageFailureCount=_localFullPackageFailureCount; +@property BOOL localDeltaUpdateFailed; // @synthesize localDeltaUpdateFailed=_localDeltaUpdateFailed; +@property BOOL deltaUpdateFailed; // @synthesize deltaUpdateFailed=_deltaUpdateFailed; +@property(copy) NSString *bundleVersion; // @synthesize bundleVersion=_bundleVersion; +@property(copy) NSString *bundleIdentifier; // @synthesize bundleIdentifier=_bundleIdentifier; +@property(retain) NSDictionary *deltaPackage; // @synthesize deltaPackage=_deltaPackage; +@property BOOL skipInstallPhase; // @synthesize skipInstallPhase=_skipInstallPhase; +@property BOOL useUniqueDownloadFolder; // @synthesize useUniqueDownloadFolder=_useUniqueDownloadFolder; +@property(retain) NSString *customDownloadPath; // @synthesize customDownloadPath=_customDownloadPath; +- (void).cxx_destruct; +@property(retain) NSURLRequest *URLRequest; +@property long long type; +@property(retain) NSString *processedPath; +@property long long numberOfBytesToHash; +- (void)setLocalFileNameFromBase:(id)arg1; +@property(retain) NSArray *clearHashes; +@property(retain) NSArray *hashes; +@property(retain) NSString *finalizedFileName; +@property long long fileSize; // @synthesize fileSize=_fileSize; +@property(getter=isExternal) BOOL external; +@property(retain) NSString *downloadFileName; +- (void)setDownloadFolderName:(id)arg1; +@property(readonly) NSString *finalizedPath; +@property(readonly) NSString *downloadPath; +- (id)downloadFolderName; +- (void)encodeWithCoder:(id)arg1; +- (id)initWithCoder:(id)arg1; +- (id)initWithURLRequest:(id)arg1 type:(long long)arg2; +- (id)init; + +@end + diff --git a/mas-cli/Headers/StoreFoundation/SSDownloadManifestResponse.h b/mas-cli/Headers/StoreFoundation/SSDownloadManifestResponse.h new file mode 100644 index 0000000..f66744d --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/SSDownloadManifestResponse.h @@ -0,0 +1,26 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSObject.h" + +#import "NSCoding.h" + +@class NSArray; + +@interface SSDownloadManifestResponse : NSObject +{ + NSArray *_invalidDownloads; + NSArray *_validDownloads; +} + +- (void).cxx_destruct; +@property(retain) NSArray *validDownloads; +@property(retain) NSArray *invalidDownloads; +- (void)encodeWithCoder:(id)arg1; +- (id)initWithCoder:(id)arg1; + +@end + diff --git a/mas-cli/Headers/StoreFoundation/SSDownloadMetadata.h b/mas-cli/Headers/StoreFoundation/SSDownloadMetadata.h new file mode 100644 index 0000000..2ff7b82 --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/SSDownloadMetadata.h @@ -0,0 +1,71 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +@class NSArray, NSData, NSDictionary, NSLock, NSMutableDictionary, NSNumber, NSString, NSURL; + +@interface SSDownloadMetadata : NSObject +{ + NSMutableDictionary *_dictionary; + NSLock *_lock; +} + ++ (BOOL)supportsSecureCoding; +//- (void).cxx_destruct; +- (id)_valueForFirstAvailableKey:(id)arg1; +@property(retain) NSArray *sinfs; +- (void)setValue:(id)arg1 forMetadataKey:(id)arg2; +@property(retain) NSString *iapInstallPath; +@property(retain) NSString *fileExtension; +@property(retain) NSString *appleID; +@property(retain) NSData *epubRightsData; +@property(retain) NSString *downloadKey; +@property(retain) NSDictionary *dictionary; +- (id)localServerInfo; +@property(readonly) NSString *iapContentVersion; +@property(readonly) NSNumber *iapContentSize; +@property(readonly) NSArray *assets; +@property BOOL animationExpected; +@property(retain) NSString *transactionIdentifier; +@property(retain) NSString *title; +@property(retain) NSURL *thumbnailImageURL; +@property(retain) NSString *subtitle; +@property(retain) NSString *ipaInstallPath; +@property BOOL isMDMProvided; +- (void)setUncompressedSize:(NSNumber *)arg1; +- (void)setExtractionCanBeStreamed:(BOOL)arg1; +@property(retain) NSString *buyParameters; +@property(retain) NSURL *preflightPackageURL; +@property(getter=isRental) BOOL rental; +@property(retain) NSString *kind; +@property unsigned long long itemIdentifier; +@property(retain) NSString *genre; +@property(retain) NSNumber *durationInMilliseconds; +@property(retain) NSString *collectionName; +@property(retain) NSString *bundleVersion; +@property(retain) NSString *bundleIdentifier; +@property BOOL artworkIsPrerendered; +@property(readonly) NSString *bundleShortVersionString; +@property(readonly) NSString *bundleDisplayName; +@property(readonly) NSNumber *uncompressedSize; +@property(readonly) BOOL extractionCanBeStreamed; +@property(readonly) BOOL needsSoftwareInstallOperation; +- (id)deltaPackages; +@property(readonly, getter=isSample) BOOL sample; +@property(readonly) NSString *purchaseDate; +@property(readonly) BOOL isExplicitContents; +@property(readonly) NSNumber *ageRestriction; +@property(retain) NSString *productType; +@property(readonly) NSNumber *version; +@property(readonly) NSString *applicationIdentifier; +- (id)copyWithZone:(struct _NSZone *)arg1; +- (id)initWithCoder:(id)arg1; +- (void)encodeWithCoder:(id)arg1; +- (id)initWithDictionary:(id)arg1; +- (id)initWithKind:(id)arg1; +- (id)init; + +@end + diff --git a/mas-cli/Headers/StoreFoundation/SSDownloadPhase.h b/mas-cli/Headers/StoreFoundation/SSDownloadPhase.h new file mode 100644 index 0000000..1bb7a63 --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/SSDownloadPhase.h @@ -0,0 +1,30 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +@class SSOperationProgress; + +@interface SSDownloadPhase : NSObject +{ + SSOperationProgress *_operationProgress; +} + ++ (BOOL)supportsSecureCoding; +//- (void).cxx_destruct; +@property(readonly) SSOperationProgress *operationProgress; +@property(readonly) long long totalProgressValue; +@property(readonly) long long progressValue; +@property(readonly) float progressChangeRate; +@property(readonly) long long progressUnits; +@property(readonly) long long phaseType; +@property(readonly) double estimatedSecondsRemaining; +- (id)copyWithZone:(struct _NSZone *)arg1; +- (id)initWithCoder:(id)arg1; +- (void)encodeWithCoder:(id)arg1; +- (id)initWithOperationProgress:(id)arg1; +- (id)init; + +@end + diff --git a/mas-cli/Headers/StoreFoundation/SSDownloadStatus.h b/mas-cli/Headers/StoreFoundation/SSDownloadStatus.h new file mode 100644 index 0000000..51e6eee --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/SSDownloadStatus.h @@ -0,0 +1,37 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +@class NSError, SSDownloadPhase; + +@interface SSDownloadStatus : NSObject +{ + SSDownloadPhase *_activePhase; + NSError *_error; + BOOL _failed; + BOOL _paused; + BOOL _cancelled; + BOOL _waiting; +} + ++ (BOOL)supportsSecureCoding; +@property BOOL waiting; // @synthesize waiting=_waiting; +@property(nonatomic, getter=isCancelled) BOOL cancelled; // @synthesize cancelled=_cancelled; +@property(nonatomic, getter=isPaused) BOOL paused; // @synthesize paused=_paused; +@property(nonatomic, getter=isFailed) BOOL failed; // @synthesize failed=_failed; +@property(retain, nonatomic) NSError *error; // @synthesize error=_error; +@property(readonly, nonatomic) SSDownloadPhase *activePhase; // @synthesize activePhase=_activePhase; +//- (void).cxx_destruct; +- (void)setOperationProgress:(id)arg1; +@property(readonly, nonatomic) long long phaseTimeRemaining; +@property(readonly, nonatomic) float phasePercentComplete; +@property(readonly, nonatomic) float percentComplete; +@property(readonly, nonatomic, getter=isPausable) BOOL pausable; +- (id)copyWithZone:(struct _NSZone *)arg1; +- (id)initWithCoder:(id)arg1; +- (void)encodeWithCoder:(id)arg1; + +@end + diff --git a/mas-cli/Headers/StoreFoundation/SSLogManager.h b/mas-cli/Headers/StoreFoundation/SSLogManager.h new file mode 100644 index 0000000..4906fcb --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/SSLogManager.h @@ -0,0 +1,42 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSObject.h" + +@class NSObject; + +@interface SSLogManager : NSObject +{ + BOOL _dirty; + struct __asl_object_s *_aslclient; + struct __asl_object_s *_aslmsg; + NSObject *_aslqueue; +} + ++ (id)dateFormatterForFilename; ++ (id)dateFormatter; ++ (id)sharedManager; +- (void).cxx_destruct; +- (void)logLevel:(unsigned long long)arg1 inFunction:(const char *)arg2 inFile:(const char *)arg3 atLine:(unsigned long long)arg4 forData:(id)arg5 toFilename:(id)arg6; +- (void)logLevel:(unsigned long long)arg1 inFunction:(const char *)arg2 inFile:(const char *)arg3 atLine:(unsigned long long)arg4 forPlist:(id)arg5 toFilename:(id)arg6; +- (void)logLevel:(unsigned long long)arg1 inFunction:(const char *)arg2 inFile:(const char *)arg3 atLine:(unsigned long long)arg4 forResponse:(id)arg5 toFilename:(id)arg6; +- (void)logLevel:(unsigned long long)arg1 inFunction:(const char *)arg2 inFile:(const char *)arg3 atLine:(unsigned long long)arg4 forRequest:(id)arg5 toFilename:(id)arg6; +- (void)logLevel:(unsigned long long)arg1 inFunction:(const char *)arg2 inFile:(const char *)arg3 atLine:(unsigned long long)arg4 withFormat:(id)arg5; +- (void)logLevel:(unsigned long long)arg1 inFunction:(const char *)arg2 inFile:(const char *)arg3 atLine:(unsigned long long)arg4 withString:(id)arg5; +- (void)manageAppStoreLogs:(id)arg1 withPath:(id)arg2; +- (void)manageAppStoreLogOrder:(id)arg1; +- (void)dealloc; +- (id)init; +- (id)_createLogFileWithName:(id)arg1 andExtension:(id)arg2; +- (void)_markEnd; +- (void)_markStart; +- (void)_sendAuxiliaryFileToASL:(id)arg1 withName:(id)arg2; +- (void)_sendStringToASL:(id)arg1 withLevel:(long long)arg2; +- (void)_endASL; +- (void)_startASL; + +@end + diff --git a/mas-cli/Headers/StoreFoundation/SSOperationProgress.h b/mas-cli/Headers/StoreFoundation/SSOperationProgress.h new file mode 100644 index 0000000..322dbf7 --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/SSOperationProgress.h @@ -0,0 +1,51 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSObject.h" + +#import "NSCopying.h" +#import "NSSecureCoding.h" + +@class NSMutableArray; + +@interface SSOperationProgress : NSObject +{ + BOOL _canPause; + double _changeRate; + double _currentValue; + double _estimatedTimeRemaining; + double _maxValue; + double _normalizedCurrentValue; + double _normalizedMaxValue; + long long _operationType; + long long _units; + NSMutableArray *_snapshotTimes; + NSMutableArray *_snapshotValues; +} + ++ (BOOL)supportsSecureCoding; +@property(nonatomic) long long units; // @synthesize units=_units; +@property(nonatomic) long long operationType; // @synthesize operationType=_operationType; +@property(nonatomic) double normalizedMaxValue; // @synthesize normalizedMaxValue=_normalizedMaxValue; +@property(nonatomic) double normalizedCurrentValue; // @synthesize normalizedCurrentValue=_normalizedCurrentValue; +@property(nonatomic) double maxValue; // @synthesize maxValue=_maxValue; +@property(nonatomic) double estimatedTimeRemaining; // @synthesize estimatedTimeRemaining=_estimatedTimeRemaining; +@property(nonatomic) double currentValue; // @synthesize currentValue=_currentValue; +@property(nonatomic) double changeRate; // @synthesize changeRate=_changeRate; +@property(nonatomic) BOOL canPause; // @synthesize canPause=_canPause; +- (void).cxx_destruct; +- (void)_updateStatisticsFromSnapshots; +- (void)snapshot; +- (void)resetSnapshots; +- (id)description; +- (id)copyWithZone:(struct _NSZone *)arg1; +- (void)dealloc; +- (void)encodeWithCoder:(id)arg1; +- (id)initWithCoder:(id)arg1; +- (id)init; + +@end + diff --git a/mas-cli/Headers/StoreFoundation/SSPurchase.h b/mas-cli/Headers/StoreFoundation/SSPurchase.h new file mode 100644 index 0000000..8036a3e --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/SSPurchase.h @@ -0,0 +1,67 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +@class ISOperation, NSData, NSDictionary, NSNumber, NSString, SSDownloadMetadata; + +@interface SSPurchase : NSObject +{ + NSNumber *_accountIdentifier; + NSString *_appleID; + NSString *_buyParameters; + SSDownloadMetadata *_downloadMetadata; + NSString *_uniqueIdentifier; + BOOL _isUpdate; + long long _purchaseType; + BOOL _checkPreflightAterPurchase; + NSData *_receiptData; + NSString *_parentalControls; + BOOL _isRedownload; + BOOL _isVPP; + BOOL _shouldBeInstalledAfterLogout; + BOOL _isCancelled; + NSString *_sortableAccountIdentifier; + unsigned long long _itemIdentifier; +// CDUnknownBlockType _authFallbackHandler; + ISOperation *_purchaseOperation; + NSDictionary *_responseDialog; +} + ++ (id)purchasesGroupedByAccountIdentifierWithPurchases:(id)arg1; ++ (BOOL)supportsSecureCoding; ++ (id)purchaseWithBuyParameters:(id)arg1; +@property(copy) NSDictionary *responseDialog; // @synthesize responseDialog=_responseDialog; +@property __weak ISOperation *purchaseOperation; // @synthesize purchaseOperation=_purchaseOperation; +@property BOOL isCancelled; // @synthesize isCancelled=_isCancelled; +//@property(copy) CDUnknownBlockType authFallbackHandler; // @synthesize authFallbackHandler=_authFallbackHandler; +@property unsigned long long itemIdentifier; // @synthesize itemIdentifier=_itemIdentifier; +@property BOOL shouldBeInstalledAfterLogout; // @synthesize shouldBeInstalledAfterLogout=_shouldBeInstalledAfterLogout; +@property(readonly, nonatomic) NSString *sortableAccountIdentifier; // @synthesize sortableAccountIdentifier=_sortableAccountIdentifier; +@property(retain, nonatomic) NSString *parentalControls; // @synthesize parentalControls=_parentalControls; +@property BOOL checkPreflightAterPurchase; // @synthesize checkPreflightAterPurchase=_checkPreflightAterPurchase; +@property(retain, nonatomic) NSData *receiptData; // @synthesize receiptData=_receiptData; +@property(nonatomic) long long purchaseType; // @synthesize purchaseType=_purchaseType; +@property BOOL isVPP; // @synthesize isVPP=_isVPP; +@property BOOL isRedownload; // @synthesize isRedownload=_isRedownload; +@property BOOL isUpdate; // @synthesize isUpdate=_isUpdate; +@property(retain, nonatomic) NSString *appleID; // @synthesize appleID=_appleID; +@property(copy, nonatomic) SSDownloadMetadata *downloadMetadata; // @synthesize downloadMetadata=_downloadMetadata; +@property(copy, nonatomic) NSString *buyParameters; // @synthesize buyParameters=_buyParameters; +@property(retain, nonatomic) NSNumber *accountIdentifier; // @synthesize accountIdentifier=_accountIdentifier; +//- (void).cxx_destruct; +- (BOOL)purchaseDSIDMatchesPrimaryAccount; +@property(readonly) BOOL needsAuthentication; // @dynamic needsAuthentication; +@property BOOL isRecoveryPurchase; // @dynamic isRecoveryPurchase; +@property(readonly) BOOL isDSIDLessPurchase; +- (id)productID; +@property(readonly, nonatomic) NSString *uniqueIdentifier; +- (id)_sortableAccountIdentifier; +- (id)description; +- (id)copyWithZone:(struct _NSZone *)arg1; +- (void)encodeWithCoder:(id)arg1; +- (id)initWithCoder:(id)arg1; + +@end + diff --git a/mas-cli/Headers/StoreFoundation/SSPurchaseResponse.h b/mas-cli/Headers/StoreFoundation/SSPurchaseResponse.h new file mode 100644 index 0000000..00b0b6e --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/SSPurchaseResponse.h @@ -0,0 +1,26 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +@class NSArray, NSDictionary, SSDownload; + +@interface SSPurchaseResponse : NSObject +{ + NSArray *_downloads; + NSDictionary *_rawResponse; + NSDictionary *_metrics; +} + ++ (BOOL)supportsSecureCoding; +@property(retain) NSDictionary *metrics; // @synthesize metrics=_metrics; +@property(retain) NSArray *downloads; // @synthesize downloads=_downloads; +//- (void).cxx_destruct; +- (id)initWithCoder:(id)arg1; +- (void)encodeWithCoder:(id)arg1; +- (id)_newDownloadsFromItems:(id)arg1 withDSID:(id)arg2; +- (id)initWithDictionary:(id)arg1 userIdentifier:(id)arg2; + +@end + diff --git a/mas-cli/Headers/StoreFoundation/SSRequest.h b/mas-cli/Headers/StoreFoundation/SSRequest.h new file mode 100644 index 0000000..10f763c --- /dev/null +++ b/mas-cli/Headers/StoreFoundation/SSRequest.h @@ -0,0 +1,39 @@ +// +// Generated by class-dump 3.5 (64 bit). +// +// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. +// + +#import "NSObject.h" + +@class NSString, NSValue; + +@interface SSRequest : NSObject +{ + id _delegate; + NSString *_identifier; + long long _state; + NSValue *_callbackID; +} + ++ (id)_newIdentifier; +@property(readonly) NSString *identifier; // @synthesize identifier=_identifier; +@property(nonatomic) __weak id delegate; // @synthesize delegate=_delegate; +- (void).cxx_destruct; +- (void)_finish; +- (void)_failWithError:(id)arg1; +- (BOOL)issueRequestForIdentifier:(id)arg1 error:(id *)arg2; +- (BOOL)handleFinishResponse:(id)arg1 error:(id *)arg2; +- (void)handleDaemonExit; +- (void)callback:(id)arg1 connectionIsValid:(BOOL)arg2; +- (BOOL)send; +- (id)messageName; +@property(readonly) NSString *requestQueueSelectorName; // @dynamic requestQueueSelectorName; +- (id)requestInfo; +- (BOOL)start; +- (void)cancel; +- (void)dealloc; +- (id)init; + +@end + diff --git a/mas-cli/main.swift b/mas-cli/main.swift index 8f62728..db7fc42 100644 --- a/mas-cli/main.swift +++ b/mas-cli/main.swift @@ -8,5 +8,142 @@ import Foundation -print("Hello, World!") +var client = ISStoreClient(storeClientType: 0) + +func primaryAccount() -> ISStoreAccount { + let accountController = CKAccountStore.sharedAccountStore() + return accountController.primaryAccount +} + +@objc class Observer: CKDownloadQueueObserver { + func downloadQueue(queue: CKDownloadQueue, statusChangedForDownload download: SSDownload!) { + if let activePhase = download.status.activePhase { + let percentage = String(Int(floor(download.status.percentComplete * 100))) + "%" + let phase = String(activePhase.phaseType) + print("\r" + phase + " " + percentage + " " + download.metadata.title, appendNewline: false) + } + } + + func downloadQueue(queue: CKDownloadQueue, changedWithAddition download: SSDownload!) { + print("Downloading: " + download.metadata.title) + } + + func downloadQueue(queue: CKDownloadQueue, changedWithRemoval download: SSDownload!) { + print("Finished: " + download.metadata.title) + } +} + +var downloadQueue = CKDownloadQueue.sharedDownloadQueue() +downloadQueue.addObserver(Observer()) + +var softwareMap = CKSoftwareMap.sharedSoftwareMap() +//print(softwareMap.allProducts()) +//print(softwareMap.productForBundleIdentifier("com.apple.iBooksAuthor")) +//print(softwareMap.adaptableBundleIdentifiers()) + +func download(adamId: UInt64, completion:(purchase: SSPurchase!, completed: Bool, error: NSError?, response: SSPurchaseResponse!) -> ()) { + let buyParameters = "productType=C&price=0&salableAdamId=" + String(adamId) + "&pricingParameters=STDRDL" + let purchase = SSPurchase() + purchase.buyParameters = buyParameters + purchase.itemIdentifier = adamId + purchase.accountIdentifier = primaryAccount().dsID + purchase.appleID = primaryAccount().identifier + + let downloadMetadata = SSDownloadMetadata() + downloadMetadata.kind = "software" + downloadMetadata.itemIdentifier = adamId + + purchase.downloadMetadata = downloadMetadata + + let purchaseController = CKPurchaseController.sharedPurchaseController() + purchaseController.performPurchase(purchase, withOptions: 0, completionHandler: completion) + while true { + NSRunLoop.mainRunLoop().runMode(NSDefaultRunLoopMode, beforeDate: NSDate(timeIntervalSinceNow: 10)) + } +} + +let paintCode: UInt64 = 808809998 +let xcode: UInt64 = 497799835 +let aperture: UInt64 = 408981426 + +struct AccountCommand: CommandType { + let verb = "account" + let function = "Prints the primary account Apple ID" + + func run(mode: CommandMode) -> Result<(), CommandantError> { + switch mode { + case .Arguments: + print(primaryAccount().identifier) + default: + break + } + return .Success(()) + } +} + +struct InstallCommand: CommandType { + let verb = "install" + let function = "Install from the Mac App Store" + + func run(mode: CommandMode) -> Result<(), CommandantError> { + return InstallOptions.evaluate(mode).map { options in + download(options.appId) { (purchase, completed, error, response) in + print(purchase) + print(completed) + print(error) + print(response) + } + } + } +} + +struct InstallOptions: OptionsType { + let appId: UInt64 + + static func create(appId: UInt64) -> InstallOptions { + return InstallOptions(appId: appId) + } + + static func evaluate(m: CommandMode) -> Result> { + return create + <*> m <| Option(usage: "the app ID to install") + } +} + +struct ListUpdatesCommand: CommandType { + let verb = "list-updates" + let function = "Lists pending updates from the Mac App Store" + + func run(mode: CommandMode) -> Result<(), CommandantError> { + switch mode { + case .Arguments: + let updateController = CKUpdateController.sharedUpdateController() + print(updateController.availableUpdates()) + default: + break + } + return .Success(()) + } +} + +public enum MASError: ErrorType, Equatable { + public var description: String { + return "" + } +} + +public func == (lhs: MASError, rhs: MASError) -> Bool { + return false +} + +let registry = CommandRegistry() +let helpCommand = HelpCommand(registry: registry) +registry.register(AccountCommand()) +registry.register(InstallCommand()) +registry.register(ListUpdatesCommand()) +registry.register(helpCommand) + +registry.main(defaultVerb: helpCommand.verb, errorHandler: { error in + fputs(error.description + "\n", stderr) +}) diff --git a/mas-cli/mas-cli-Bridging-Header.h b/mas-cli/mas-cli-Bridging-Header.h new file mode 100644 index 0000000..1d32c8e --- /dev/null +++ b/mas-cli/mas-cli-Bridging-Header.h @@ -0,0 +1,45 @@ +// +// mas-cli-Bridging-Header.h +// mas-cli +// +// Created by Andrew Naylor on 11/07/2015. +// Copyright © 2015 Andrew Naylor. All rights reserved. +// + +#ifndef mas_cli_Bridging_Header_h +#define mas_cli_Bridging_Header_h + +@import Foundation; + +#import "ISServiceRemoteObject-Protocol.h" +#import "ISAccountService-Protocol.h" +#import "ISTransactionService-Protocol.h" +#import "ISServiceProxy.h" +#import "ISServiceClientInterface.h" +#import "ISStoreClient.h" +#import "ISStoreAccount.h" + +#import "CKAccountStore.h" +#import "CKDownloadQueue.h" +#import "CKDownloadQueueClient.h" +#import "CKSoftwareMap.h" +#import "SSDownload.h" +#import "SSDownloadStatus.h" +#import "SSDownloadPhase.h" +#import "SSPurchase.h" +#import "SSPurchaseResponse.h" +#import "SSDownloadMetadata.h" +#import "CKItemLookupRequest.h" +#import "CKItemLookupResponse.h" +#import "CKPurchaseController.h" +#import "CKUpdateController.h" + +@protocol CKDownloadQueueObserver + +- (void)downloadQueue:(CKDownloadQueue *)downloadQueue changedWithAddition:(SSDownload *)download; +- (void)downloadQueue:(CKDownloadQueue *)downloadQueue changedWithRemoval:(SSDownload *)download; +- (void)downloadQueue:(CKDownloadQueue *)downloadQueue statusChangedForDownload:(SSDownload *)download; + +@end + +#endif /* mas_cli_Bridging_Header_h */