/core/externals/update-engine/Core/KSUpdateEngineParameters.h

http://macfuse.googlecode.com/ · C Header · 47 lines · 16 code · 4 blank · 27 comment · 0 complexity · fd6704610aa3b9ec4b35ddab35e7605b MD5 · raw file

  1. // Copyright 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. #import <Foundation/Foundation.h>
  15. // These are dictionary keys for parameters passed to a KSUpdateEngine from its
  16. // acquirer. All values for these keys should be NSStrings unless otherwise
  17. // specified. GUIDs (also as NSStrings) should be wrapped in curly braces, for
  18. // example {27A29829-BDBD-4AB5-AC67-C00010B9AC4C}.
  19. #define kUpdateEngineMachineID @"MachineID"
  20. #define kUpdateEngineUserGUID @"UserGUID"
  21. #define kUpdateEngineOSVersion @"OSVersion" // e.g. "10.5.2_x86"
  22. #define kUpdateEngineUpdateCheckTag @"UpdateCheckTag"
  23. #define kUpdateEngineIsMachine @"IsMachine"
  24. #define kUpdateEngineProductStats @"ProductStats" // productID -> dict
  25. #define kUpdateEngineUserInitiated @"UserInitiated" // BOOL in NSNumber
  26. // The identity to use in server requests (if the server class supports it).
  27. // Default is server-defined.
  28. #define kUpdateEngineIdentity @"Identity"
  29. // NSArray of NSStrings.
  30. #define kUpdateEngineAllowedSubdomains @"AllowedSubdomains"
  31. // NSDictionary, keyed by productID, of dictionaries, which contain
  32. // keys from "Product active keys" below
  33. #define kUpdateEngineProductActiveInfoKey @"ActivesInfo"
  34. // NSDictionary, keyed by a string representation of an URL, that contains
  35. // information returned by the server on a previous run. KSOmahaServer
  36. // stores its secondsSinceMidnight value here.
  37. #define kUpdateEngineServerInfoKey @"ServerInfo"
  38. // Product stat dictionary keys.
  39. #define kUpdateEngineProductStatsActive @"Active" // BOOL in NSNumber
  40. // Product active keys. Values are NSDates.
  41. #define kUpdateEngineLastActiveDate @"LastActiveDate"
  42. #define kUpdateEngineLastActivePingDate @"LastActivePingDate"
  43. #define kUpdateEngineLastRollCallPingDate @"LastRollCallPingDate"