2 * Copyright (c) 2000-2006 Apple Computer, Inc. All rights reserved.
4 * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
6 * This file contains Original Code and/or Modifications of Original Code
7 * as defined in and that are subject to the Apple Public Source License
8 * Version 2.0 (the 'License'). You may not use this file except in
9 * compliance with the License. The rights granted to you under the License
10 * may not be used to create, or enable the creation or redistribution of,
11 * unlawful or unlicensed copies of an Apple operating system, or to
12 * circumvent, violate, or enable the circumvention or violation of, any
13 * terms of an Apple operating system software license agreement.
15 * Please obtain a copy of the License at
16 * http://www.opensource.apple.com/apsl/ and read it before using this file.
18 * The Original Code and all software distributed under the License are
19 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
20 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
21 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
22 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
23 * Please see the License for the specific language governing rights and
24 * limitations under the License.
26 * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
32 #endif /* KERNEL_USER */
35 #include <mach/std_types.defs>
36 #include <UserNotification/UNDTypes.defs>
40 -- Messages sent by the UserNotification Client to the Server
43 /* Execution information */
44 simpleroutine UNDExecute_rpc(
46 in executionPath: UNDPath;
50 /* Bundle notice and bundle alert */
52 simpleroutine UNDDisplayNoticeFromBundle_rpc(
54 in reply: UNDReplyRef;
55 in bundlePath: UNDPath;
57 in fileExtension: UNDPath;
58 in messageKey: UNDKey);
60 simpleroutine UNDDisplayAlertFromBundle_rpc(
62 in reply: UNDReplyRef;
63 in bundlePath: UNDPath;
65 in fileExtension: UNDKey;
66 in messageKey: UNDKey);
68 simpleroutine UNDDisplayCustomFromBundle_rpc(
70 in reply: UNDReplyRef;
71 in bundlePath: UNDPath;
73 in fileExtension: UNDKey;
74 in messageKey: UNDKey;
75 in tokenKey: UNDPath);
77 simpleroutine UNDDisplayCustomFromDictionary_rpc(
79 in reply: UNDReplyRef;
82 simpleroutine UNDCancelNotification_rpc(
84 in userLandNotificationKey: int);
87 * Just pops up a notice with a single OK button and the label and message
88 * specified below. As such, there is no acknowledgement from the server.
90 simpleroutine UNDDisplayNoticeSimple_rpc(
95 in soundPath:UNDLabel;
96 in localizationPath:UNDLabel;
98 in message: UNDMessage;
99 in defaultButtonTitle:UNDLabel);
102 * A synchronous routine to display an alert. This will wait for the
103 * result to come back. As this can take an exceedingly long time to
104 * complete (and will block the calling thread for the duration) great
105 * care should be exercised before using this method.
107 routine UNDDisplayAlertSimple_rpc(
108 server: UNDServerRef;
111 in iconPath:UNDLabel;
112 in soundPath:UNDLabel;
113 in localizationPath:UNDLabel;
115 in message: UNDMessage;
116 in defaultButtonTitle:UNDLabel;
117 in alternateButtonTitle:UNDLabel;
118 in otherButtonTitle:UNDLabel;
119 out response: unsigned);
121 /* vim: set ft=c : */