2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * The contents of this file constitute Original Code as defined in and
7 * are subject to the Apple Public Source License Version 1.1 (the
8 * "License"). You may not use this file except in compliance with the
9 * License. Please obtain a copy of the License at
10 * http://www.apple.com/publicsource and read it before using this file.
12 * This Original Code and all software distributed under the License are
13 * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
14 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
15 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
17 * License for the specific language governing rights and limitations
20 * @APPLE_LICENSE_HEADER_END@
26 #endif /* KERNEL_USER */
29 #include <mach/std_types.defs>
30 #include <UserNotification/UNDTypes.defs>
34 -- Messages sent by the UserNotification Client to the Server
37 /* Execution information */
38 simpleroutine UNDExecute_rpc(
40 in executionPath: UNDPath;
44 /* Bundle notice and bundle alert */
46 simpleroutine UNDDisplayNoticeFromBundle_rpc(
48 in reply: UNDReplyRef;
49 in bundlePath: UNDPath;
51 in fileExtension: UNDPath;
52 in messageKey: UNDKey);
54 simpleroutine UNDDisplayAlertFromBundle_rpc(
56 in reply: UNDReplyRef;
57 in bundlePath: UNDPath;
59 in fileExtension: UNDKey;
60 in messageKey: UNDKey);
62 simpleroutine UNDDisplayCustomFromBundle_rpc(
64 in reply: UNDReplyRef;
65 in bundlePath: UNDPath;
67 in fileExtension: UNDKey;
68 in messageKey: UNDKey;
69 in tokenKey: UNDPath);
71 simpleroutine UNDDisplayCustomFromDictionary_rpc(
73 in reply: UNDReplyRef;
76 simpleroutine UNDCancelNotification_rpc(
78 in userLandNotificationKey: int);
81 * Just pops up a notice with a single OK button and the label and message
82 * specified below. As such, there is no acknowledgement from the server.
84 simpleroutine UNDDisplayNoticeSimple_rpc(
89 in soundPath:UNDLabel;
90 in localizationPath:UNDLabel;
92 in message: UNDMessage;
93 in defaultButtonTitle:UNDLabel);
96 * A synchronous routine to display an alert. This will wait for the
97 * result to come back. As this can take an exceedingly long time to
98 * complete (and will block the calling thread for the duration) great
99 * care should be exercised before using this method.
101 routine UNDDisplayAlertSimple_rpc(
102 server: UNDServerRef;
105 in iconPath:UNDLabel;
106 in soundPath:UNDLabel;
107 in localizationPath:UNDLabel;
109 in message: UNDMessage;
110 in defaultButtonTitle:UNDLabel;
111 in alternateButtonTitle:UNDLabel;
112 in otherButtonTitle:UNDLabel;