OpenFileObject.cs 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /* Copyright (C) 2014-2017 Tal Aloni <tal.aloni.il@gmail.com>. All rights reserved.
  2. *
  3. * You can redistribute this program and/or modify it under the terms of
  4. * the GNU Lesser Public License as published by the Free Software Foundation,
  5. * either version 3 of the License, or (at your option) any later version.
  6. */
  7. using System;
  8. using System.Collections.Generic;
  9. using System.IO;
  10. namespace SMBLibrary.Server
  11. {
  12. internal class OpenFileObject
  13. {
  14. private uint m_treeID;
  15. private string m_shareName;
  16. private string m_path;
  17. private object m_handle;
  18. private DateTime m_openedDT;
  19. public OpenFileObject(uint treeID, string shareName, string path, object handle)
  20. {
  21. m_treeID = treeID;
  22. m_shareName = shareName;
  23. m_path = path;
  24. m_handle = handle;
  25. m_openedDT = DateTime.Now;
  26. }
  27. public uint TreeID
  28. {
  29. get
  30. {
  31. return m_treeID;
  32. }
  33. }
  34. public string ShareName
  35. {
  36. get
  37. {
  38. return m_shareName;
  39. }
  40. }
  41. public string Path
  42. {
  43. get
  44. {
  45. return m_path;
  46. }
  47. set
  48. {
  49. m_path = value;
  50. }
  51. }
  52. public object Handle
  53. {
  54. get
  55. {
  56. return m_handle;
  57. }
  58. }
  59. public DateTime OpenedDT
  60. {
  61. get
  62. {
  63. return m_openedDT;
  64. }
  65. }
  66. }
  67. }