// PerforceClientServiceDlg.h : header file // #if !defined(AFX_PERFORCECLIENTSERVICEDLG_H__459E2730_DABE_4903_A4CE_FAE966ED10EF__INCLUDED_) #define AFX_PERFORCECLIENTSERVICEDLG_H__459E2730_DABE_4903_A4CE_FAE966ED10EF__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #include "resource.h" ///////////////////////////////////////////////////////////////////////////// // CPerforceClientServiceDlg dialog #define WM_TRAY_ICON_NOTIFY_MESSAGE (WM_USER + 1) class CPerforceClientServiceDlg : public CDialog{ public: // Construction public: CPerforceClientServiceDlg(CWnd* pParent = NULL); // standard constructor static void Log(char const * format, ...); // Dialog Data //{{AFX_DATA(CPerforceClientServiceDlg) enum { IDD = IDD_PERFORCECLIENTSERVICE_DIALOG }; CEdit m_log; //}}AFX_DATA // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CPerforceClientServiceDlg) protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support //}}AFX_VIRTUAL // Implementation protected: HICON m_hIcon; // Generated message map functions //{{AFX_MSG(CPerforceClientServiceDlg) virtual BOOL OnInitDialog(); afx_msg void OnSysCommand(UINT nID, LPARAM lParam); afx_msg void OnPaint(); afx_msg HCURSOR OnQueryDragIcon(); afx_msg void OnDestroy(); virtual void OnOK(); afx_msg void OnDirectories(); afx_msg void OnExcludes(); afx_msg LRESULT OnTrayNotify(WPARAM wParam, LPARAM lParam); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_PERFORCECLIENTSERVICEDLG_H__459E2730_DABE_4903_A4CE_FAE966ED10EF__INCLUDED_)
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#3 | 7201 | Jeff Grills | Upgrade to VS2005 and the 2008.2 p4api | ||
#2 | 4963 | Jeff Grills |
Major clean up and code reorganization. Add new dialog to control the directories that are watched. Persist the watched directories in the windows registry. Restore the watched directories when the application is run again. Handle login correctly. Change the way error messages are examined to make them significantly more robust. Issue an "info" command at startup to make sure we can communicate with the server and get logged in. Change the icon to the standard P4 icon. Allow the dialog to be minimized to the systray. Clicking on the systray icon will show the dialog again. |
||
#1 | 4896 | Jeff Grills |
First drop of the PerforceClientService. This version is only barely functional, supporting adds, edits, and deletes. It does not handle multiple operations on the same file gracefully. |