NetNewsWire/Frameworks/Account/AccountDelegate.swift

31 lines
812 B
Swift
Raw Normal View History

//
// AccountDelegate.swift
// Account
//
// Created by Brent Simmons on 9/16/17.
// Copyright © 2017 Ranchero Software, LLC. All rights reserved.
//
import Foundation
import RSWeb
protocol AccountDelegate {
2017-09-28 22:16:47 +02:00
// Local account does not; some synced accounts might.
var supportsSubFolders: Bool { get }
var server: String? { get }
2019-05-05 10:25:21 +02:00
var credentials: Credentials? { get set }
var accountMetadata: AccountMetadata? { get set }
var refreshProgress: DownloadProgress { get }
2019-05-05 22:41:20 +02:00
func refreshAll(for: Account, completionHandler completion: (() -> Void)?)
// Called at the end of accounts init method.
func accountDidInitialize(_ account: Account)
2019-05-05 10:25:21 +02:00
static func validateCredentials(transport: Transport, credentials: Credentials, completionHandler handler: @escaping (Result<Bool, Error>) -> Void)
}