Windows: conditionally set tray icon state
[openafs.git] / src / WINNT / afssvrcfg / cfg_utils.h
1 /*
2  * Copyright 2000, International Business Machines Corporation and others.
3  * All Rights Reserved.
4  *
5  * This software has been released under the terms of the IBM Public
6  * License.  For details, see the LICENSE file in the top-level source
7  * directory or online at http://www.openafs.org/dl/license10.html
8  */
9
10 #ifndef _WIZ_UTILS_H_
11 #define _WIZ_UTILS_H_
12
13
14 BOOL IsStepEnabled(const CONFIG_STATE& step);
15 void EnableStep(CONFIG_STATE& step, BOOL bEnable = TRUE);
16
17 BOOL ShouldConfig(const CONFIG_STATE& state);
18 BOOL DontConfig(const CONFIG_STATE& state);
19 void ToggleConfig(CONFIG_STATE& state);
20 BOOL ConfiguredOrConfiguring(const CONFIG_STATE& step);
21 BOOL Configured(const CONFIG_STATE& step);
22 BOOL ShouldUnconfig(const CONFIG_STATE& state);
23
24 void RedrawGraphic();
25
26 UINT GetAppTitleID();
27
28 const char *GetAdminLibErrorCodeMessage(afs_status_t nErrorCode);
29
30 void LogError(afs_status_t nErrorCode);
31
32 void ShowError(HWND hDlg, afs_status_t nErrorCode, UINT uiErrorMsgID);
33 int ShowWarning(HWND hDlg, UINT uiMsgID);
34
35
36 #endif  // _WIZ_UTILS_H_
37