/Source/externals/GData/Source/Clients/Analytics/GDataAnalyticsDataSource.h

http://google-email-uploader-mac.googlecode.com/ · C++ Header · 52 lines · 14 code · 11 blank · 27 comment · 1 complexity · 59ea94480bd89c46489ea742df467096 MD5 · raw file

  1. /* Copyright (c) 2009 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. // GDataAnalyticsDataSource.h
  17. //
  18. // data source, like
  19. //
  20. // <dxp:dataSource>
  21. // <dxp:tableId>ga:179684</dxp:tableId>
  22. // <dxp:tableName>www.example.net</dxp:tableName>
  23. // <dxp:property name="ga:profileId" value="179684"/>
  24. // <dxp:property name="ga:webPropertyId" value="UA-892159-1"/>
  25. // <dxp:property name="ga:accountName" value="example"/>
  26. // </dxp:dataSource>
  27. #if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_ANALYTICS_SERVICE
  28. #import "GDataObject.h"
  29. @class GDataAnalyticsProperty;
  30. @interface GDataAnalyticsDataSource : GDataObject <GDataExtension>
  31. - (NSString *)tableID;
  32. - (void)setTableID:(NSString *)str;
  33. - (NSString *)tableName;
  34. - (void)setTableName:(NSString *)str;
  35. - (NSArray *)analyticsProperties;
  36. - (void)setAnalyticsProperties:(NSArray *)array;
  37. - (void)addAnalyticsProperty:(GDataAnalyticsProperty *)obj;
  38. // convenience accessors
  39. - (GDataAnalyticsProperty *)analyticsPropertyWithName:(NSString *)name;
  40. @end
  41. #endif // !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_ANALYTICS_SERVICE