FPEnums.cs 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  1. namespace System.Fire.FilePack.FilePackElements {
  2. /// <summary>
  3. /// FilePack Version
  4. /// </summary>
  5. public enum eVersion : byte {
  6. /// <summary>Nicht unterstützte Version</summary>
  7. Unsuported = 0,
  8. /// <summary>Version 1.0</summary>
  9. Version_1_0 = 10
  10. }
  11. public enum FPCommentType : byte {
  12. Not_Set = 0,
  13. TextComment = 1,
  14. Homepage = 2,
  15. Icon = 3,
  16. Email = 4,
  17. Company = 5,
  18. Version = 6,
  19. ShortTextComment = 7,
  20. Address = 8,
  21. Image = 9,
  22. Tag = 10,
  23. FileComment = 20,
  24. FileTag = 21,
  25. FileByteArray = 22,
  26. ShortFileComment = 23,
  27. FileIcon = 24,
  28. FileImage = 25
  29. }
  30. /// <summary>
  31. /// Definition des Daten-Typs
  32. /// </summary>
  33. public enum DataType {
  34. /// <summary>Datensatz ist eine String Zeichenkette</summary>
  35. dtString = 20,
  36. /// <summary>Datensatz ist ein Bild</summary>
  37. dtImage = 21,
  38. /// <summary>Datensatz ist eine Zahl</summary>
  39. dtInteger = 22,
  40. /// <summary>Datensatz ist eine positive Zahl</summary>
  41. dtUInteger = 23,
  42. /// <summary>Datensatz ist ein Byte</summary>
  43. dtByte = 24,
  44. /// <summary>Datensatz ist ein eine 2-Bit Zahl</summary>
  45. dtShort = 25,
  46. /// <summary>Datensatz ist eine positive 2-Bit Zahl</summary>
  47. dtUShort = 26,
  48. /// <summary>Datensatz ist eine 6-Bit Zahl</summary>
  49. dtLong = 27,
  50. /// <summary>Datensatz ist eine positive 6-Bit Zahl</summary>
  51. dtULong = 28,
  52. /// <summary>Datensatz ist eine 8-Bit Gleitkomma-Zahl</summary>
  53. dtDecimal = 29,
  54. /// <summary>Datensatz ist ein Byte-Array</summary>
  55. dtByteArray = 32,
  56. /// <summary>Datensatz ist ein Binär-Daten-Array</summary>
  57. dtBinaryData = 33,
  58. /// <summary>Datensatz ist ein nicht unterstütztes Bild</summary>
  59. dtUnsuportImage = 34,
  60. /// <summary>Datensatz ist ein Video-Container</summary>
  61. dtVideo = 35,
  62. /// <summary>Datensatz ist ein Audio-Container</summary>
  63. dtAudio = 36,
  64. /// <summary>Datensatz ist eine Farbe</summary>
  65. dtColor = 40,
  66. /// <summary>Quelltext Datei Readable</summary>
  67. dtSourceCode = 50,
  68. /// <summary>INI Configuration File</summary>
  69. dtConfiguration = 51,
  70. /// <summary>Executeable</summary>
  71. dtExecuteable = 52
  72. }
  73. /// <summary>Einstellungen des Archives</summary>
  74. [Flags()]
  75. public enum eSet : byte {
  76. /// <summary>Es wird ein Passwort benutzt</summary>
  77. UsePassword = 1,
  78. /// <summary>Der Datensatz ist verschlüsselt</summary>
  79. Crypt = 2,
  80. /// <summary>Der Datensatz ist kompremiert</summary>
  81. Data_GZip = 4,
  82. /// <summary>Der Text-Block ist kompremiert</summary>
  83. Text_GZip = 8,
  84. /// <summary>Das Archiv ist vor Exportieren geschützt</summary>
  85. ExportLocked = 32,
  86. /// <summary>Dateiendungen werden mit exportiert</summary>
  87. Extantions = 64
  88. }
  89. /// <summary>Klasse für FilePack-Einstellungen</summary>
  90. public struct CreateSetting {
  91. private bool _UsePassword;
  92. private bool _Crypt;
  93. private bool _TextGZip;
  94. private bool _DataGZip;
  95. private bool _Extantions;
  96. private bool _LockExport;
  97. private string _Password;
  98. /// <summary>Erstellt eine neue XY - Class</summary>
  99. /// <param name="New_UsePassword">Argument für UsePassword (Boolean)</param>
  100. /// <param name="New_Crypt">Argument für Crypt (Boolean)</param>
  101. /// <param name="New_TextGZip">Argument für TextGZip (Boolean)</param>
  102. /// <param name="New_DataGZip">Argument für DataGZip (Boolean)</param>
  103. /// <param name="New_Extantions">Argument für Extantions (Boolean)</param>
  104. /// <param name="New_LockExport">Argument für LockExport (Boolean)</param>
  105. /// <param name="New_Password">Argument für Password (String)</param>
  106. /// <remark></remark>
  107. public CreateSetting(bool New_UsePassword, bool New_Crypt, bool New_TextGZip, bool New_DataGZip, bool New_Extantions, bool New_LockExport, string New_Password) {
  108. this._UsePassword = New_UsePassword;
  109. this._Crypt = New_Crypt;
  110. this._TextGZip = New_TextGZip;
  111. this._DataGZip = New_DataGZip;
  112. this._Extantions = New_Extantions;
  113. this._LockExport = New_LockExport;
  114. this._Password = New_Password;
  115. }
  116. /// <summary>Erstellt eine neue XY - Class</summary>
  117. /// <remark></remark>
  118. public CreateSetting(string New_Password) {
  119. this._UsePassword = true;
  120. this._Crypt = true;
  121. this._TextGZip = false;
  122. this._DataGZip = false;
  123. this._Extantions = true;
  124. this._LockExport = false;
  125. this._Password = New_Password;
  126. }
  127. /// <summary>Erstellt eine neue XY - Class</summary>
  128. /// <param name="New_Crypt">Argument für Crypt (Boolean)</param>
  129. /// <remark></remark>
  130. public CreateSetting(bool New_Crypt) {
  131. this._UsePassword = false;
  132. this._Crypt = New_Crypt;
  133. this._TextGZip = false;
  134. this._DataGZip = false;
  135. this._Extantions = true;
  136. this._LockExport = false;
  137. this._Password = "";
  138. }
  139. /// <summary>Ruft den Wert für UsePassword vom Typ Boolean ab, oder legt ihn fest</summary>
  140. /// <value></value>
  141. /// <returns></returns>
  142. /// <remarks></remarks>
  143. public bool UsePassword {
  144. get { return this._UsePassword; }
  145. set { this._UsePassword = value; }
  146. }
  147. /// <summary>Ruft den Wert für Crypt vom Typ Boolean ab, oder legt ihn fest</summary>
  148. /// <value></value>
  149. /// <returns></returns>
  150. /// <remarks></remarks>
  151. public bool Crypt {
  152. get { return this._Crypt; }
  153. set { this._Crypt = value; }
  154. }
  155. /// <summary>Ruft den Wert für TextGZip vom Typ Boolean ab, oder legt ihn fest</summary>
  156. /// <value></value>
  157. /// <returns></returns>
  158. /// <remarks></remarks>
  159. public bool TextGZip {
  160. get { return this._TextGZip; }
  161. set { this._TextGZip = value; }
  162. }
  163. /// <summary>Ruft den Wert für DataGZip vom Typ Boolean ab, oder legt ihn fest</summary>
  164. /// <value></value>
  165. /// <returns></returns>
  166. /// <remarks></remarks>
  167. public bool DataGZip {
  168. get { return this._DataGZip; }
  169. set { this._DataGZip = value; }
  170. }
  171. /// <summary>Ruft den Wert für Extantions vom Typ Boolean ab, oder legt ihn fest</summary>
  172. /// <value></value>
  173. /// <returns></returns>
  174. /// <remarks></remarks>
  175. public bool Extantions {
  176. get { return this._Extantions; }
  177. set { this._Extantions = value; }
  178. }
  179. /// <summary>Ruft den Wert für LockExport vom Typ Boolean ab, oder legt ihn fest</summary>
  180. /// <value></value>
  181. /// <returns></returns>
  182. /// <remarks></remarks>
  183. public bool LockExport {
  184. get { return this._LockExport; }
  185. set { this._LockExport = value; }
  186. }
  187. /// <summary>Ruft den Wert für Password vom Typ String ab, oder legt ihn fest</summary>
  188. /// <value></value>
  189. /// <returns></returns>
  190. /// <remarks></remarks>
  191. public string Password {
  192. get { return this._Password; }
  193. set { this._Password = value; }
  194. }
  195. }
  196. }