equal
deleted
inserted
replaced
5 while (!in.atEnd()) { |
5 while (!in.atEnd()) { |
6 char c; |
6 char c; |
7 in >> c; |
7 in >> c; |
8 switch (c) { |
8 switch (c) { |
9 case 'A': |
9 case 'A': |
10 if (device_.isEmpty()) device_ = in.readLine(); |
10 device_ = in.readLine(); |
11 break; |
11 break; |
12 case 'H': { |
12 case 'H': { |
13 QString line = in.readLine(); |
13 QString line = in.readLine(); |
14 QString key = line.section(':', 0, 0); |
14 QString key = line.section(':', 0, 0); |
15 QString value = line.section(':', 1, 1).simplified(); |
15 QString value = line.section(':', 1, 1).simplified(); |
19 else if (key.startsWith("FDTE")) { |
19 else if (key.startsWith("FDTE")) { |
20 QString s = line.mid(4); |
20 QString s = line.mid(4); |
21 if (s.length() == 6) |
21 if (s.length() == 6) |
22 s.insert(4, "20"); // FIXME: current year? |
22 s.insert(4, "20"); // FIXME: current year? |
23 date_ = QDate::fromString(s, "ddMMyyyy"); |
23 date_ = QDate::fromString(s, "ddMMyyyy"); |
|
24 } |
24 } |
25 } |
25 } |
26 break; |
26 break; |
27 case 'B': |
27 case 'B': fixes_ << in.readLine(); break; |
28 fixes_ << in.readLine(); |
|
29 break; |
|
30 default: |
|
31 (void) in.readLine(); |
28 } |
32 } |
29 } |
33 } |
30 } |
34 } |
31 |
35 |
32 Fix::Fix(const QString &s) |
36 Fix::Fix(const QString &s) |