PageRenderTime 36ms CodeModel.GetById 16ms app.highlight 17ms RepoModel.GetById 1ms app.codeStats 0ms

/core/externals/update-engine/externals/gdata-objectivec-client/Source/Clients/Docs/GDataEntrySpreadsheetDoc.m

http://macfuse.googlecode.com/
Objective C | 54 lines | 19 code | 14 blank | 21 comment | 1 complexity | a58257b24666473591ae308925be4188 MD5 | raw file
 1/* Copyright (c) 2007 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
16//
17//  GDataEntrySpreadsheetDoc.m
18//
19
20#if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_DOCS_SERVICE
21
22#import "GDataEntrySpreadsheetDoc.h"
23
24@implementation GDataEntrySpreadsheetDoc
25
26+ (NSString *)standardEntryKind {
27  return kGDataCategorySpreadsheetDoc;
28}
29
30+ (void)load {
31  [self registerEntryClass];
32}
33
34// convenience accessors
35
36- (GDataLink *)worksheetsLink {
37  // kWorksheetRel is the same as kGDataLinkWorksheetsFeed, but we want
38  // to avoid a cross dependency between the doc list and spreadsheet APIs,
39  // so the rel is defined explicitly here
40
41  NSString *const kWorksheetRel = @"http://schemas.google.com/spreadsheets/2006#worksheetsfeed";
42
43  return [self linkWithRelAttributeValue:kWorksheetRel];
44}
45
46- (GDataLink *)tablesLink {
47  NSString *const kTablesRel = @"http://schemas.google.com/spreadsheets/2006#tablesfeed";
48
49  return [self linkWithRelAttributeValue:kTablesRel];
50}
51
52@end
53
54#endif // !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_DOCS_SERVICE