|
@@ -36,6 +36,35 @@ class AccountSetupController: UITableViewController {
|
|
private let tagTextFieldSmtpUser = 600
|
|
private let tagTextFieldSmtpUser = 600
|
|
private let tagTextFieldSmtpPassword = 700
|
|
private let tagTextFieldSmtpPassword = 700
|
|
|
|
|
|
|
|
+ // add cells to sections
|
|
|
|
+
|
|
|
|
+ let basicSection = 100
|
|
|
|
+ let advancedSection = 200
|
|
|
|
+ let restoreSection = 300
|
|
|
|
+ let folderSection = 400
|
|
|
|
+ let dangerSection = 500
|
|
|
|
+ private var sections = [Int]()
|
|
|
|
+
|
|
|
|
+ private lazy var basicSectionCells: [UITableViewCell] = [emailCell, passwordCell]
|
|
|
|
+ private lazy var restoreCells: [UITableViewCell] = [restoreCell]
|
|
|
|
+ private lazy var advancedSectionCells: [UITableViewCell] = [
|
|
|
|
+ advancedShowCell,
|
|
|
|
+ imapServerCell,
|
|
|
|
+ imapUserCell,
|
|
|
|
+ imapPortCell,
|
|
|
|
+ imapSecurityCell,
|
|
|
|
+ smtpServerCell,
|
|
|
|
+ smtpUserCell,
|
|
|
|
+ smtpPortCell,
|
|
|
|
+ smtpPasswordCell,
|
|
|
|
+ smtpSecurityCell
|
|
|
|
+ ]
|
|
|
|
+ private lazy var folderCells: [UITableViewCell] = [inboxWatchCell, sentboxWatchCell, mvboxWatchCell, sendCopyToSelfCell, mvboxMoveCell]
|
|
|
|
+ private lazy var dangerCells: [UITableViewCell] = [emptyServerCell, deleteAccountCell]
|
|
|
|
+
|
|
|
|
+ private let editView: Bool
|
|
|
|
+ private var advancedSectionShowing: Bool = false
|
|
|
|
+
|
|
|
|
|
|
// the progress dialog
|
|
// the progress dialog
|
|
|
|
|
|
@@ -291,36 +320,6 @@ class AccountSetupController: UITableViewController {
|
|
return button
|
|
return button
|
|
}()
|
|
}()
|
|
|
|
|
|
-
|
|
|
|
- // add cells to sections
|
|
|
|
-
|
|
|
|
- let basicSection = 100
|
|
|
|
- let advancedSection = 200
|
|
|
|
- let restoreSection = 300
|
|
|
|
- let folderSection = 400
|
|
|
|
- let dangerSection = 500
|
|
|
|
- private var sections = [Int]()
|
|
|
|
-
|
|
|
|
- private lazy var basicSectionCells: [UITableViewCell] = [emailCell, passwordCell]
|
|
|
|
- private lazy var restoreCells: [UITableViewCell] = [restoreCell]
|
|
|
|
- private lazy var advancedSectionCells: [UITableViewCell] = [
|
|
|
|
- advancedShowCell,
|
|
|
|
- imapServerCell,
|
|
|
|
- imapUserCell,
|
|
|
|
- imapPortCell,
|
|
|
|
- imapSecurityCell,
|
|
|
|
- smtpServerCell,
|
|
|
|
- smtpUserCell,
|
|
|
|
- smtpPortCell,
|
|
|
|
- smtpPasswordCell,
|
|
|
|
- smtpSecurityCell
|
|
|
|
- ]
|
|
|
|
- private lazy var folderCells: [UITableViewCell] = [inboxWatchCell, sentboxWatchCell, mvboxWatchCell, sendCopyToSelfCell, mvboxMoveCell]
|
|
|
|
- private lazy var dangerCells: [UITableViewCell] = [emptyServerCell, deleteAccountCell]
|
|
|
|
-
|
|
|
|
- private let editView: Bool
|
|
|
|
- private var advancedSectionShowing: Bool = false
|
|
|
|
-
|
|
|
|
init(dcContext: DcContext, editView: Bool) {
|
|
init(dcContext: DcContext, editView: Bool) {
|
|
self.editView = editView
|
|
self.editView = editView
|
|
self.dcContext = dcContext
|
|
self.dcContext = dcContext
|