| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216 |
- namespace System.Fire.FilePack.FilePackElements {
- /// <summary>
- /// FilePack Version
- /// </summary>
- public enum eVersion : byte {
- /// <summary>Nicht unterstützte Version</summary>
- Unsuported = 0,
- /// <summary>Version 1.0</summary>
- Version_1_0 = 10
- }
- public enum FPCommentType : byte {
- Not_Set = 0,
- TextComment = 1,
- Homepage = 2,
- Icon = 3,
- Email = 4,
- Company = 5,
- Version = 6,
- ShortTextComment = 7,
- Address = 8,
- Image = 9,
- Tag = 10,
- FileComment = 20,
- FileTag = 21,
- FileByteArray = 22,
- ShortFileComment = 23,
- FileIcon = 24,
- FileImage = 25
- }
- /// <summary>
- /// Definition des Daten-Typs
- /// </summary>
- public enum DataType {
- /// <summary>Datensatz ist eine String Zeichenkette</summary>
- dtString = 20,
- /// <summary>Datensatz ist ein Bild</summary>
- dtImage = 21,
- /// <summary>Datensatz ist eine Zahl</summary>
- dtInteger = 22,
- /// <summary>Datensatz ist eine positive Zahl</summary>
- dtUInteger = 23,
- /// <summary>Datensatz ist ein Byte</summary>
- dtByte = 24,
- /// <summary>Datensatz ist ein eine 2-Bit Zahl</summary>
- dtShort = 25,
- /// <summary>Datensatz ist eine positive 2-Bit Zahl</summary>
- dtUShort = 26,
- /// <summary>Datensatz ist eine 6-Bit Zahl</summary>
- dtLong = 27,
- /// <summary>Datensatz ist eine positive 6-Bit Zahl</summary>
- dtULong = 28,
- /// <summary>Datensatz ist eine 8-Bit Gleitkomma-Zahl</summary>
- dtDecimal = 29,
- /// <summary>Datensatz ist ein Byte-Array</summary>
- dtByteArray = 32,
- /// <summary>Datensatz ist ein Binär-Daten-Array</summary>
- dtBinaryData = 33,
- /// <summary>Datensatz ist ein nicht unterstütztes Bild</summary>
- dtUnsuportImage = 34,
- /// <summary>Datensatz ist ein Video-Container</summary>
- dtVideo = 35,
- /// <summary>Datensatz ist ein Audio-Container</summary>
- dtAudio = 36,
- /// <summary>Datensatz ist eine Farbe</summary>
- dtColor = 40,
- /// <summary>Quelltext Datei Readable</summary>
- dtSourceCode = 50,
- /// <summary>INI Configuration File</summary>
- dtConfiguration = 51,
- /// <summary>Executeable</summary>
- dtExecuteable = 52
- }
- /// <summary>Einstellungen des Archives</summary>
- [Flags()]
- public enum eSet : byte {
- /// <summary>Es wird ein Passwort benutzt</summary>
- UsePassword = 1,
- /// <summary>Der Datensatz ist verschlüsselt</summary>
- Crypt = 2,
- /// <summary>Der Datensatz ist kompremiert</summary>
- Data_GZip = 4,
- /// <summary>Der Text-Block ist kompremiert</summary>
- Text_GZip = 8,
- /// <summary>Das Archiv ist vor Exportieren geschützt</summary>
- ExportLocked = 32,
- /// <summary>Dateiendungen werden mit exportiert</summary>
- Extantions = 64
- }
-
- /// <summary>Klasse für FilePack-Einstellungen</summary>
- public struct CreateSetting {
- private bool _UsePassword;
- private bool _Crypt;
- private bool _TextGZip;
- private bool _DataGZip;
- private bool _Extantions;
- private bool _LockExport;
- private string _Password;
- /// <summary>Erstellt eine neue XY - Class</summary>
- /// <param name="New_UsePassword">Argument für UsePassword (Boolean)</param>
- /// <param name="New_Crypt">Argument für Crypt (Boolean)</param>
- /// <param name="New_TextGZip">Argument für TextGZip (Boolean)</param>
- /// <param name="New_DataGZip">Argument für DataGZip (Boolean)</param>
- /// <param name="New_Extantions">Argument für Extantions (Boolean)</param>
- /// <param name="New_LockExport">Argument für LockExport (Boolean)</param>
- /// <param name="New_Password">Argument für Password (String)</param>
- /// <remark></remark>
- public CreateSetting(bool New_UsePassword, bool New_Crypt, bool New_TextGZip, bool New_DataGZip, bool New_Extantions, bool New_LockExport, string New_Password) {
- this._UsePassword = New_UsePassword;
- this._Crypt = New_Crypt;
- this._TextGZip = New_TextGZip;
- this._DataGZip = New_DataGZip;
- this._Extantions = New_Extantions;
- this._LockExport = New_LockExport;
- this._Password = New_Password;
- }
- /// <summary>Erstellt eine neue XY - Class</summary>
- /// <remark></remark>
- public CreateSetting(string New_Password) {
- this._UsePassword = true;
- this._Crypt = true;
- this._TextGZip = false;
- this._DataGZip = false;
- this._Extantions = true;
- this._LockExport = false;
- this._Password = New_Password;
- }
- /// <summary>Erstellt eine neue XY - Class</summary>
- /// <param name="New_Crypt">Argument für Crypt (Boolean)</param>
- /// <remark></remark>
- public CreateSetting(bool New_Crypt) {
- this._UsePassword = false;
- this._Crypt = New_Crypt;
- this._TextGZip = false;
- this._DataGZip = false;
- this._Extantions = true;
- this._LockExport = false;
- this._Password = "";
- }
- /// <summary>Ruft den Wert für UsePassword vom Typ Boolean ab, oder legt ihn fest</summary>
- /// <value></value>
- /// <returns></returns>
- /// <remarks></remarks>
- public bool UsePassword {
- get { return this._UsePassword; }
- set { this._UsePassword = value; }
- }
- /// <summary>Ruft den Wert für Crypt vom Typ Boolean ab, oder legt ihn fest</summary>
- /// <value></value>
- /// <returns></returns>
- /// <remarks></remarks>
- public bool Crypt {
- get { return this._Crypt; }
- set { this._Crypt = value; }
- }
- /// <summary>Ruft den Wert für TextGZip vom Typ Boolean ab, oder legt ihn fest</summary>
- /// <value></value>
- /// <returns></returns>
- /// <remarks></remarks>
- public bool TextGZip {
- get { return this._TextGZip; }
- set { this._TextGZip = value; }
- }
- /// <summary>Ruft den Wert für DataGZip vom Typ Boolean ab, oder legt ihn fest</summary>
- /// <value></value>
- /// <returns></returns>
- /// <remarks></remarks>
- public bool DataGZip {
- get { return this._DataGZip; }
- set { this._DataGZip = value; }
- }
- /// <summary>Ruft den Wert für Extantions vom Typ Boolean ab, oder legt ihn fest</summary>
- /// <value></value>
- /// <returns></returns>
- /// <remarks></remarks>
- public bool Extantions {
- get { return this._Extantions; }
- set { this._Extantions = value; }
- }
- /// <summary>Ruft den Wert für LockExport vom Typ Boolean ab, oder legt ihn fest</summary>
- /// <value></value>
- /// <returns></returns>
- /// <remarks></remarks>
- public bool LockExport {
- get { return this._LockExport; }
- set { this._LockExport = value; }
- }
- /// <summary>Ruft den Wert für Password vom Typ String ab, oder legt ihn fest</summary>
- /// <value></value>
- /// <returns></returns>
- /// <remarks></remarks>
- public string Password {
- get { return this._Password; }
- set { this._Password = value; }
- }
- }
- }
|