                 return MFMailComposeViewController.canSendMail()
             #endif
             #if os(OSX)
-                // TODO: Not implemented.
                 return false
             #endif
             

#if os(OSX)
    import AppKit
    import CoreLocation
#endif

/**

        switch type {
            
        case ICapabilitiesCommunication.Calendar:
            
            #if os(iOS)
                if let eventsAccess: AnyObject = NSUserDefaults.standardUserDefaults().valueForKey("eventkit_events_access_granted") {
                    return true
                } else {
                    return false
                }
            #endif
            #if os(OSX)
                if let eventsAccess: AnyObject = NSUserDefaults.standardUserDefaults().valueForKey("eventkit_events_access_granted") {
                    return true
                } else {
                    return false
                }
            #endif
            
        case ICapabilitiesCommunication.Contact:
            
            #if os(iOS)
                
                switch (ABAddressBookGetAuthorizationStatus()){
                    
                case ABAuthorizationStatus.NotDetermined:
                    return false
                case ABAuthorizationStatus.Denied:
                    return false
                case ABAuthorizationStatus.Restricted:
                    return false
                case ABAuthorizationStatus.Authorized:
                    return true
                }
                
            #endif
            #if os(OSX)
                
                if let book = ABAddressBook.sharedAddressBook() {
                    return true
                } else {
                    return false
                }
                
            #endif
            
        case ICapabilitiesCommunication.Mail:
