unrealircd

- supernets unrealircd source & configuration
git clone git://git.acid.vegas/unrealircd.git
Log | Files | Refs | Archive | README | LICENSE

DaemonModel.swift (525B)

      1 //
      2 //  DaemonModel.swift
      3 //  UnrealIRCd
      4 //
      5 //  Created by Travis McArthur on 7/18/15.
      6 //  Copyright (c) 2015 UnrealIRCd Team. All rights reserved.
      7 //
      8 
      9 import Foundation
     10 
     11 class DaemonModel : ChangeNotifier
     12 {
     13     
     14     
     15     override init()
     16     {
     17         isRunning = false
     18         super.init()
     19     }
     20 
     21     
     22     func start()
     23     {
     24         isRunning = true
     25     }
     26     
     27     func stop()
     28     {
     29         isRunning = false
     30     }
     31     
     32     var isRunning : Bool
     33     {
     34         didSet {
     35             notifyListeners()
     36         }
     37     }
     38     
     39     
     40 }