/core/externals/update-engine/Core/KSUpdateInfo.m

http://macfuse.googlecode.com/ · Objective C · 64 lines · 36 code · 15 blank · 13 comment · 0 complexity · d1f99697ff185a3bdf5aaa56a3f38e29 MD5 · raw file

  1. // Copyright 2008 Google Inc.
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. #import "KSUpdateInfo.h"
  15. @implementation NSDictionary (KSUpdateInfoMethods)
  16. - (NSString *)productID {
  17. return [self objectForKey:kServerProductID];
  18. }
  19. - (NSURL *)codebaseURL {
  20. return [self objectForKey:kServerCodebaseURL];
  21. }
  22. - (NSNumber *)codeSize {
  23. return [self objectForKey:kServerCodeSize];
  24. }
  25. - (NSString *)codeHash {
  26. return [self objectForKey:kServerCodeHash];
  27. }
  28. - (NSString *)moreInfoURLString {
  29. return [self objectForKey:kServerMoreInfoURLString];
  30. }
  31. - (NSNumber *)promptUser {
  32. return [self objectForKey:kServerPromptUser];
  33. }
  34. - (NSNumber *)requireReboot {
  35. return [self objectForKey:kServerRequireReboot];
  36. }
  37. - (NSString *)localizationBundle {
  38. return [self objectForKey:kServerLocalizationBundle];
  39. }
  40. - (NSString *)displayVersion {
  41. return [self objectForKey:kServerDisplayVersion];
  42. }
  43. - (NSString *)version {
  44. return [self objectForKey:kServerVersion];
  45. }
  46. - (KSTicket *)ticket {
  47. return [self objectForKey:kTicket];
  48. }
  49. @end