21 |
21 |
22 def __init__(self, device, project): |
22 def __init__(self, device, project): |
23 """ |
23 """ |
24 Constructor |
24 Constructor |
25 |
25 |
26 @param device reference to the I/O device to read from (QIODevice) |
26 @param device reference to the I/O device to read from |
|
27 @type QIODevice |
27 @param project Reference to the project object to store the |
28 @param project Reference to the project object to store the |
28 information into. |
29 information into. |
|
30 @type Project |
29 """ |
31 """ |
30 XMLStreamReaderBase.__init__(self, device) |
32 XMLStreamReaderBase.__init__(self, device) |
31 |
33 |
32 self.project = project |
34 self.project = project |
33 |
35 |
37 """ |
39 """ |
38 Public method to read and parse the XML document. |
40 Public method to read and parse the XML document. |
39 |
41 |
40 @param quiet flag indicating quiet operations. |
42 @param quiet flag indicating quiet operations. |
41 If this flag is true, no errors are reported. |
43 If this flag is true, no errors are reported. |
|
44 @type bool |
42 """ |
45 """ |
43 while not self.atEnd(): |
46 while not self.atEnd(): |
44 self.readNext() |
47 self.readNext() |
45 if self.isStartElement(): |
48 if self.isStartElement(): |
46 if self.name() == "DebuggerProperties": |
49 if self.name() == "DebuggerProperties": |