project::HotFuzzProject Class Reference

HotFuzzProject(). More...

List of all members.

Public Member Functions

def __init__
 Constructor of HotFuzzProject.
def setPath
 Sets path to project XML.
def setCanModify
 Sets whether the project can be modified.
def modify
 Modifies project.
def isModified
 Finds out whether the project is modified.
def unmodify
 Set project state to Unmodified.
def getPath
 Returns path to project directory.
def storeProject
 Stores project into project XML (specified by HotFuzzProject.path attribute).
def loadProject
 Loads project from project XML (specified by HotFuzzProject.path attribute).
def updateGUI
 Updates Main Window (window::Window) according to the project's variables.
def updateFromGUI
 Updates project according to Main Window (window::Window) widget state.
def setProjectInfo
 Set basic informations about project (author, description, name).
def getProjectInfo
 Returns project name, author and description.

Public Attributes

 window
 Main window of application.
 path
 Path to project XML.
 name
 Project name.
 description
 Project description.
 author
 Project author.
 params
 Fuzzing command line parameters.
 strategy
 Fuzzing mutation strategy.
 iterationCount
 Iteration count.
 modified
 Indicator whether the project was modified.
 canModify
 Indicator whether this project can be modified.
 seedEnabled
 Fuzzing random seed enabled indicator.
 seed
 Fuzzing random seed.
 seedIteration
 Fuzzing random seed iteration (first iteration where the random seed is used).
 startRecordingClient
 Indicator whether start Client while recording.
 startRecordingServer
 Indicator whether start Server while recording.
 startFuzzingClient
 Indicator whether start Client while fuzzing.
 startFuzzingServer
 Indicator whether start Server while fuzzing.


Detailed Description

HotFuzzProject().

Class representing currently opened project of Main Window class (window::Window). It can store/load its content into/from project XML. Main window keeps exactly one instance of this project a time. If this instance does not exist or is invalid, the whole application is in inconsistent state.

See also:
window
Author:
Stepan Henek

Member Function Documentation

def project::HotFuzzProject::__init__ (   self,
  window,
  path 
)

Constructor of HotFuzzProject.

Parameters:
self The object pointer.
window Window Main window of application. (window::Window)
path Path to project XML.

def project::HotFuzzProject::getPath (   self  ) 

Returns path to project directory.

Parameters:
self The object pointer.
Returns:
Path to project directory.

def project::HotFuzzProject::getProjectInfo (   self  ) 

Returns project name, author and description.

Parameters:
self The object pointer.
Returns:
Tuple consisting of project name, description and author.

def project::HotFuzzProject::isModified (   self  ) 

Finds out whether the project is modified.

Parameters:
self The object pointer.
Returns:
True if project is modified, False otherwise

def project::HotFuzzProject::loadProject (   self  ) 

Loads project from project XML (specified by HotFuzzProject.path attribute).

Parameters:
self The object pointer.

def project::HotFuzzProject::modify (   self  ) 

Modifies project.

Used for as unsaved changes indicator. (e.g. before closing main window and exiting program)

Parameters:
self The object pointer.

def project::HotFuzzProject::setCanModify (   self,
  bool 
)

Sets whether the project can be modified.

Parameters:
self The object pointer.
bool If True, project can be modified. If False project can not be modified.

def project::HotFuzzProject::setPath (   self,
  path 
)

Sets path to project XML.

Parameters:
self The object pointer.
path New path to project XML.

def project::HotFuzzProject::setProjectInfo (   self,
  name,
  description,
  author,
  modify = True 
)

Set basic informations about project (author, description, name).

Parameters:
self The object pointer.
name New project name.
description New project description.
author New project author.
modify Indicates whether modify project when name or author or description differs.

def project::HotFuzzProject::storeProject (   self  ) 

Stores project into project XML (specified by HotFuzzProject.path attribute).

Parameters:
self The object pointer.
Returns:
True on success, False otherwise

def project::HotFuzzProject::unmodify (   self  ) 

Set project state to Unmodified.

Parameters:
self The object pointer.

def project::HotFuzzProject::updateFromGUI (   self  ) 

Updates project according to Main Window (window::Window) widget state.

Parameters:
self The object pointer.

def project::HotFuzzProject::updateGUI (   self  ) 

Updates Main Window (window::Window) according to the project's variables.

Parameters:
self The object pointer.


Member Data Documentation

Project author.

Indicator whether this project can be modified.

Project description.

Iteration count.

Indicator whether the project was modified.

Project name.

Fuzzing command line parameters.

Path to project XML.

Fuzzing random seed.

Fuzzing random seed enabled indicator.

Fuzzing random seed iteration (first iteration where the random seed is used).

Indicator whether start Client while fuzzing.

Indicator whether start Server while fuzzing.

Indicator whether start Client while recording.

Indicator whether start Server while recording.

Fuzzing mutation strategy.

Main window of application.

(window::Window)


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