Otcfgusermode preference, Invalid area id, Invalid area id 3 – Apple Network Setup User Manual

Page 109

Advertising
background image

C H A P T E R 3

Network Setup Reference

Network Setup Constants

109

These preferences are used by the Network Setup backward compatibility
mechanism to ensure an accurate conversion between legacy preference files
and the Network Setup database.

OTCfgUserMode Preference

3

For most control panels that support a concept of “user mode,” the

OTCfgUserMode

preference holds (or is used as a field in another preference to

hold) the current user mode as a

UInt16

. The exceptions are the ARA and

Modem control panels, where the user mode is stored as a

UInt32

.

enum unsigned short OTCfgUserMode

{

kOTCfgBasicUserMode = 1,

kOTCfgAdvancedUserMode = 2,

kOTCfgAdminUserMode = 3,

};

typedef UInt32 OTCfgUserMode32;

Constant descriptions

kOTCfgBasicUserMode

Basic user mode.

kOTCfgAdvancedUserMode

Advanced user mode.

kOTCfgAdminUserMode

Administration user mode. This mode is used by the
control panel at runtime but is never valid in a preference.
It is defined here for completeness only.

Invalid Area ID

3

The constant

kInvalidCfgAreaID

represents an invalid area ID.

Advertising