2 * Copyright 2000, International Business Machines Corporation and others.
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
14 #include <afs/param.h>
19 #include "set_general.h"
23 * FILESET PREFERENCES ________________________________________________________
27 PVOID
Filesets_LoadPreferences (LPIDENT lpiFileset
)
29 LPFILESET_PREF pfp
= New (FILESET_PREF
);
31 if (!RestorePreferences (lpiFileset
, pfp
, sizeof(FILESET_PREF
)))
33 pfp
->perWarnSetFull
= -1; // use the server's default value
35 Alert_SetDefaults (&pfp
->oa
);
38 Alert_Initialize (&pfp
->oa
);
43 BOOL
Filesets_SavePreferences (LPIDENT lpiFileset
)
47 PVOID pfp
= lpiFileset
->GetUserParam();
50 rc
= StorePreferences (lpiFileset
, pfp
, sizeof(FILESET_PREF
));
58 * ROUTINES ___________________________________________________________________
62 LPIDENT
Filesets_GetSelected (HWND hDlg
)
64 return (LPIDENT
)FL_GetSelectedData (GetDlgItem (hDlg
, IDC_SET_LIST
));
68 LPIDENT
Filesets_GetFocused (HWND hDlg
, POINT
*pptHitTest
)
70 HWND hList
= GetDlgItem (hDlg
, IDC_SET_LIST
);
72 if (pptHitTest
== NULL
)
74 return (LPIDENT
)FL_GetFocusedData (hList
);
78 if ((hItem
= FastList_ItemFromPoint (hList
, pptHitTest
, TRUE
)) != NULL
)
80 return (LPIDENT
)FL_GetData (hList
, hItem
);
87 BOOL
Filesets_fIsLocked (LPFILESETSTATUS pfs
)
89 return (pfs
->State
& fsLOCKED
) ? TRUE
: FALSE
;