xuibookmarklist.cpp 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #include <precomp.h>
  2. #include "xuibookmarklist.h"
  3. // -----------------------------------------------------------------------
  4. const wchar_t BookmarkListXuiObjectStr[] = L"BookmarkList"; // This is the xml tag
  5. char BookmarkListXuiSvcName[] = "BookmarkList xui object";
  6. XMLParamPair BookmarkList::params[] = {
  7. {BOOKMARKLIST_SET, L""},
  8. };
  9. // -----------------------------------------------------------------------
  10. BookmarkList::BookmarkList() {
  11. myxuihandle = newXuiHandle();
  12. CreateXMLParameters(myxuihandle);
  13. }
  14. void BookmarkList::CreateXMLParameters(int master_handle)
  15. {
  16. //BOOKMARKLIST_PARENT::CreateXMLParameters(master_handle);
  17. int numParams = sizeof(params) / sizeof(params[0]);
  18. hintNumberOfParams(myxuihandle, numParams);
  19. for (int i = 0;i < numParams;i++)
  20. addParam(myxuihandle, params[i], XUI_ATTRIBUTE_IMPLIED);
  21. }
  22. BookmarkList::~BookmarkList()
  23. {
  24. }
  25. // -----------------------------------------------------------------------
  26. int BookmarkList::setXuiParam(int xuihandle, int xmlattributeid, const wchar_t *xmlattributename, const wchar_t *value) {
  27. if (xuihandle != myxuihandle)
  28. return BOOKMARKLIST_PARENT::setXuiParam(xuihandle, xmlattributeid, xmlattributename, value);
  29. switch (xmlattributeid) {
  30. case BOOKMARKLIST_SET:
  31. set(value);
  32. break;
  33. default:
  34. return 0;
  35. }
  36. return 1;
  37. }
  38. // -----------------------------------------------------------------------
  39. void BookmarkList::set(const wchar_t *elementname) {
  40. }