Skip to content

Commit

Permalink
Fixing new capabilities elements
Browse files Browse the repository at this point in the history
  • Loading branch information
Erica Sadun authored and Erica Sadun committed Aug 4, 2009
1 parent cc0baa1 commit b232527
Showing 1 changed file with 113 additions and 113 deletions.
226 changes: 113 additions & 113 deletions UIDevice-Hardware.m
Expand Up @@ -124,138 +124,138 @@ + (NSUInteger) platformCapabilities
{
case UIDevice1GiPhone:
return
UIDeviceSupportsTelephony ||
UIDeviceSupportsSMS ||
UIDeviceSupportsStillCamera ||
// UIDeviceSupportsVideoCamera ||
UIDeviceSupportsWifi ||
UIDeviceSupportsAccelerometer ||
UIDeviceSupportsLocationServices ||
// UIDeviceSupportsGPS ||
// UIDeviceSupportsMagnetometer ||
UIDeviceSupportsBuiltInMicrophone ||
UIDeviceSupportsExternalMicrophone ||
UIDeviceSupportsOPENGLES1 ||
// UIDeviceSupportsOPENGLES2 ||
UIDeviceBuiltInSpeaker ||
UIDeviceSupportsVibration ||
UIDeviceBuiltInProximitySensor ||
// UIDeviceSupportsAccessibility ||
// UIDeviceSupportsVoiceControl ||
UIDeviceSupportsBrightnessSensor;
(UIDeviceSupportsTelephony |
UIDeviceSupportsSMS |
UIDeviceSupportsStillCamera |
// UIDeviceSupportsVideoCamera |
UIDeviceSupportsWifi |
UIDeviceSupportsAccelerometer |
UIDeviceSupportsLocationServices |
// UIDeviceSupportsGPS |
// UIDeviceSupportsMagnetometer |
UIDeviceSupportsBuiltInMicrophone |
UIDeviceSupportsExternalMicrophone |
UIDeviceSupportsOPENGLES1 |
// UIDeviceSupportsOPENGLES2 |
UIDeviceBuiltInSpeaker |
UIDeviceSupportsVibration |
UIDeviceBuiltInProximitySensor |
// UIDeviceSupportsAccessibility |
// UIDeviceSupportsVoiceControl |
UIDeviceSupportsBrightnessSensor);

case UIDevice3GiPhone:
return
UIDeviceSupportsTelephony ||
UIDeviceSupportsSMS ||
UIDeviceSupportsStillCamera ||
// UIDeviceSupportsVideoCamera ||
UIDeviceSupportsWifi ||
UIDeviceSupportsAccelerometer ||
UIDeviceSupportsLocationServices ||
UIDeviceSupportsGPS ||
// UIDeviceSupportsMagnetometer ||
UIDeviceSupportsBuiltInMicrophone ||
UIDeviceSupportsExternalMicrophone ||
UIDeviceSupportsOPENGLES1 ||
// UIDeviceSupportsOPENGLES2 ||
UIDeviceBuiltInSpeaker ||
UIDeviceSupportsVibration ||
UIDeviceBuiltInProximitySensor ||
// UIDeviceSupportsAccessibility ||
// UIDeviceSupportsVoiceControl ||
UIDeviceSupportsBrightnessSensor;
(UIDeviceSupportsTelephony |
UIDeviceSupportsSMS |
UIDeviceSupportsStillCamera |
// UIDeviceSupportsVideoCamera |
UIDeviceSupportsWifi |
UIDeviceSupportsAccelerometer |
UIDeviceSupportsLocationServices |
UIDeviceSupportsGPS |
// UIDeviceSupportsMagnetometer |
UIDeviceSupportsBuiltInMicrophone |
UIDeviceSupportsExternalMicrophone |
UIDeviceSupportsOPENGLES1 |
// UIDeviceSupportsOPENGLES2 |
UIDeviceBuiltInSpeaker |
UIDeviceSupportsVibration |
UIDeviceBuiltInProximitySensor |
// UIDeviceSupportsAccessibility |
// UIDeviceSupportsVoiceControl |
UIDeviceSupportsBrightnessSensor);

case UIDevice3GSiPhone:
return
UIDeviceSupportsTelephony ||
UIDeviceSupportsSMS ||
UIDeviceSupportsStillCamera ||
UIDeviceSupportsVideoCamera ||
UIDeviceSupportsWifi ||
UIDeviceSupportsAccelerometer ||
UIDeviceSupportsLocationServices ||
UIDeviceSupportsGPS ||
UIDeviceSupportsMagnetometer ||
UIDeviceSupportsBuiltInMicrophone ||
UIDeviceSupportsExternalMicrophone ||
UIDeviceSupportsOPENGLES1 ||
UIDeviceSupportsOPENGLES2 ||
UIDeviceBuiltInSpeaker ||
UIDeviceSupportsVibration ||
UIDeviceBuiltInProximitySensor ||
UIDeviceSupportsAccessibility ||
UIDeviceSupportsVoiceControl ||
UIDeviceSupportsBrightnessSensor;
(UIDeviceSupportsTelephony |
UIDeviceSupportsSMS |
UIDeviceSupportsStillCamera |
UIDeviceSupportsVideoCamera |
UIDeviceSupportsWifi |
UIDeviceSupportsAccelerometer |
UIDeviceSupportsLocationServices |
UIDeviceSupportsGPS |
UIDeviceSupportsMagnetometer |
UIDeviceSupportsBuiltInMicrophone |
UIDeviceSupportsExternalMicrophone |
UIDeviceSupportsOPENGLES1 |
UIDeviceSupportsOPENGLES2 |
UIDeviceBuiltInSpeaker |
UIDeviceSupportsVibration |
UIDeviceBuiltInProximitySensor |
UIDeviceSupportsAccessibility |
UIDeviceSupportsVoiceControl |
UIDeviceSupportsBrightnessSensor);

case UIDeviceUnknowniPhone: return 0;

case UIDevice1GiPod:
return
// UIDeviceSupportsTelephony ||
// UIDeviceSupportsSMS ||
// UIDeviceSupportsStillCamera ||
// UIDeviceSupportsVideoCamera ||
UIDeviceSupportsWifi ||
UIDeviceSupportsAccelerometer ||
UIDeviceSupportsLocationServices ||
// UIDeviceSupportsGPS ||
// UIDeviceSupportsMagnetometer ||
// UIDeviceSupportsBuiltInMicrophone ||
UIDeviceSupportsExternalMicrophone ||
UIDeviceSupportsOPENGLES1 ||
// UIDeviceSupportsOPENGLES2 ||
// UIDeviceBuiltInSpeaker ||
// UIDeviceSupportsVibration ||
// UIDeviceBuiltInProximitySensor ||
// UIDeviceSupportsAccessibility ||
// UIDeviceSupportsVoiceControl ||
UIDeviceSupportsBrightnessSensor;
(// UIDeviceSupportsTelephony |
// UIDeviceSupportsSMS |
// UIDeviceSupportsStillCamera |
// UIDeviceSupportsVideoCamera |
UIDeviceSupportsWifi |
UIDeviceSupportsAccelerometer |
UIDeviceSupportsLocationServices |
// UIDeviceSupportsGPS |
// UIDeviceSupportsMagnetometer |
// UIDeviceSupportsBuiltInMicrophone |
UIDeviceSupportsExternalMicrophone |
UIDeviceSupportsOPENGLES1 |
// UIDeviceSupportsOPENGLES2 |
// UIDeviceBuiltInSpeaker |
// UIDeviceSupportsVibration |
// UIDeviceBuiltInProximitySensor |
// UIDeviceSupportsAccessibility |
// UIDeviceSupportsVoiceControl |
UIDeviceSupportsBrightnessSensor);

case UIDevice2GiPod:
return
// UIDeviceSupportsTelephony ||
// UIDeviceSupportsSMS ||
// UIDeviceSupportsStillCamera ||
// UIDeviceSupportsVideoCamera ||
UIDeviceSupportsWifi ||
UIDeviceSupportsAccelerometer ||
UIDeviceSupportsLocationServices ||
// UIDeviceSupportsGPS ||
// UIDeviceSupportsMagnetometer ||
// UIDeviceSupportsBuiltInMicrophone ||
UIDeviceSupportsExternalMicrophone ||
UIDeviceSupportsOPENGLES1 ||
// UIDeviceSupportsOPENGLES2 ||
UIDeviceBuiltInSpeaker ||
// UIDeviceSupportsVibration ||
// UIDeviceBuiltInProximitySensor ||
// UIDeviceSupportsAccessibility ||
// UIDeviceSupportsVoiceControl ||
UIDeviceSupportsBrightnessSensor;
(// UIDeviceSupportsTelephony |
// UIDeviceSupportsSMS |
// UIDeviceSupportsStillCamera |
// UIDeviceSupportsVideoCamera |
UIDeviceSupportsWifi |
UIDeviceSupportsAccelerometer |
UIDeviceSupportsLocationServices |
// UIDeviceSupportsGPS |
// UIDeviceSupportsMagnetometer |
// UIDeviceSupportsBuiltInMicrophone |
UIDeviceSupportsExternalMicrophone |
UIDeviceSupportsOPENGLES1 |
// UIDeviceSupportsOPENGLES2 |
UIDeviceBuiltInSpeaker |
// UIDeviceSupportsVibration |
// UIDeviceBuiltInProximitySensor |
// UIDeviceSupportsAccessibility |
// UIDeviceSupportsVoiceControl |
UIDeviceSupportsBrightnessSensor);

case UIDeviceUnknowniPod: return 0;

case UIDeviceiPhoneSimulator:
return
// UIDeviceSupportsTelephony ||
// UIDeviceSupportsSMS ||
// UIDeviceSupportsStillCamera ||
// UIDeviceSupportsVideoCamera ||
UIDeviceSupportsWifi ||
// UIDeviceSupportsAccelerometer ||
UIDeviceSupportsLocationServices ||
// UIDeviceSupportsGPS ||
// UIDeviceSupportsMagnetometer ||
// UIDeviceSupportsBuiltInMicrophone ||
// UIDeviceSupportsExternalMicrophone ||
UIDeviceSupportsOPENGLES1 ||
// UIDeviceSupportsOPENGLES2 ||
UIDeviceBuiltInSpeaker;
// UIDeviceSupportsVibration ||
// UIDeviceBuiltInProximitySensor ||
// UIDeviceSupportsAccessibility ||
// UIDeviceSupportsVoiceControl ||
(// UIDeviceSupportsTelephony |
// UIDeviceSupportsSMS |
// UIDeviceSupportsStillCamera |
// UIDeviceSupportsVideoCamera |
UIDeviceSupportsWifi |
// UIDeviceSupportsAccelerometer |
UIDeviceSupportsLocationServices |
// UIDeviceSupportsGPS |
// UIDeviceSupportsMagnetometer |
// UIDeviceSupportsBuiltInMicrophone |
// UIDeviceSupportsExternalMicrophone |
UIDeviceSupportsOPENGLES1 |
// UIDeviceSupportsOPENGLES2 |
UIDeviceBuiltInSpeaker);
// UIDeviceSupportsVibration |
// UIDeviceBuiltInProximitySensor |
// UIDeviceSupportsAccessibility |
// UIDeviceSupportsVoiceControl |
// UIDeviceSupportsBrightnessSensor;

default: return 0;
Expand Down

0 comments on commit b232527

Please sign in to comment.