Exemplo n.º 1
0
 internal ABZNode(FileReader sourceFile, int fv)
 {
     queueVersion = fv;
     this.index = sourceFile.readByte();
     this.title = sourceFile.readString();
     this.size = sourceFile.readString();
     this.realSize = sourceFile.readUInt64();
     this.finishedSize = sourceFile.readUInt64();
     this.date = sourceFile.readPascalDate();
     this.readData(sourceFile);
 }
Exemplo n.º 2
0
 public FileNode(FileReader fr, int fv)
     : base(fr, fv)
 {
 }
Exemplo n.º 3
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]));
        }
Exemplo n.º 4
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();
 }
Exemplo n.º 5
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();
 }
Exemplo n.º 6
0
 protected abstract void readData(FileReader sourceFile);