1 #ifndef _SYSMON_TASKLIST_H_
2 #define _SYSMON_TASKLIST_H_
5 Copyright © 2017, The AROS Development Team. All rights reserved.
9 #include <exec/types.h>
10 #include <libraries/mui.h>
11 #include <zune/customclasses.h>
13 /*** Identifier Base ********************************************************/
14 #define MUIB_Tasklist (TAG_USER | 0x10000000)
16 /*** Public Attributes ******************************************************/
17 #define MUIA_Tasklist_Refreshed (MUIB_Tasklist | 0x00000000)
18 #define MUIA_Tasklist_RefreshMSecs (MUIB_Tasklist | 0x00000001)
19 #define MUIA_Tasklist_ReadyCount (MUIB_Tasklist | 0x00000002)
20 #define MUIA_Tasklist_WaitingCount (MUIB_Tasklist | 0x00000003)
22 /*** Public Methods *********************************************************/
23 #define MUIM_Tasklist_Refresh (MUIB_Tasklist | 0x00000000)
25 /*** Private Methods ********************************************************/
26 #define MUIM_Tasklist_HandleTimer (MUIB_Tasklist | 0x00000001)
28 /*** Public Constants ********************************************************/
29 #define MUIV_Tasklist_Refresh_Slow 2000
30 #define MUIV_Tasklist_Refresh_Normal 1000
31 #define MUIV_Tasklist_Refresh_Fast 500
33 /*** Private Constants ********************************************************/
35 extern struct MUI_CustomClass
*Tasklist_CLASS
;
37 /*** Macros *****************************************************************/
39 #define TasklistObject BOOPSIOBJMACRO_START(Tasklist_CLASS->mcc_Class)
41 /* this macro is based on the ZUNE_CUSTOMCLASS_xx macros from zune/customclasses.h
42 and temporarily placed here */
43 #define TASKLIST_CUSTOMCLASS(name, base, parent_name, parent_class, \
53 __ZUNE_CUSTOMCLASS_START(name) \
54 __ZUNE_CUSTOMCLASS_METHOD(name ## __ ## m1, m1, m1_msg_type); \
55 __ZUNE_CUSTOMCLASS_METHOD(name ## __ ## m2, m2, m2_msg_type); \
56 __ZUNE_CUSTOMCLASS_METHOD(name ## __ ## m3, m3, m3_msg_type); \
57 __ZUNE_CUSTOMCLASS_METHOD(name ## __ ## m4, m4, m4_msg_type); \
58 __ZUNE_CUSTOMCLASS_METHOD(name ## __ ## m5, m5, m5_msg_type); \
59 __ZUNE_CUSTOMCLASS_METHOD(name ## __ ## m6, m6, m6_msg_type); \
60 __ZUNE_CUSTOMCLASS_METHOD(name ## __ ## m7, m7, m7_msg_type); \
61 __ZUNE_CUSTOMCLASS_METHOD(name ## __ ## m8, m8, m8_msg_type); \
62 __ZUNE_CUSTOMCLASS_METHOD(name ## __ ## m9, m9, m9_msg_type); \
63 __ZUNE_CUSTOMCLASS_END(name, base, parent_name, parent_class) \
65 #endif /* _SYSMON_TASKLIST_H_ */