2020-04-22 01:33:07 +02:00
|
|
|
//
|
|
|
|
// AddFeedWIndowController.swift
|
|
|
|
// NetNewsWire
|
|
|
|
//
|
|
|
|
// Created by Maurice Parker on 4/21/20.
|
|
|
|
// Copyright © 2020 Ranchero Software. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
import Foundation
|
|
|
|
import Account
|
|
|
|
|
2020-04-22 04:25:45 +02:00
|
|
|
enum AddFeedWindowControllerType {
|
|
|
|
case webFeed
|
2020-05-10 18:44:30 +02:00
|
|
|
case redditFeed
|
2020-04-22 04:25:45 +02:00
|
|
|
case twitterFeed
|
|
|
|
}
|
|
|
|
|
2020-04-22 01:33:07 +02:00
|
|
|
protocol AddFeedWindowControllerDelegate: class {
|
|
|
|
|
|
|
|
// userEnteredURL will have already been validated and normalized.
|
2020-04-22 04:25:45 +02:00
|
|
|
func addFeedWindowController(_: AddFeedWindowController, userEnteredURL: URL, userEnteredTitle: String?, container: Container)
|
|
|
|
func addFeedWindowControllerUserDidCancel(_: AddFeedWindowController)
|
2020-04-22 01:33:07 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
protocol AddFeedWindowController {
|
|
|
|
|
|
|
|
var window: NSWindow? { get }
|
|
|
|
func runSheetOnWindow(_ hostWindow: NSWindow)
|
|
|
|
|
|
|
|
}
|