PageRenderTime 32ms CodeModel.GetById 28ms RepoModel.GetById 0ms app.codeStats 0ms

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

http://macfuse.googlecode.com/
C Header | 49 lines | 10 code | 6 blank | 33 comment | 0 complexity | eacf814c3eab966c62e5788aa7f0c0ae MD5 | raw file
Possible License(s): Apache-2.0, BSD-3-Clause, GPL-2.0
  1. // Copyright 2010 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. #import "KSAction.h"
  16. @class KSUpdateEngine;
  17. // KSOutOfBandDataAction
  18. //
  19. // A KSAction that reports any out-of-band data to the Update Engine
  20. // delegate.
  21. //
  22. // It expects in its in-pipe a dictionary containing two items:
  23. // - UpdateInfos : NSArray of KSUpdateInfos
  24. // - OutOfBandData : NSDictionary of OOB data, keyed by server URL.
  25. // The contents of the OOB data are server-dependent.
  26. //
  27. // If there is out-of-band data, it calls the Update Engine delegate's
  28. // -engine:hasOutOfBandData: method.
  29. //
  30. // The action emits the UpdateInfos array to its out-pipe. If the incoming
  31. // data is not a dictionary, this action just passes the inPipe value out
  32. // to the outPipe.
  33. //
  34. @interface KSOutOfBandDataAction : KSAction {
  35. @private
  36. KSUpdateEngine *engine_;
  37. }
  38. // Returns an autoreleased KSOutOfBandDataAction associated with |engine|.
  39. + (id)actionWithEngine:(KSUpdateEngine *)engine;
  40. // Designated initializer. Returns a KSOutOfBandDataAction associated
  41. // with |engine|
  42. - (id)initWithEngine:(KSUpdateEngine *)engine;
  43. @end