svcwndhold.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #ifndef _SVCWNDHOLD_H
  2. #define _SVCWNDHOLD_H
  3. #include <api/wnd/wndclass/rootwndholder.h>
  4. #include <bfc/common.h>
  5. class svc_windowCreate;
  6. // for some reason if this derives from virtualwnd typesheet won't show it
  7. #define SERVICEWNDHOLDER_PARENT RootWndHolder
  8. /**
  9. class ServiceWndHolder .
  10. @short
  11. @author Nullsoft
  12. @ver 1.0
  13. @see
  14. */
  15. class ServiceWndHolder : public SERVICEWNDHOLDER_PARENT {
  16. public:
  17. /**
  18. ServiceWndHolder constructor .
  19. @param _child A pointer to the child we want to set.
  20. @param _svc A pointer to the window creation service associated with the window we want to set as a child.
  21. */
  22. ServiceWndHolder(ifc_window *child=NULL, svc_windowCreate *svc=NULL);
  23. /**
  24. ServiceWndHolder destructor
  25. */
  26. virtual ~ServiceWndHolder();
  27. /**
  28. ServiceWndHolder method setChild .
  29. @ret 1
  30. @param _child A pointer to the child we want to set.
  31. @param _svc A pointer to the window creation service associated with the window we want to set as a child.
  32. */
  33. int setChild(ifc_window *child, svc_windowCreate *svc);
  34. virtual ifc_window *rootwndholder_getRootWnd();
  35. private:
  36. ifc_window *child;
  37. svc_windowCreate *svc;
  38. };
  39. #endif