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>
15 #include <libraries/desktop.h>
18 #include "desktop_intern.h"
20 #include <proto/dos.h>
21 #include <proto/intuition.h>
22 #include <proto/utility.h>
24 #include "internaldesktopopsclass.h"
25 #include "iconclass.h"
27 #include "desktop_intern_protos.h"
29 IPTR
internalDesktopOpsNew(Class
* cl
, Object
* obj
, struct opSet
* msg
)
32 struct InternalDesktopOpsClassData
*data
;
33 //struct TagItem *tag;
35 retval
= DoSuperMethodA(cl
, obj
, (Msg
) msg
);
38 obj
= (Object
*) retval
;
39 data
= INST_DATA(cl
, obj
);
45 IPTR
internalDesktopOpsSet(Class
* cl
, Object
* obj
, struct opSet
* msg
)
47 struct InternalDesktopOpsClassData
*data
;
50 *tstate
= msg
->ops_AttrList
;
52 data
= (struct InternalDesktopOpsClassData
*) INST_DATA(cl
, obj
);
54 while ((tag
= NextTagItem(&tstate
)))
63 retval
= DoSuperMethodA(cl
, obj
, (Msg
) msg
);
68 IPTR
internalDesktopOpsGet(Class
* cl
, Object
* obj
, struct opGet
* msg
)
71 struct InternalDesktopOpsClassData
*data
;
73 data
= (struct InternalDesktopOpsClassData
*) INST_DATA(cl
, obj
);
75 switch (msg
->opg_AttrID
)
78 retval
= DoSuperMethodA(cl
, obj
, (Msg
) msg
);
85 IPTR
internalDesktopOpsDispose(Class
* cl
, Object
* obj
, Msg msg
)
89 retval
= DoSuperMethodA(cl
, obj
, msg
);
94 IPTR
internalDesktopOpsExecute(Class
* cl
, Object
* obj
,
95 struct opExecute
* msg
)
98 struct InternalDesktopOpsClassData
*data
;
100 data
= (struct InternalDesktopOpsClassData
*) INST_DATA(cl
, obj
);
102 switch (msg
->operationCode
)
105 case (DOC_DESKTOPOP
| 1):
106 // hmmmmmmmmmm... how will this work???
113 BOOPSI_DISPATCHER(IPTR
, internalDesktopOpsDispatcher
, cl
, obj
, msg
)
117 switch (msg
->MethodID
)
120 retval
= internalDesktopOpsNew(cl
, obj
, (struct opSet
*) msg
);
123 retval
= internalDesktopOpsSet(cl
, obj
, (struct opSet
*) msg
);
126 retval
= internalDesktopOpsGet(cl
, obj
, (struct opGet
*) msg
);
129 retval
= internalDesktopOpsDispose(cl
, obj
, msg
);
133 internalDesktopOpsExecute(cl
, obj
, (struct opExecute
*) msg
);
136 retval
= DoSuperMethodA(cl
, obj
, msg
);
142 BOOPSI_DISPATCHER_END