FileViewController

class FileViewController : UIViewController, UINavigationBarDelegate, UITableViewDelegate, UITableViewDataSource, NetworkCheckObserver

The purpose of the FileViewController ViewController is to manage the File View hierarchy.

  • Undocumented

    Declaration

    Swift

    var tabListDirFiles: [[DirFileData]]
  • Undocumented

    Declaration

    Swift

    var listDirFiles: [DirFileData]
  • Undocumented

    Declaration

    Swift

    var lastId: Int
  • Undocumented

    Declaration

    Swift

    fileprivate(set) var currentPath: String
  • Undocumented

    Declaration

    Swift

    @IBOutlet
    weak var navBar: UINavigationBar!
  • Undocumented

    Declaration

    Swift

    @IBOutlet
    weak var tableView: UITableView!
  • Undocumented

    Declaration

    Swift

    @IBOutlet
    weak var toolBar: UIToolbar!
  • Undocumented

    Declaration

    Swift

    @IBOutlet
    weak var backButton: UIBarButtonItem!
  • Undocumented

    Declaration

    Swift

    @IBOutlet
    weak var generalPath: UINavigationItem!
  • Undocumented

    Declaration

    Swift

    @IBOutlet
    weak var activityIndicator: UIActivityIndicatorView!
  • Undocumented

    Declaration

    Swift

    @IBOutlet
    weak var addButton: UIBarButtonItem!
  • Undocumented

    Declaration

    Swift

    @IBOutlet
    weak var moreButton: UIBarButtonItem!
  • Undocumented

    Declaration

    Swift

    lazy var refresher: UIRefreshControl { get set }
  • Undocumented

    Declaration

    Swift

    override func viewDidLoad()
  • Undocumented

    Declaration

    Swift

    override func viewDidAppear(_ animated: Bool)
  • Undocumented

    Declaration

    Swift

    override func viewWillAppear(_ animated: Bool)
  • Undocumented

    Declaration

    Swift

    override func viewWillDisappear(_ animated: Bool)
  • Declaration

    Swift

    @available(iOS 12.0, *)
    func statusDidChange(status: NWPath.Status)
  • Display an AlertViewController with a network warning message.

    Declaration

    Swift

    func alertNetwork()
  • Refresh action function that fetches directories.

    Declaration

    Swift

    @objc
    func callRefresh()
  • Undocumented

    Declaration

    Swift

    func position(for bar: UIBarPositioning) -> UIBarPosition
  • Init of the UI.

    • Deactivation of backButton and addButton
    • Positioning of backButton and moreButton

    Declaration

    Swift

    func initButtons()
  • Displaying app informations.

    Declaration

    Swift

    @IBAction
    func moreButton(_ sender: Any)
  • Display an AlertViewController with different proposals: Folder creation, File upload

    Declaration

    Swift

    @IBAction
    func addButton(_ sender: Any)
  • Permit to user to go back into parent folders.

    Declaration

    Swift

    @IBAction
    func backButton(_ sender: Any)
  • Permit to user to logout: Display an AlertViewController to confirm the action.

    Declaration

    Swift

    @IBAction
    func logout(_ sender: Any)
  • Display an AlertViewController to choose the folder name.

    Declaration

    Swift

    func showAlertWithTextField()
  • Reload the tableView data.

    Declaration

    Swift

    func fetchDone()
  • Undocumented

    Declaration

    Swift

    func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int
  • Undocumented

    Declaration

    Swift

    func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath)
  • Undocumented

    Declaration

    Swift

    func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell
  • Undocumented

    Declaration

    Swift

    func tableView(_ tableView: UITableView, commit editingStyle: UITableViewCell.EditingStyle, forRowAt indexPath: IndexPath)