kbLogger 2.0.b1
The automotive ready test and logging program.
ProjectExplorer Class Reference

This class defines the API for the project explorer object.

#include <projectexplorer.h>

Public Slots

bool closeProject (Project *pProject)
 Close the project.
 
int connectProject (Project *pProject)
 Connect the project to the device drivers.
 
int disconnectProject (Project *pProject)
 Disconnect the project from the dice drivers.
 
ProjectopenProject (QString strProject)
 Opens a project.
 
void startProject (Project *pProject)
 Starts the project.
 
void stopProject (Project *pProject)
 Stops the project.
 

Public Member Functions

void readProjectSettings (Project *pProject)
 Read the settings of a project.
 

Member Function Documentation

◆ closeProject

bool closeProject ( Project * pProject)
slot

Closes the given project. The project is removed from the ProjectExplorer.

Parameters
pProjectThe project handle.
Returns
True if the closing was successful.

◆ connectProject

int connectProject ( Project * pProject)
slot

Connects the given project with the device drivers (the ComObjects). Furthermore, Script objects included in the project, will call their connect functions (if they exists). Be aware of sending messages to other Objects or calling functions of other objects in this function. Since the Objects gets connected one by one, it can happen, that the other Object is not connected to this time. It can work, but on next program run, the scheduler from the operating system can call the connect() functions in a different order. It is better to use the start() function for this.

function connect()
{
trace("This function is called when the project is connected");
}
Parameters
pProjectThe project handle
Returns
The new number of connected projects

◆ disconnectProject

int disconnectProject ( Project * pProject)
slot

Disconnects the given project from the device drivers (the ComObjects). On disconnecting, no special code is executed in the included ScriptObjects.

Parameters
pProjectThe project handle
Returns
The new number of connected projects

◆ openProject

Project * openProject ( QString strProject)
slot

Opens the given project. The project is shown in the ProjectExplorer, but not connected nor started.

Parameters
strProjectThe full qualified name of the project file (*.klp)
Returns
The project handle.

◆ readProjectSettings()

void readProjectSettings ( Project * pProject)

Forces a project to read its settings from the project file (*.klp). This is useful only for automatically changed but already loaded projects.

Parameters
pProjectThe project handle

◆ startProject

void startProject ( Project * pProject)
slot

Starts the given project. That means, Script objects included in the project, will call their start functions (if they exists).

function start()
{
trace("This function is called when the project is starting");
}
Parameters
pProjectThe project handle.

◆ stopProject

void stopProject ( Project * pProject)
slot

Stops the given project. That means, Script objects included in the project, will call their stop functions (if they exists).

function stop()
{
trace("This function is called when the project is stopping");
}
Parameters
pProjectThe project handle.