Fixed building of catalogs.
[AROS.git] / workbench / classes / zune / nlist / nbalance_mcc / Dispatcher.c
blob67e92309caff9477ae946c20e76c12af441b255c
1 /***************************************************************************
3 NBalance.mcc - New Balance MUI Custom Class
4 Copyright (C) 2008-2013 by NList Open Source Team
6 This library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Lesser General Public
8 License as published by the Free Software Foundation; either
9 version 2.1 of the License, or (at your option) any later version.
11 This library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Lesser General Public License for more details.
16 NList classes Support Site: http://www.sf.net/projects/nlist-classes
18 $Id$
20 ***************************************************************************/
22 /* ansi includes */
23 #include <string.h>
25 /* system includes */
26 #include <clib/alib_protos.h>
27 #include <proto/exec.h>
28 #include <proto/intuition.h>
29 #include <proto/muimaster.h>
30 #include <proto/graphics.h>
31 #include <proto/utility.h>
32 #include <proto/locale.h>
34 /* local includes */
35 #include "NBalance.h"
36 #include "private.h"
37 #include "Debug.h"
39 DISPATCHER(_Dispatcher)
41 IPTR result;
43 ENTER();
45 switch(msg->MethodID)
47 case OM_NEW:
48 result = mNew(cl, obj, (struct opSet *)msg);
49 break;
51 case OM_SET:
52 result = mSet(cl, obj, msg);
53 break;
55 case OM_GET:
56 result = mGet(cl, obj, msg);
57 break;
59 case MUIM_Setup:
60 result = mSetup(cl, obj, (struct MUI_RenderInfo *)msg);
61 break;
63 case MUIM_Cleanup:
64 result = mCleanup(cl, obj, msg);
65 break;
67 case MUIM_Hide:
68 result = mHide(cl, obj, msg);
69 break;
71 case MUIM_HandleEvent:
72 result = mHandleEvent(cl, obj, (struct MUIP_HandleEvent *)msg);
73 break;
75 case MUIM_Export:
76 result = mExport(cl, obj, (struct MUIP_Export *)msg);
77 break;
79 case MUIM_Import:
80 result = mImport(cl, obj, (struct MUIP_Import *)msg);
81 break;
83 default:
84 result = DoSuperMethodA(cl, obj, msg);
85 break;
88 RETURN(result);
89 return result;