PageRenderTime 25ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/core/externals/update-engine/externals/gdata-objectivec-client/Source/Clients/Docs/GDataQueryDocs.h

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