19 #ifndef __LOCATIONMANAGER__
20 #define __LOCATIONMANAGER__
22 #ifndef __APPLEEVENTS__
26 #ifndef __COMPONENTS__
38 #ifndef __STANDARDFILE__
55 #if PRAGMA_STRUCT_ALIGN
56 #pragma options align = mac68k
57 #elif PRAGMA_STRUCT_PACKPUSH
59 #elif PRAGMA_STRUCT_PACK
67 typedef struct OpaqueALMToken *ALMToken;
69 #define kALMNoLocationToken ((ALMToken)(-1))
72 kALMLocationNameMaxLen = 31,
77 typedef Str31 ALMLocationName;
79 typedef SInt16 ALMConfirmChoice;
82 kALMConfirmRename = 1,
83 kALMConfirmReplace = 2
90 kALMDuplicateRenameButton =
92 kALMDuplicateReplaceButton = 2,
93 kALMDuplicateCancelButton = 3,
94 kALMDuplicatePromptText = 5
99 kALMRenameRenameButton =
101 kALMRenameCancelButton = 2,
102 kALMRenameEditText = 3,
103 kALMRenamePromptText = 4
110 kALMDuplicateDialogRefCon = FOUR_CHAR_CODE(
'dupl'),
111 kALMRenameDialogRefCon = FOUR_CHAR_CODE(
'rnam')
118 typedef STACK_UPP_TYPE(ALMNotificationProcPtr) ALMNotificationUPP;
119 #if CALL_NOT_IN_CARBON
130 #if !OPAQUE_UPP_TYPES
133 uppALMNotificationProcInfo = 0x000000C0
136 inline ALMNotificationUPP
140 uppALMNotificationProcInfo,
141 GetCurrentArchitecture());
144 #define NewALMNotificationUPP(userRoutine) \
145 (ALMNotificationUPP) \
146 NewRoutineDescriptor((ProcPtr)(userRoutine), uppALMNotificationProcInfo, \
147 GetCurrentArchitecture())
161 #if !OPAQUE_UPP_TYPES
168 #define DisposeALMNotificationUPP(userUPP) DisposeRoutineDescriptor(userUPP)
182 #if !OPAQUE_UPP_TYPES
185 ALMNotificationUPP userUPP)
187 CALL_ONE_PARAMETER_UPP(userUPP, uppALMNotificationProcInfo,
theEvent);
190 #define InvokeALMNotificationUPP(theEvent, userUPP) \
191 CALL_ONE_PARAMETER_UPP((userUPP), uppALMNotificationProcInfo, (theEvent))
197 #if CALL_NOT_IN_CARBON || OLDROUTINENAMES
199 #define NewALMNotificationProc(userRoutine) NewALMNotificationUPP(userRoutine)
200 #define CallALMNotificationProc(userRoutine, theEvent) \
201 InvokeALMNotificationUPP(theEvent, userRoutine)
207 kAELocationChangedNoticeKey =
208 FOUR_CHAR_CODE(
'walk'),
209 kAELocationRescanNoticeKey =
210 FOUR_CHAR_CODE(
'trip')
214 typedef SInt32 ALMSwitchActionFlags;
217 kALMDefaultSwitchFlags = 0x00000000,
218 kALMDontShowStatusWindow = 0x00000001,
219 kALMSignalViaAE = 0x00000002
224 typedef const OSType *ConstALMModuleTypeListPtr;
227 kALMAddAllOnSimple = 0,
235 kALMLocationSelectButton = 1,
236 kALMLocationCancelButton = 2,
237 kALMLocationBalloonHelp = 3,
238 kALMLocationLocationList = 7,
239 kALMLocationLocationNameEdit = 10,
240 kALMLocationPromptText = 11
245 kALMLocationSaveButton = kALMLocationSelectButton
255 kALMScriptInfoVersion =
288 kALMAltScriptManagerInfoRsrcType = FOUR_CHAR_CODE(
'trip'),
289 kALMAltScriptManagerInfoRsrcID = 0
293 typedef UInt32 ALMRebootFlags;
297 kALMAvailableNow = 1,
298 kALMFinderRestart = 2,
314 FOUR_CHAR_CODE(
'fall'),
315 kALMComponentModuleFileType = FOUR_CHAR_CODE(
317 kALMComponentStateModuleFileType =
318 FOUR_CHAR_CODE(
'almn'),
319 kALMComponentActionModuleFileType =
320 FOUR_CHAR_CODE(
'almb'),
321 kALMCFMStateModuleFileType =
322 FOUR_CHAR_CODE(
'almm'),
323 kALMCFMActionModuleFileType =
324 FOUR_CHAR_CODE(
'alma')
331 kALMComponentRsrcType = FOUR_CHAR_CODE(
'thng'),
332 kALMComponentType = FOUR_CHAR_CODE(
'walk')
340 kALMModuleInfoRsrcType = FOUR_CHAR_CODE(
'walk'),
341 kALMModuleInfoOriginalVersion = 0
348 kALMMultiplePerLocation =
350 kALMDescriptionGetsStale =
361 ALMInternalErr = -30049,
362 ALMLocationNotFound = -30048,
363 ALMNoSuchModuleErr = -30047,
364 ALMModuleCommunicationErr = -30046,
365 ALMDuplicateModuleErr = -30045,
366 ALMInstallationErr = -30044,
367 ALMDeferSwitchErr = -30043
374 ALMConfirmRenameConfig = kALMConfirmRename,
375 ALMConfirmReplaceConfig = kALMConfirmReplace
382 kAELocationNotice = kAELocationChangedNoticeKey
386 typedef UInt32 ALMComponentFlagsEnum;
396 #if CALL_NOT_IN_CARBON
475 ALMConfirmChoice *choice, ModalFilterUPP filter);
490 ConstALMModuleTypeListPtr typeList, ModalFilterYDUPP filter,
503 ModalFilterYDUPP filter,
void *yourDataPtr);
515 ConstALMModuleTypeListPtr typeList, ModalFilterYDUPP filter,
520 #if PRAGMA_STRUCT_ALIGN
521 #pragma options align = reset
522 #elif PRAGMA_STRUCT_PACKPUSH
524 #elif PRAGMA_STRUCT_PACK
528 #ifdef PRAGMA_IMPORT_OFF
AppleEvent Package Interfaces.
Component Manager Interfaces.
Dialog Manager interfaces.
ALMNotificationUPP NewALMNotificationUPP(ALMNotificationProcPtr userRoutine)
OSErr ALMRemoveNotifyProc(ALMNotificationUPP notificationProc, const ProcessSerialNumber *whichPSN)
OSErr ALMGetIndLocation(SInt16 index, ALMToken *token, ALMLocationName name)
OSErr ALMSwitchToLocation(ALMToken newLocation, ALMSwitchActionFlags switchFlags)
OSErr ALMRegisterNotifyProc(ALMNotificationUPP notificationProc, const ProcessSerialNumber *whichPSN)
void InvokeALMNotificationUPP(AppleEvent *theEvent, ALMNotificationUPP userUPP)
OSErr ALMGetLocation(ConstStr255Param prompt, ALMLocationName name, ModalFilterYDUPP filter, void *yourDataPtr)
OSErr ALMConfirmName(ConstStr255Param message, Str255 theName, ALMConfirmChoice *choice, ModalFilterUPP filter)
OSErr ALMGetCurrentLocation(SInt16 *index, ALMToken *token, ALMLocationName name)
OSErr ALMPutLocation(ConstStr255Param prompt, ALMLocationName name, SInt16 numTypes, ConstALMModuleTypeListPtr typeList, ModalFilterYDUPP filter, void *yourDataPtr)
void DisposeALMNotificationUPP(ALMNotificationUPP userUPP)
OSErr ALMCountLocations(SInt16 *locationCount)
OSErr ALMMergeLocation(ConstStr255Param prompt, ALMLocationName name, SInt16 numTypes, ConstALMModuleTypeListPtr typeList, ModalFilterYDUPP filter, void *yourDataPtr)
void DisposeRoutineDescriptor(UniversalProcPtr theUPP)
#define STACK_UPP_TYPE(name)
Definition: MixedMode.h:734
UniversalProcPtr NewRoutineDescriptor(ProcPtr theProc, ProcInfoType theProcInfo, ISAType theISA)
Process Manager Interfaces.
Standard File package Interfaces.
Definition: AEDataModel.h:175
Definition: LocationManager.h:275
Definition: LocationManager.h:260
Definition: Processes.h:65