Source code of Windows XP (NT5)
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.

121 lines
2.8 KiB

  1. /*++
  2. 1998 Seagate Software, Inc. All rights reserved.
  3. Module Name:
  4. rsrecall.h
  5. Abstract:
  6. This class represents the recall application.
  7. Author:
  8. Rohde Wakefield [rohde] 27-May-1997
  9. Revision History:
  10. --*/
  11. #ifndef _RSRECALL_H_
  12. #define _RSRECALL_H_
  13. #pragma once
  14. // Times are in seconds
  15. #define RSRECALL_TIME_DELAY_DISPLAY 3 // Delay showing dialog
  16. #define RSRECALL_TIME_FOR_STARTUP 5 // Time to allow for app. startup
  17. #define RSRECALL_TIME_MAX_IDLE 3 // Idle time before shutting down app.
  18. // Max concurrent recall popups
  19. #define RSNTFY_REGISTRY_STRING (_T("Software\\Microsoft\\RemoteStorage\\RsNotify"))
  20. #define MAX_CONCURRENT_RECALL_NOTES (_T("ConcurrentRecallNotes"))
  21. #define MAX_CONCURRENT_RECALL_NOTES_DEFAULT 5
  22. /////////////////////////////////////////////////////////////////////////////
  23. // CRecallWnd window
  24. class CRecallWnd : public CFrameWnd
  25. {
  26. // Construction
  27. public:
  28. CRecallWnd();
  29. // Attributes
  30. public:
  31. // Operations
  32. public:
  33. // Overrides
  34. // ClassWizard generated virtual function overrides
  35. //{{AFX_VIRTUAL(CRecallWnd)
  36. //}}AFX_VIRTUAL
  37. // Implementation
  38. public:
  39. virtual ~CRecallWnd();
  40. // Generated message map functions
  41. protected:
  42. //{{AFX_MSG(CRecallWnd)
  43. afx_msg void OnTimer(UINT nIDEvent);
  44. afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  45. //}}AFX_MSG
  46. DECLARE_MESSAGE_MAP()
  47. };
  48. /////////////////////////////////////////////////////////////////////////////
  49. // CRecallApp:
  50. // See rsrecall.cpp for the implementation of this class
  51. //
  52. class CRecallNote;
  53. class CRecallApp : public CWinApp
  54. {
  55. public:
  56. CRecallApp();
  57. // Overrides
  58. // ClassWizard generated virtual function overrides
  59. //{{AFX_VIRTUAL(CRecallApp)
  60. public:
  61. virtual BOOL InitInstance();
  62. virtual int ExitInstance();
  63. //}}AFX_VIRTUAL
  64. // Implementation
  65. // CRecallWnd m_Wnd; // Hidden window needed for MFC to hang around
  66. UINT m_IdleCount; // Number of seconds we've been idle
  67. //{{AFX_MSG(CRecallApp)
  68. // NOTE - the ClassWizard will add and remove member functions here.
  69. // DO NOT EDIT what you see in these blocks of generated code !
  70. //}}AFX_MSG
  71. DECLARE_MESSAGE_MAP()
  72. public:
  73. CList<CRecallNote*, CRecallNote*> m_Recalls;
  74. DWORD m_dwMaxConcurrentNotes;
  75. HRESULT AddRecall( IFsaRecallNotifyServer* );
  76. HRESULT RemoveRecall( IFsaRecallNotifyServer* );
  77. void LockApp( );
  78. void UnlockApp( );
  79. void Tick(void);
  80. };
  81. #define RecApp ((CRecallApp*)AfxGetApp())
  82. /////////////////////////////////////////////////////////////////////////////
  83. /////////////////////////////////////////////////////////////////////////////
  84. //{{AFX_INSERT_LOCATION}}
  85. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  86. //}}AFX
  87. #endif