PageRenderTime 19ms CodeModel.GetById 12ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 1ms

/Source/externals/GData/Source/Clients/Docs/GDataQueryDocs.h

http://google-email-uploader-mac.googlecode.com/
C++ Header | 110 lines | 55 code | 29 blank | 26 comment | 1 complexity | fe0bfd67359433f4d5cf0ba2daa4843d 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//  GDataQueryDocument.h
 18//
 19
 20#if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_DOCS_SERVICE
 21
 22#import "GDataQuery.h"
 23
 24// Document-specific query params, per 
 25//   http://code.google.com/apis/document/reference.html#Parameters
 26
 27#undef _EXTERN
 28#undef _INITIALIZE_AS
 29#ifdef GDATAQUERYDOCS_DEFINE_GLOBALS
 30#define _EXTERN
 31#define _INITIALIZE_AS(x) =x
 32#else
 33#define _EXTERN GDATA_EXTERN
 34#define _INITIALIZE_AS(x)
 35#endif
 36
 37// sort orders
 38_EXTERN NSString* const kGDataQueryDocsLastModified _INITIALIZE_AS(@"last-modified");
 39_EXTERN NSString* const kGDataQueryDocsLastViewed   _INITIALIZE_AS(@"last-viewed");
 40_EXTERN NSString* const kGDataQueryDocsTitle        _INITIALIZE_AS(@"title");
 41_EXTERN NSString* const kGDataQueryDocsStarred      _INITIALIZE_AS(@"starred");
 42
 43
 44@interface GDataQueryDocs : GDataQuery 
 45
 46+ (GDataQueryDocs *)documentQueryWithFeedURL:(NSURL *)feedURL;
 47
 48- (NSString *)titleQuery;
 49- (void)setTitleQuery:(NSString *)str;
 50
 51// non-exact title searches are keyword-based; exact title searches are literal
 52- (BOOL)isTitleQueryExact;
 53- (void)setIsTitleQueryExact:(BOOL)flag;
 54
 55- (NSString *)parentFolderName;
 56- (void)setParentFolderName:(NSString *)str;
 57
 58- (BOOL)shouldShowFolders;
 59- (void)setShouldShowFolders:(BOOL)flag;
 60
 61// owner specified as an e-mail address
 62- (void)setOwner:(NSString *)str;
 63- (NSString *)owner;
 64
 65// reader and writer specified as an e-mail address or comma-separated list
 66// of e-mail addresses
 67- (void)setReader:(NSString *)str;
 68- (NSString *)reader;
 69
 70- (void)setWriter:(NSString *)str;
 71- (NSString *)writer;
 72
 73- (void)setOpenedMinDateTime:(GDataDateTime *)dateTime;
 74- (GDataDateTime *)openedMinDateTime;
 75
 76- (void)setOpenedMaxDateTime:(GDataDateTime *)dateTime;
 77- (GDataDateTime *)openedMaxDateTime;
 78
 79- (void)setEditedMinDateTime:(GDataDateTime *)dateTime;
 80- (GDataDateTime *)editedMinDateTime;
 81
 82- (void)setEditedMaxDateTime:(GDataDateTime *)dateTime;
 83- (GDataDateTime *)editedMaxDateTime;
 84
 85- (void)setShouldShowRootParentLink:(BOOL)flag;
 86- (BOOL)shouldShowRootParentLink;
 87
 88// delete a document when deleting (default is moving to the trash on deleting)
 89- (void)setShouldActuallyDelete:(BOOL)flag;
 90- (BOOL)shouldActuallyDelete;
 91
 92// uploading parameters
 93- (void)setShouldConvertUpload:(BOOL)flag;
 94- (BOOL)shouldConvertUpload;
 95
 96- (void)setShouldOCRUpload:(BOOL)flag;
 97- (BOOL)shouldOCRUpload;
 98
 99- (void)setShouldCreateNewRevision:(BOOL)flag;
100- (BOOL)shouldCreateNewRevision;
101
102- (NSString *)sourceLanguage;
103- (void)setSourceLanguage:(NSString *)str;
104
105- (NSString *)targetLanguage;
106- (void)setTargetLanguage:(NSString *)str;
107
108@end
109
110#endif // !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_DOCS_SERVICE