2 Copyright © 1995-2003, The AROS Development Team. All rights reserved.
6 #define MUIMASTER_YES_INLINE_STDARG
9 #include <aros/debug.h>
11 #include <exec/types.h>
12 #include <intuition/classes.h>
13 #include <intuition/classusr.h>
14 #include <libraries/mui.h>
17 #include "desktop_intern.h"
19 #include <proto/dos.h>
20 #include <proto/intuition.h>
21 #include <proto/utility.h>
23 #include "operationclass.h"
25 #include "desktop_intern_protos.h"
27 IPTR
operationNew(Class
* cl
, Object
* obj
, struct opSet
* msg
)
30 struct OperationClassData
*data
;
31 //struct TagItem *tag;
33 retval
= DoSuperMethodA(cl
, obj
, (Msg
) msg
);
36 obj
= (Object
*) retval
;
37 data
= INST_DATA(cl
, obj
);
43 IPTR
operationSet(Class
* cl
, Object
* obj
, struct opSet
* msg
)
45 struct OperationClassData
*data
;
48 *tstate
= msg
->ops_AttrList
;
50 data
= (struct OperationClassData
*) INST_DATA(cl
, obj
);
52 while ((tag
= NextTagItem(&tstate
)))
61 retval
= DoSuperMethodA(cl
, obj
, (Msg
) msg
);
66 IPTR
operationGet(Class
* cl
, Object
* obj
, struct opGet
* msg
)
69 struct OperationClassData
*data
;
71 data
= (struct OperationClassData
*) INST_DATA(cl
, obj
);
73 switch (msg
->opg_AttrID
)
76 retval
= DoSuperMethodA(cl
, obj
, (Msg
) msg
);
83 IPTR
operationDispose(Class
* cl
, Object
* obj
, Msg msg
)
87 retval
= DoSuperMethodA(cl
, obj
, msg
);
92 BOOPSI_DISPATCHER(IPTR
, operationDispatcher
, cl
, obj
, msg
)
96 switch (msg
->MethodID
)
99 retval
= operationNew(cl
, obj
, (struct opSet
*) msg
);
102 retval
= operationSet(cl
, obj
, (struct opSet
*) msg
);
105 retval
= operationGet(cl
, obj
, (struct opGet
*) msg
);
108 retval
= operationDispose(cl
, obj
, msg
);
111 retval
= DoSuperMethodA(cl
, obj
, msg
);
117 BOOPSI_DISPATCHER_END