Exemple #1
0
 protected override void readData(FileReader sourceFile)
 {
     crc = sourceFile.readUInt32();
     downloaded = sourceFile.readByte();
     incomplete = sourceFile.readByte();
     parts = sourceFile.readString();
     group = sourceFile.readString();
     poster = sourceFile.readString();
     status = sourceFile.readInt32();
     md5 = sourceFile.readString();
     msgParts = sourceFile.readUInt32();
     readAvailableMsgParts(sourceFile);
     decoding = sourceFile.readBoolean();
 }
Exemple #2
0
        private void readAvailableMsgParts(FileReader sourceFile)
        {
            uint availablemsgcount = sourceFile.readUInt32();

            string[] ids = new string[availablemsgcount];
            string[] free = new string[availablemsgcount];
            string[] size = new string[availablemsgcount];
            int[] retc = new int[availablemsgcount];
            DateTime[] lrt = new DateTime[availablemsgcount];

            for (int i = 0; i < availablemsgcount; i++)
                ids[i] = sourceFile.readString();
            for (int i = 0; i < availablemsgcount; i++)
                free[i] = sourceFile.readString();
            for (int i = 0; i < availablemsgcount; i++)
                size[i] = sourceFile.readString();
            for (int i = 0; i < availablemsgcount; i++)
            {
                retc[i] = sourceFile.readInt32();
                lrt[i] = sourceFile.readPascalDate();
            }
            for (int i = 0; i < availablemsgcount; i++)
                AvailableMsgParts.Add(new MsgInfo(ids[i], free[i], size[i], retc[i], lrt[i]));
        }
Exemple #3
0
 protected override void readData(FileReader sourceFile)
 {
     parts = sourceFile.readString();
     unrar = sourceFile.readBoolean();
     md5 = sourceFile.readString();
     downloadFolder = sourceFile.readString();
     unrarPassword = sourceFile.readString();
     unrarFolder = sourceFile.readString();
     status = sourceFile.readInt32();
     if (queueVersion >= 10)
         deleteRars = sourceFile.readBoolean();
     if (queueVersion >= 11)
         execute = sourceFile.readString();
 }