xmlmanipulators::fuzzingXmlManipulator Class Reference

fuzzingXmlManipulator(xmlElement) More...

Inheritance diagram for xmlmanipulators::fuzzingXmlManipulator:

xmlmanipulators::xmlManipulator

List of all members.

Public Member Functions

def storeXML
 Stores content of Main Window widgets into XML file.
def loadXML
 Loads content of peach XML file into Main Window widgets.
def storeElements
 Stores content of Main Window widgets into our XML element tree.
def loadElements
 Loads content of our XML element tree into Main Window widgets.
def storeServerAgent
 Stores content of Main Window widgets associated with server agent into our XML element tree.
def storeClientAgent
 Stores content of Main Window widgets associated with client agent into our XML element tree.
def storePublishers
 Stores content of Main Window widgets associated with publisher into our XML element tree.
def loadDataModels
 Loads content of XML element tree into Main Window data model widget.
def loadDataModel
 Loads content of XML element tree (single data model) into Main Window data model widget.
def loadStateModels
 Loads content of peach XML into Main Window state model widget.
def loadStateModel
 Loads content of XML element tree (single state model) into Main Window state model widget.
def loadMutators
 Finds used mutators in XML element tree and checks / unchecks checkbox associated with single mutator.
def loadPublishers
 Loads content of our XML element tree into Main Window widgets associated with publisher.
def loadServerAgent
 Loads content of our XML element tree into Main Window widgets associated with server agent.
def loadClientAgent
 Loads content of our XML element tree into Main Window widgets associated with client agent.
def clearElements
 Clear all necessary Main window elements.


Detailed Description

fuzzingXmlManipulator(xmlElement)

Class used for storing/loading content of Main Widow to/from peach XML file, which is used for fuzzing. This class reads and modifies content of second and third tab of Main Window. It's used to visualize and modify some parts of peach XML. It uses peachXmlWriter and peachXmlReader for writing and storing XML files.

This class represents link between Main Window content and our XML element tree.

Author:
Stepan Henek

Member Function Documentation

def xmlmanipulators::fuzzingXmlManipulator::clearElements (   self  ) 

Clear all necessary Main window elements.

This function is used before loading new XML element tree into Main Window

Parameters:
self The object pointer.

def xmlmanipulators::fuzzingXmlManipulator::loadClientAgent (   self,
  root,
  silent = False 
)

Loads content of our XML element tree into Main Window widgets associated with client agent.

Parameters:
self The object pointer.
silent Indicates whether to display error QMessageBox on failure.
root Tree node which tag is named "Peach".
Returns:
True on success, False otherwise

def xmlmanipulators::fuzzingXmlManipulator::loadDataModel (   self,
  parent,
  treeNode 
)

Loads content of XML element tree (single data model) into Main Window data model widget.

See also:
HotFuzzTreeWidgetItem
Parameters:
self The object pointer.
parent Parent HotFuzzTreeWidgetItem.
treeNode currently processed xml element tree node.
Returns:
True on success, False otherwise

def xmlmanipulators::fuzzingXmlManipulator::loadDataModels (   self,
  root,
  silent = False 
)

Loads content of XML element tree into Main Window data model widget.

Note this function uses fuzzingXmlManipulator::loadDataModel for creating non root level elements.

See also:
QTreeWidgetItem
Parameters:
self The object pointer.
silent Indicates whether to display error QMessageBox on failure.
root Tree node which tag is named "Peach".
Returns:
True on success, False otherwise

def xmlmanipulators::fuzzingXmlManipulator::loadElements (   self,
  silent = False 
)

Loads content of our XML element tree into Main Window widgets.

Parameters:
self The object pointer.
silent Indicates whether to display error QMessageBox on failure.
Returns:
True on success, False otherwise

def xmlmanipulators::fuzzingXmlManipulator::loadMutators (   self,
  root,
  silent = False 
)

Finds used mutators in XML element tree and checks / unchecks checkbox associated with single mutator.

Parameters:
self The object pointer.
silent Indicates whether to display error QMessageBox on failure.
root Tree node which tag is named "Peach".
Returns:
True on success, False otherwise

def xmlmanipulators::fuzzingXmlManipulator::loadPublishers (   self,
  root,
  silent = False 
)

Loads content of our XML element tree into Main Window widgets associated with publisher.

Parameters:
self The object pointer.
silent Indicates whether to display error QMessageBox on failure.
root Tree node which tag is named "Peach".
Returns:
True on success, False otherwise

def xmlmanipulators::fuzzingXmlManipulator::loadServerAgent (   self,
  root,
  silent = False 
)

Loads content of our XML element tree into Main Window widgets associated with server agent.

Parameters:
self The object pointer.
silent Indicates whether to display error QMessageBox on failure.
root Tree node which tag is named "Peach".
Returns:
True on success, False otherwise

def xmlmanipulators::fuzzingXmlManipulator::loadStateModel (   self,
  parent,
  treeNode 
)

Loads content of XML element tree (single state model) into Main Window state model widget.

See also:
QTreeWidgetItem
Parameters:
self The object pointer.
parent Parent HotFuzzTreeWidgetItem.
treeNode currently processed XML element tree node.
Returns:
True on success, False otherwise

def xmlmanipulators::fuzzingXmlManipulator::loadStateModels (   self,
  root,
  silent = False 
)

Loads content of peach XML into Main Window state model widget.

Note this function uses fuzzingXmlManipulator::loadStateModel for creating non root level elements.

See also:
QTreeWidgetItem
Parameters:
self The object pointer.
silent Indicates whether to display error QMessageBox on failure.
root Tree node which tag is named "Peach".
Returns:
True on success, False otherwise

def xmlmanipulators::fuzzingXmlManipulator::loadXML (   self,
  path,
  silent = False 
)

Loads content of peach XML file into Main Window widgets.

Parameters:
self The object pointer.
path Path to XML file.
silent Indicates whether to display error QMessageBox on failure.
Returns:
True on success, False otherwise

def xmlmanipulators::fuzzingXmlManipulator::storeClientAgent (   self,
  root,
  silent = False 
)

Stores content of Main Window widgets associated with client agent into our XML element tree.

Parameters:
self The object pointer.
silent Indicates whether to display error QMessageBox on failure.
root Tree node which tag is named "Peach".
Returns:
True on success, False otherwise

def xmlmanipulators::fuzzingXmlManipulator::storeElements (   self,
  loggerPath,
  silent = False 
)

Stores content of Main Window widgets into our XML element tree.

Parameters:
self The object pointer.
loggerPath Path where to store crashes.
silent Indicates whether to display error QMessageBox on failure.
Returns:
True on success, False otherwise

def xmlmanipulators::fuzzingXmlManipulator::storePublishers (   self,
  root,
  silent = False 
)

Stores content of Main Window widgets associated with publisher into our XML element tree.

Parameters:
self The object pointer.
silent Indicates whether to display error QMessageBox on failure.
root Tree node which tag is named "Peach".
Returns:
True on success, False otherwise

def xmlmanipulators::fuzzingXmlManipulator::storeServerAgent (   self,
  root,
  silent = False 
)

Stores content of Main Window widgets associated with server agent into our XML element tree.

Parameters:
self The object pointer.
silent Indicates whether to display error QMessageBox on failure.
root Tree node which tag is named "Peach".
Returns:
True on success, False otherwise

def xmlmanipulators::fuzzingXmlManipulator::storeXML (   self,
  path,
  loggerPath = None,
  silent = False 
)

Stores content of Main Window widgets into XML file.

Parameters:
self The object pointer.
path Path to XML file.
loggerPath Path where to store crashes.
silent Indicates whether to display error QMessageBox on failure.
Returns:
True on success, False otherwise


The documentation for this class was generated from the following file:

Generated on Sun Sep 5 12:41:36 2010 for HotFuzz by  doxygen 1.5.8