GBDeviceInfo_OSX.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. //
  2. // GBDeviceInfo_OSX.h
  3. // GBDeviceInfo
  4. //
  5. // Created by Luka Mirosevic on 14/03/2013.
  6. // Copyright (c) 2013 Goonbee. All rights reserved.
  7. //
  8. // Licensed under the Apache License, Version 2.0 (the "License");
  9. // you may not use this file except in compliance with the License.
  10. // You may obtain a copy of the License at
  11. //
  12. // http://www.apache.org/licenses/LICENSE-2.0
  13. //
  14. // Unless required by applicable law or agreed to in writing, software
  15. // distributed under the License is distributed on an "AS IS" BASIS,
  16. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  17. // See the License for the specific language governing permissions and
  18. // limitations under the License.
  19. #import "GBDeviceInfo_Common.h"
  20. #import "GBDeviceInfoTypes_OSX.h"
  21. @interface GBDeviceInfo : GBDeviceInfo_Common
  22. /**
  23. The node name on the network, e.g. "MyMachine.local".
  24. N.B.: Dynamic getter that recalculates the value each time.
  25. */
  26. @property (strong, atomic, readonly) NSString *nodeName;
  27. /**
  28. The device version. e.g. {13, 2}.
  29. */
  30. @property (assign, atomic, readonly) GBDeviceVersion deviceVersion;
  31. /**
  32. System byte order, e.g. GBByteOrderLittleEndian.
  33. */
  34. @property (assign, atomic, readonly) GBByteOrder systemByteOrder;
  35. /**
  36. Information about the display.
  37. N.B.: Dynamic getter that recalculates the value each time.
  38. */
  39. //@property (assign, atomic, readonly) GBDisplayInfo displayInfo;
  40. /**
  41. Indicates whether the app store is available on this machine.
  42. */
  43. @property (assign, atomic, readonly) BOOL isMacAppStoreAvailable; //YES if OSX >= 10.6.6
  44. /**
  45. Indicates whether IAP is available on this machine.
  46. */
  47. @property (assign, atomic, readonly) BOOL isIAPAvailable; //YES if OSX >= 10.7
  48. @end