PageRenderTime 26ms CodeModel.GetById 11ms app.highlight 12ms RepoModel.GetById 1ms app.codeStats 0ms

/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
15#import "KSUpdateInfo.h"
16
17
18@implementation NSDictionary (KSUpdateInfoMethods)
19
20- (NSString *)productID {
21  return [self objectForKey:kServerProductID];
22}
23
24- (NSURL *)codebaseURL {
25  return [self objectForKey:kServerCodebaseURL];
26}
27
28- (NSNumber *)codeSize {
29  return [self objectForKey:kServerCodeSize];
30}
31
32- (NSString *)codeHash {
33  return [self objectForKey:kServerCodeHash];
34}
35
36- (NSString *)moreInfoURLString {
37  return [self objectForKey:kServerMoreInfoURLString];
38}
39
40- (NSNumber *)promptUser {
41  return [self objectForKey:kServerPromptUser];
42}
43
44- (NSNumber *)requireReboot {
45  return [self objectForKey:kServerRequireReboot];
46}
47
48- (NSString *)localizationBundle {
49  return [self objectForKey:kServerLocalizationBundle];
50}
51
52- (NSString *)displayVersion {
53  return [self objectForKey:kServerDisplayVersion];
54}
55
56- (NSString *)version {
57  return [self objectForKey:kServerVersion];
58}
59
60- (KSTicket *)ticket {
61  return [self objectForKey:kTicket];
62}
63
64@end