OLD | NEW |
| (Empty) |
1 // Copyright 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 #ifndef OMAHA_CLIENT_CLIENT_UTILS_H_ | |
17 #define OMAHA_CLIENT_CLIENT_UTILS_H_ | |
18 | |
19 #include <windows.h> | |
20 #include <atlstr.h> | |
21 | |
22 namespace omaha { | |
23 | |
24 namespace client_utils { | |
25 | |
26 // Displays the error message in a new UI instance. | |
27 // Returns whether a UI was successfully displayed. Resources must be loaded. | |
28 bool DisplayError(bool is_machine, | |
29 const CString& bundle_name, | |
30 HRESULT error, | |
31 int extra_code1, | |
32 const CString& error_text, | |
33 const CString& app_id, | |
34 const CString& language_id, | |
35 const GUID& iid, | |
36 const CString& brand_code); | |
37 | |
38 // Displays a dialog prompting the user to choose to continue with installing | |
39 // the bundle on a per-user basis. should_continue is set to true if the user | |
40 // chooses to proceed. | |
41 // Returns whether a UI was successfully displayed. Resources must be loaded. | |
42 bool DisplayContinueAsNonAdmin(const CString& bundle_name, | |
43 bool* should_continue); | |
44 | |
45 CString GetDefaultApplicationName(); | |
46 | |
47 CString GetDefaultBundleName(); | |
48 | |
49 CString GetUpdateAllAppsBundleName(); | |
50 | |
51 CString GetInstallerDisplayName(const CString& bundle_name); | |
52 | |
53 } // namespace client_utils | |
54 | |
55 } // namespace omaha | |
56 | |
57 #endif // OMAHA_CLIENT_CLIENT_UTILS_H_ | |
OLD | NEW |