PageRenderTime 20ms CodeModel.GetById 12ms app.highlight 4ms RepoModel.GetById 2ms app.codeStats 0ms

/Source/externals/GData/Source/Clients/WebmasterTools/GDataServiceGoogleWebmasterTools.h

http://google-email-uploader-mac.googlecode.com/
C++ Header | 71 lines | 22 code | 13 blank | 36 comment | 1 complexity | f36136cfcfe0cf4ac62ad9c0a3ecce18 MD5 | raw file
 1/* Copyright (c) 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
16//
17//  GDataServiceGoogleWebmasterTools.h
18//
19
20#if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_WEBMASTERTOOLS_SERVICE
21
22#import "GDataServiceGoogle.h"
23
24#undef _EXTERN
25#undef _INITIALIZE_AS
26#ifdef GDATASERVICEGOOGLEWEBMASTERTOOLS_DEFINE_GLOBALS
27#define _EXTERN 
28#define _INITIALIZE_AS(x) =x
29#else
30#define _EXTERN GDATA_EXTERN
31#define _INITIALIZE_AS(x)
32#endif
33
34_EXTERN NSString* const kGDataWebmasterToolsFeedTypeSitemaps    _INITIALIZE_AS(@"sitemaps");
35_EXTERN NSString* const kGDataWebmasterToolsFeedTypeKeywords    _INITIALIZE_AS(@"keywords");
36_EXTERN NSString* const kGDataWebmasterToolsFeedTypeCrawlIssues _INITIALIZE_AS(@"crawlissues");
37
38_EXTERN NSString* const kGDataGoogleWebmasterToolsSitesFeed    _INITIALIZE_AS(@"https://www.google.com/webmasters/tools/feeds/sites/");
39_EXTERN NSString* const kGDataGoogleWebmasterToolsMessagesFeed _INITIALIZE_AS(@"https://www.google.com/webmasters/tools/feeds/messages/");
40
41
42@interface GDataServiceGoogleWebmasterTools : GDataServiceGoogle
43
44// Utility for making feed URLs. 
45+ (NSURL *)webmasterToolsFeedURLForSiteID:(NSString *)siteID
46                                 feedType:(NSString *)feedType;
47
48// clients may use these fetch methods of GDataServiceGoogle
49//
50//  - (GDataServiceTicket *)fetchFeedWithURL:(NSURL *)feedURL delegate:(id)delegate didFinishSelector:(SEL)finishedSelector;
51//  - (GDataServiceTicket *)fetchFeedWithQuery:(GDataQuery *)query delegate:(id)delegate didFinishSelector:(SEL)finishedSelector;
52//  - (GDataServiceTicket *)fetchEntryWithURL:(NSURL *)entryURL delegate:(id)delegate didFinishSelector:(SEL)finishedSelector;
53//  - (GDataServiceTicket *)fetchEntryByInsertingEntry:(GDataEntryBase *)entryToInsert forFeedURL:(NSURL *)feedURL delegate:(id)delegate didFinishSelector:(SEL)finishedSelector;
54//  - (GDataServiceTicket *)fetchEntryByUpdatingEntry:(GDataEntryBase *)entryToUpdate delegate:(id)delegate didFinishSelector:(SEL)finishedSelector;
55//  - (GDataServiceTicket *)deleteEntry:(GDataEntryBase *)entryToDelete delegate:(id)delegate didFinishSelector:(SEL)finishedSelector;
56//  - (GDataServiceTicket *)deleteResourceURL:(NSURL *)resourceEditURL ETag:(NSString *)etag delegate:(id)delegate didFinishSelector:(SEL)finishedSelector;
57//  - (GDataServiceTicket *)fetchFeedWithBatchFeed:(GDataFeedBase *)batchFeed forBatchFeedURL:(NSURL *)feedURL delegate:(id)delegate didFinishSelector:(SEL)finishedSelector;
58//
59// finishedSelector has a signature like this for feed fetches:
60// - (void)serviceTicket:(GDataServiceTicket *)ticket finishedWithFeed:(GDataFeedBase *)feed error:(NSError *)error;
61//
62// or this for entry fetches:
63// - (void)serviceTicket:(GDataServiceTicket *)ticket finishedWithEntry:(GDataEntryBase *)entry error:(NSError *)error;
64//
65// The class of the returned feed or entry is determined by the URL fetched.
66
67+ (NSString *)serviceRootURLString;  
68
69@end
70
71#endif // !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_WEBMASTERTOOLS_SERVICE