| OLD | NEW |
| (Empty) |
| 1 // Copyright 2009-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 // ======================================================================== | |
| 15 | |
| 16 // Functions for installing applications. | |
| 17 | |
| 18 #ifndef OMAHA_CLIENT_INSTALL_APPS_H_ | |
| 19 #define OMAHA_CLIENT_INSTALL_APPS_H_ | |
| 20 | |
| 21 #include <windows.h> | |
| 22 #include <atlstr.h> | |
| 23 #include "omaha/client/install_progress_observer.h" | |
| 24 | |
| 25 namespace omaha { | |
| 26 | |
| 27 struct CommandLineExtraArgs; | |
| 28 | |
| 29 // TODO(omaha): Similar definitions with just DoClose() appear elsewhere. | |
| 30 // Is there a common name we can give these? | |
| 31 class OnDemandEventsInterface { | |
| 32 public: | |
| 33 virtual ~OnDemandEventsInterface() {} | |
| 34 virtual void DoClose() = 0; | |
| 35 virtual void DoExit() = 0; | |
| 36 }; | |
| 37 | |
| 38 class OnDemandObserver : public InstallProgressObserver { | |
| 39 public: | |
| 40 virtual void SetEventSink(OnDemandEventsInterface* event_sink) = 0; | |
| 41 }; | |
| 42 | |
| 43 // TODO(omaha3): Should these be in a class or namespace? | |
| 44 | |
| 45 HRESULT UpdateAppOnDemand(bool is_machine, | |
| 46 const CString& app_id, | |
| 47 bool is_update_check_only, | |
| 48 const CString& session_id, | |
| 49 HANDLE impersonation_token, | |
| 50 HANDLE primary_token, | |
| 51 OnDemandObserver* observer); | |
| 52 | |
| 53 HRESULT InstallApps(bool is_machine, | |
| 54 bool is_interactive, | |
| 55 bool is_eula_accepted, | |
| 56 bool is_oem_install, | |
| 57 bool is_offline, | |
| 58 const CString& offline_dir, | |
| 59 const CommandLineExtraArgs& extra_args, | |
| 60 const CString& install_source, | |
| 61 const CString& session_id, | |
| 62 bool* has_ui_been_displayed); | |
| 63 | |
| 64 HRESULT UpdateAllApps(bool is_machine, | |
| 65 bool is_interactive, | |
| 66 const CString& install_source, | |
| 67 const CString& display_language, | |
| 68 const CString& session_id, | |
| 69 bool* has_ui_been_displayed); | |
| 70 | |
| 71 } // namespace omaha | |
| 72 | |
| 73 #endif // OMAHA_CLIENT_INSTALL_APPS_H_ | |
| OLD | NEW |