Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

87 lines
3.0 KiB

  1. // PCHSEParamItem.cpp : Implementation of SearchEngine::ParamItem
  2. #include "stdafx.h"
  3. ////////////////////////////////////////////////////////////////////////////////
  4. SearchEngine::ParamItem_Definition2::ParamItem_Definition2()
  5. {
  6. m_pteParamType = PARAM_BSTR; // ParamTypeEnum m_pteParamType;
  7. m_bRequired = VARIANT_FALSE; // VARIANT_BOOL m_bRequired;
  8. m_bVisible = VARIANT_TRUE; // VARIANT_BOOL m_bVisible;
  9. //
  10. m_szName = NULL; // LPCWSTR m_szName;
  11. //
  12. m_iDisplayString = 0; // UINT m_iDisplayString;
  13. m_szDisplayString = NULL; // LPCWSTR m_szDisplayString;
  14. //
  15. m_szData = NULL; // LPCWSTR m_szData;
  16. }
  17. ////////////////////////////////////////////////////////////////////////////////
  18. SearchEngine::ParamItem_Data::ParamItem_Data()
  19. {
  20. m_pteParamType = PARAM_BSTR; // ParamTypeEnum m_pteParamType;
  21. m_bRequired = VARIANT_FALSE; // VARIANT_BOOL m_bRequired;
  22. m_bVisible = VARIANT_TRUE; // VARIANT_BOOL m_bVisible;
  23. // CComBSTR m_bstrDisplayString;
  24. // CComBSTR m_bstrName;
  25. // CComVariant m_varData;
  26. }
  27. /////////////////////////////////////////////////////////////////////////////
  28. // SearchEngine::ParamItem
  29. SearchEngine::ParamItem::ParamItem()
  30. {
  31. // ParamItem_Data m_data;
  32. }
  33. STDMETHODIMP SearchEngine::ParamItem::get_Type( ParamTypeEnum *pVal )
  34. {
  35. __HCP_BEGIN_PROPERTY_GET2("SearchEngine::ParamItem::get_Type",hr,pVal,m_data.m_pteParamType);
  36. __HCP_END_PROPERTY(hr);
  37. }
  38. STDMETHODIMP SearchEngine::ParamItem::get_Display( BSTR *pVal )
  39. {
  40. __HCP_BEGIN_PROPERTY_GET("SearchEngine::ParamItem::get_Display",hr,pVal);
  41. __MPC_EXIT_IF_METHOD_FAILS(hr, MPC::GetBSTR( m_data.m_bstrDisplayString, pVal ));
  42. __HCP_END_PROPERTY(hr);
  43. }
  44. STDMETHODIMP SearchEngine::ParamItem::get_Data( VARIANT *pVal )
  45. {
  46. __HCP_BEGIN_PROPERTY_GET0("SearchEngine::ParamItem::get_Data",hr,pVal);
  47. __MPC_EXIT_IF_METHOD_FAILS(hr, ::VariantCopy( pVal, &m_data.m_varData ));
  48. __HCP_END_PROPERTY(hr);
  49. }
  50. STDMETHODIMP SearchEngine::ParamItem::get_Name( BSTR *pVal )
  51. {
  52. __HCP_BEGIN_PROPERTY_GET("SearchEngine::ParamItem::get_Name",hr,pVal);
  53. __MPC_EXIT_IF_METHOD_FAILS(hr, MPC::GetBSTR( m_data.m_bstrName, pVal ));
  54. __HCP_END_PROPERTY(hr);
  55. }
  56. STDMETHODIMP SearchEngine::ParamItem::get_Required( VARIANT_BOOL *pVal )
  57. {
  58. __HCP_BEGIN_PROPERTY_GET2("SearchEngine::ParamItem::get_Required",hr,pVal,m_data.m_bRequired);
  59. __HCP_END_PROPERTY(hr);
  60. }
  61. STDMETHODIMP SearchEngine::ParamItem::get_Visible( VARIANT_BOOL *pVal )
  62. {
  63. __HCP_BEGIN_PROPERTY_GET2("SearchEngine::ParamItem::get_Visible",hr,pVal,m_data.m_bVisible);
  64. __HCP_END_PROPERTY(hr);
  65. }