Team Fortress 2 Source Code as on 22/4/2020
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.

86 lines
2.1 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //
  7. //=============================================================================//
  8. #if !defined(AFX_JOBSEARCHDLG_H__833A83FF_35CC_42B5_AEB3_AE31C7FDF492__INCLUDED_)
  9. #define AFX_JOBSEARCHDLG_H__833A83FF_35CC_42B5_AEB3_AE31C7FDF492__INCLUDED_
  10. #if _MSC_VER > 1000
  11. #pragma once
  12. #endif // _MSC_VER > 1000
  13. // JobSearchDlg.h : header file
  14. //
  15. #include "resource.h"
  16. #include "imysqlwrapper.h"
  17. #include "window_anchor_mgr.h"
  18. /////////////////////////////////////////////////////////////////////////////
  19. // CJobSearchDlg dialog
  20. class CJobSearchDlg : public CDialog
  21. {
  22. // Construction
  23. public:
  24. CJobSearchDlg(CWnd* pParent = NULL); // standard constructor
  25. virtual ~CJobSearchDlg();
  26. // Dialog Data
  27. //{{AFX_DATA(CJobSearchDlg)
  28. enum { IDD = IDD_VMPI_JOB_SEARCH };
  29. CListBox m_WorkerList;
  30. CListBox m_UserList;
  31. CListCtrl m_JobsList;
  32. //}}AFX_DATA
  33. // Overrides
  34. // ClassWizard generated virtual function overrides
  35. //{{AFX_VIRTUAL(CJobSearchDlg)
  36. protected:
  37. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  38. //}}AFX_VIRTUAL
  39. // Implementation
  40. protected:
  41. void ClearJobsList();
  42. void RepopulateJobsList();
  43. void PopulateWorkerList( CUtlVector<char*> &computerNames );
  44. void PopulateUserList( CUtlVector<char*> &computerNames );
  45. int GetSelectedJobIndex();
  46. // Info on how we connected to the database so we can pass it to apps we launch.
  47. CString m_DBName, m_HostName, m_UserName;
  48. IMySQL* GetMySQL() { return m_pSQL; }
  49. IMySQL *m_pSQL;
  50. CSysModule *m_hMySQLDLL;
  51. CWindowAnchorMgr m_AnchorMgr;
  52. // Generated message map functions
  53. //{{AFX_MSG(CJobSearchDlg)
  54. afx_msg void OnDblclkJobsList(NMHDR* pNMHDR, LRESULT* pResult);
  55. afx_msg void OnDblclkUserList();
  56. afx_msg void OnDblclkWorkerList();
  57. virtual BOOL OnInitDialog();
  58. afx_msg void OnQuit();
  59. afx_msg void OnSize(UINT nType, int cx, int cy);
  60. //}}AFX_MSG
  61. DECLARE_MESSAGE_MAP()
  62. };
  63. //{{AFX_INSERT_LOCATION}}
  64. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  65. #endif // !defined(AFX_JOBSEARCHDLG_H__833A83FF_35CC_42B5_AEB3_AE31C7FDF492__INCLUDED_)