mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-13 18:06:50 +01:00
40 lines
752 B
Swift
40 lines
752 B
Swift
//
|
|
// LocalAccountDelegate.swift
|
|
// Account
|
|
//
|
|
// Created by Brent Simmons on 9/16/17.
|
|
// Copyright © 2017 Ranchero Software, LLC. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
import RSWeb
|
|
|
|
final class LocalAccountDelegate: AccountDelegate {
|
|
|
|
let supportsSubFolders = false
|
|
private let refresher = LocalAccountRefresher()
|
|
|
|
var refreshProgress: DownloadProgress {
|
|
get {
|
|
return refresher.progress
|
|
}
|
|
}
|
|
|
|
func refreshAll(for account: Account) {
|
|
|
|
refresher.refreshFeeds(account.flattenedFeeds())
|
|
}
|
|
|
|
// MARK: Disk
|
|
|
|
func update(account: Account, withUserInfo: NSDictionary?) {
|
|
|
|
account.nameForDisplay = NSLocalizedString("On My Mac", comment: "Local Account Name")
|
|
}
|
|
|
|
func userInfo(for: Account) -> NSDictionary? {
|
|
|
|
return nil
|
|
}
|
|
}
|