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.

116 lines
2.6 KiB

  1. /**********************************************************************/
  2. /** Microsoft Windows NT **/
  3. /** Copyright(c) Microsoft Corp., 1991 **/
  4. /**********************************************************************/
  5. /*
  6. volprop.hxx
  7. This file contains the VOLUME_PROPERTIES_DIALOG class definition
  8. FILE HISTORY:
  9. NarenG 11/19/92 Modified SHARE_DIALOG_BASE for AFPMGR.
  10. */
  11. #ifndef _VOLPROP_HXX_
  12. #define _VOLPROP_HXX_
  13. #include <ellipsis.hxx>
  14. //
  15. // Should be 8 (AFP_VOLPASS_LEN) blanks
  16. //
  17. #define AFP_NULL_PASSWORD TEXT(" ")
  18. /*************************************************************************
  19. NAME: VOLUME_PROPERTIES_DIALOG
  20. SYNOPSIS: The class for volume properties dialog contained in the file
  21. manager or server manager. It contains the magic group
  22. for User Limit, SLT for the path, checkboxes for volume
  23. properties, the OK, Cancel, Permissions button.
  24. admin information.
  25. INTERFACE: VOLUME_PROPERTIES_DIALOG() - Constructor
  26. PARENT: DIALOG_WINDOW
  27. USES: SLT, SLE, MAGIC_GROUP, SPIN_SLE_NUM, SPIN_GROUP, PUSH_BUTTON
  28. CAVEATS:
  29. NOTES:
  30. HISTORY:
  31. NarenG 11/18/92 Modified for AFPMGR
  32. **************************************************************************/
  33. class VOLUME_PROPERTIES_DIALOG : public DIALOG_WINDOW
  34. {
  35. private:
  36. SLT_ELLIPSIS _sltpVolumeName;
  37. SLT_ELLIPSIS _sltpVolumePath;
  38. SLE _slePassword;
  39. SLE _slePasswordConfirm;
  40. CHECKBOX _chkReadOnly;
  41. CHECKBOX _chkGuestAccess;
  42. MAGIC_GROUP _mgrpUserLimit;
  43. SPIN_SLE_NUM _spsleUsers;
  44. SPIN_GROUP _spgrpUsers;
  45. PUSH_BUTTON _pbPermissions;
  46. PUSH_BUTTON _pbOK;
  47. PUSH_BUTTON _pbCancel;
  48. NLS_STR _nlsVolumePath;
  49. NLS_STR _nlsServerName;
  50. NLS_STR _nlsVolumeName;
  51. BOOL _fCalledBySrvMgr;
  52. BOOL _fPasswordChanged;
  53. //
  54. // Represents the target server
  55. //
  56. AFP_SERVER_HANDLE _hServer;
  57. protected:
  58. virtual BOOL OnCommand( const CONTROL_EVENT & event );
  59. virtual BOOL OnOK( VOID );
  60. virtual ULONG QueryHelpContext( VOID );
  61. //
  62. // Query or set the contents of User Limit
  63. //
  64. DWORD QueryUserLimit( VOID ) const;
  65. BOOL IsVolumePathValid( NLS_STR * pnlsPath );
  66. VOID SetUserLimit( DWORD dwUserLimit );
  67. VOID SetFocusOnPasswordConfirm( VOID )
  68. { _slePasswordConfirm.ClaimFocus(); _slePasswordConfirm.SelectString();}
  69. public:
  70. VOLUME_PROPERTIES_DIALOG( HWND hwndParent,
  71. AFP_SERVER_HANDLE hServer,
  72. const TCHAR * pszVolumeName,
  73. const TCHAR * pszServerName,
  74. BOOL fCalledBySrvMgr );
  75. };
  76. #endif