aboutsummaryrefslogtreecommitdiffstats
path: root/Wireguard/ViewControllers/ConnectionsTableViewController.swift
diff options
context:
space:
mode:
authorJeroen Leenarts <jeroen.leenarts@gmail.com>2018-05-23 21:49:10 +0200
committerJeroen Leenarts <jeroen.leenarts@gmail.com>2018-05-23 21:50:42 +0200
commitae73b78935bf26515eccd1609bcf5bea43cb8451 (patch)
tree031d1a06c3e7d7b25a9b246a95ce04c81b756f56 /Wireguard/ViewControllers/ConnectionsTableViewController.swift
parentInitial commit (diff)
downloadwireguard-apple-ae73b78935bf26515eccd1609bcf5bea43cb8451.tar.xz
wireguard-apple-ae73b78935bf26515eccd1609bcf5bea43cb8451.zip
Initial project setup.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'Wireguard/ViewControllers/ConnectionsTableViewController.swift')
-rw-r--r--Wireguard/ViewControllers/ConnectionsTableViewController.swift38
1 files changed, 38 insertions, 0 deletions
diff --git a/Wireguard/ViewControllers/ConnectionsTableViewController.swift b/Wireguard/ViewControllers/ConnectionsTableViewController.swift
new file mode 100644
index 0000000..38c0955
--- /dev/null
+++ b/Wireguard/ViewControllers/ConnectionsTableViewController.swift
@@ -0,0 +1,38 @@
+//
+// ConnectionsTableViewController.swift
+// Wireguard
+//
+// Created by Jeroen Leenarts on 23-05-18.
+// Copyright © 2018 Wireguard. All rights reserved.
+//
+
+import UIKit
+
+import CoreData
+import BNRCoreDataStack
+
+protocol ConnectionsTableViewControllerDelegate: class {
+ func addProvider(connectionsTableViewController: ConnectionsTableViewController)
+ func settings(connectionsTableViewController: ConnectionsTableViewController)
+ func connect(profile: Profile)
+ func delete(profile: Profile)
+}
+
+class ConnectionsTableViewController: UITableViewController {
+ weak var delegate: ConnectionsTableViewControllerDelegate?
+
+ var viewContext: NSManagedObjectContext!
+
+ override func viewDidLoad() {
+ super.viewDidLoad()
+ // Do any additional setup after loading the view, typically from a nib.
+ }
+
+ override func didReceiveMemoryWarning() {
+ super.didReceiveMemoryWarning()
+ // Dispose of any resources that can be recreated.
+ }
+
+}
+
+extension ConnectionsTableViewController: Identifyable {}