00001 /******************************************************************** 00002 00003 Copyright 2006, ACCESS Systems Americas, Inc. All rights reserved. 00004 00005 The contents of this file are subject to the Mozilla Public License Version 00006 1.1 (the "License"); you may not use this file except in compliance with 00007 the License. You may obtain a copy of the License at 00008 http://www.mozilla.org/MPL/ 00009 00010 Software distributed under the License is distributed on an "AS IS" basis, 00011 WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License 00012 for the specific language governing rights and limitations under the 00013 License. 00014 00015 The Original Code is the entire contents of this file. 00016 00017 The Initial Developer of the Original Code is ACCESS Systems Americas, Inc. 00018 00019 Portions created by ACCESS Systems Americas, Inc. are Copyright © 2006. All 00020 Rights Reserved. 00021 00022 Contributor(s): none. 00023 00024 ********************************************************************/ 00032 #ifndef __ALP_ATTN_ALERT_H__ 00033 #define __ALP_ATTN_ALERT_H__ 00034 00040 /* 00041 * alert attribute flags 00042 */ 00043 /* where to display alert */ 00044 #define ALP_ATTN_ATTR_DISPLAY_ALERT 0x00000001 /* brings an alert up */ 00045 #define ALP_ATTN_ATTR_DISPLAY_LIST 0x00000002 /* shows on list */ 00046 #define ALP_ATTN_ATTR_DISPLAY_SECONDARY 0x00000004 /* shows on secondary display */ 00047 00048 /* type of display (up to 16 types 0-15) */ 00049 #define ALP_ATTN_ATTR_TYPE_MASK 0x00000F00 /* mask to extract type */ 00050 #define ALP_ATTN_ATTR_TYPE_ATTN 0x00000000 /* attention alert */ 00051 #define ALP_ATTN_ATTR_TYPE_PROGRESS 0x00000100 /* progress alert */ 00052 #define ALP_ATTN_ATTR_TYPE_ASYNC 0x00000200 /* async alert */ 00053 #define ALP_ATTN_ATTR_TYPE_TEST 0x00000F00 /* test attn */ 00054 00055 /* misc. control */ 00056 #define ALP_ATTN_ATTR_DELETE_ON_BOOT 0x00001000 /* delete on boot */ 00057 #define ALP_ATTN_ATTR_DELETE_ON_EXPIRE 0x00002000 /* delete on ttl exceeded*/ 00058 #define ALP_ATTN_ATTR_DELETE_ON_SLEEP 0x00004000 /* delete on sys sleep */ 00059 /* or maybe DELETE_ON_WAKEUP ??? */ 00060 00061 #define ALP_ATTN_ATTR_IS_NOT_MODAL 0x00010000 /* whether or not dialog is modal */ 00062 #define ALP_ATTN_ATTR_HAS_CLOSE 0x00020000 /* whether or not dialog has close btn */ 00063 #define ALP_ATTN_ATTR_NAVIGATE_AWAY 0x00040000 /* looking for a better term */ 00064 #define ALP_ATTN_ATTR_DIRECT 0x00080000 /* send alert data to ui direct - no db */ 00065 /* not sure how this work since not always possible to start ui - it's async ya know */ 00066 00067 /* alert effects */ 00068 #define ALP_ATTN_ATTR_SOUND 0x00100000 00069 #define ALP_ATTN_ATTR_VIBRATE 0x00200000 00070 #define ALP_ATTN_ATTR_LEDS 0x00400000 00071 #define ALP_ATTN_ATTR_CUSTOM_1 0x00800000 00072 #define ALP_ATTN_ATTR_CUSTOM_2 0x01000000 00073 #define ALP_ATTN_ATTR_CUSTOM_3 0x02000000 00074 00075 /* class attribute flags */ 00076 #define ALP_ATTN_CLASS_DISPLAY_RECENT 0x00000001 /* cause most recent alert to come up */ 00077 00078 #endif /* __ALP_ATTN_ALERT_H__ */