customobject.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. #ifndef __CUSTOMOBJECT_H
  2. #define __CUSTOMOBJECT_H
  3. #include <bfc/dispatch.h>
  4. #include <bfc/common.h>
  5. class ifc_window;
  6. // {F5527A4F-C910-48c2-A80B-98A60D317F35}
  7. const GUID customObjectGuid =
  8. { 0xf5527a4f, 0xc910, 0x48c2, { 0xa8, 0xb, 0x98, 0xa6, 0xd, 0x31, 0x7f, 0x35 } };
  9. /**
  10. Class
  11. @short
  12. @author Nullsoft
  13. @ver 1.0
  14. @see
  15. */
  16. class CustomObject : public Dispatchable {
  17. public:
  18. /**
  19. Method
  20. @see
  21. @ret
  22. @param
  23. */
  24. void customobject_setRootWnd(ifc_window *w);
  25. enum {
  26. CUSTOMOBJECT_SETROOTWND=10,
  27. CUSTOMOBJECT_GETROOTWND=20,
  28. };
  29. };
  30. inline void CustomObject::customobject_setRootWnd(ifc_window *w) {
  31. /**
  32. Method
  33. @see
  34. @ret
  35. @param
  36. */
  37. _voidcall(CUSTOMOBJECT_SETROOTWND, w);
  38. }
  39. /**
  40. Class
  41. @short
  42. @author Nullsoft
  43. @ver 1.0
  44. @see
  45. */
  46. class CustomObjectI : public CustomObject {
  47. public:
  48. /**
  49. Method
  50. @see
  51. @ret
  52. @param
  53. */
  54. virtual void customobject_setRootWnd(ifc_window *w)=0;
  55. protected:
  56. RECVS_DISPATCH;
  57. };
  58. #endif