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

http://google-email-uploader-mac.googlecode.com/ · C++ Header · 60 lines · 30 code · 13 blank · 17 comment · 1 complexity · c906ab7b5881e048752a73455f31d18f 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. // GDataAnalyticsConstants.h
  17. //
  18. #if !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_ANALYTICS_SERVICE
  19. #import <Foundation/Foundation.h>
  20. #import "GDataDefines.h"
  21. #undef _EXTERN
  22. #undef _INITIALIZE_AS
  23. #ifdef GDATAANALYTICSCONSTANTS_DEFINE_GLOBALS
  24. #define _EXTERN
  25. #define _INITIALIZE_AS(x) =x
  26. #else
  27. #define _EXTERN GDATA_EXTERN
  28. #define _INITIALIZE_AS(x)
  29. #endif
  30. _EXTERN NSString* const kGDataAnalyticsDefaultServiceVersion _INITIALIZE_AS(@"2.1");
  31. _EXTERN NSString* const kGDataNamespaceAnalyticsDXP _INITIALIZE_AS(@"http://schemas.google.com/analytics/2009");
  32. _EXTERN NSString* const kGDataNamespaceAnalyticsDXPPrefix _INITIALIZE_AS(@"dxp");
  33. _EXTERN NSString* const kGDataNamespaceAnalyticsGA _INITIALIZE_AS(@"http://schemas.google.com/ga/2009");
  34. _EXTERN NSString* const kGDataNamespaceAnalyticsGAPrefix _INITIALIZE_AS(@"ga");
  35. _EXTERN NSString* const kGDataMetricTypeCurrency _INITIALIZE_AS(@"currency");
  36. _EXTERN NSString* const kGDataMetricTypeFloat _INITIALIZE_AS(@"float");
  37. _EXTERN NSString* const kGDataMetricTypeInteger _INITIALIZE_AS(@"integer");
  38. _EXTERN NSString* const kGDataMetricTypePercent _INITIALIZE_AS(@"percent");
  39. _EXTERN NSString* const kGDataMetricTypeTime _INITIALIZE_AS(@"time");
  40. _EXTERN NSString* const kGDataMetricTypeUSCurrency _INITIALIZE_AS(@"us_currency");
  41. _EXTERN NSString* const kGDataMatchTypeExact _INITIALIZE_AS(@"exact");
  42. _EXTERN NSString* const kGDataMatchTypeHead _INITIALIZE_AS(@"head");
  43. _EXTERN NSString* const kGDataMatchTypeRegex _INITIALIZE_AS(@"regex");
  44. @interface GDataAnalyticsConstants : NSObject
  45. + (NSDictionary *)analyticsNamespaces;
  46. @end
  47. #endif // !GDATA_REQUIRE_SERVICE_INCLUDES || GDATA_INCLUDE_ANALYTICS_SERVICE