Cisco Packet Tracer Extensions API 8.1.0
API for communication between Cisco Packet Tracer application and its extension applications and modules.
Public Member Functions | List of all members
UserCreatedPDU Class Reference

The UserCreatedPDU widget holds all the user created pdus for different scenarios. More...

Public Member Functions

void setVisible (bool)
 Shows or hides this widget from view. More...
 
void setWidgetVisible (string, bool)
 Shows or hides the specified child widget. More...
 
void setDisabled (bool)
 Enables or disables input events to this widget. More...
 
void setWidgetDisable (string, bool)
 Enables or disables the specified child widget. More...
 
void activateScenario (int)
 Changes the scenario to the specified index. More...
 
void deleteScenarioBtn_clicked ()
 Simulates clicking on the Delete scenario button. More...
 
void newScenarioBtn_clicked ()
 Simulates clicking on the New scenario button. More...
 
void scenarioInfoBtn_clicked ()
 
void toggleOpenListWindowBtn (bool)
 Shows or hides the Toggle PDU List Window. More...
 
void setScenarioDescription (string)
 Sets the description for the current scenario. More...
 
void firePDU (int)
 Sends out the PDU at the specified index. More...
 
void colorPDU (int)
 Opens the color picker for the PDU at the specified index. More...
 
void editPDU (int)
 Opens the edit pdu dialog for the pdu at the specified index. More...
 
void deletePDU (int)
 Removes the PDU at the specified index. More...
 
ADD_PDU_ERROR addSimplePdu (QString, QString)
 Adds a simple pdu to the simulation using only device names. More...
 
void simplePduAdded (UserTraffic)
 This event is emitted when a user successfully adds a Simple PDU to the network. More...
 
void complexPduAdded (UserTraffic)
 IPC event. More...
 

Detailed Description

The UserCreatedPDU widget holds all the user created pdus for different scenarios.

Member Function Documentation

◆ activateScenario()

void UserCreatedPDU::activateScenario ( int  )

Changes the scenario to the specified index.

Parameters
index,theindex of the scenario of interest.

◆ addSimplePdu()

ADD_PDU_ERROR UserCreatedPDU::addSimplePdu ( QString  ,
QString   
)

Adds a simple pdu to the simulation using only device names.

Parameters
src,thesource device name
dst,thedestination device name

◆ colorPDU()

void UserCreatedPDU::colorPDU ( int  )

Opens the color picker for the PDU at the specified index.

Parameters
index,theindex of the PDU of interest.

◆ complexPduAdded()

void UserCreatedPDU::complexPduAdded ( UserTraffic  )

IPC event.

This event is emitted when a user successfully adds a Complex PDU to the network.

◆ deletePDU()

void UserCreatedPDU::deletePDU ( int  )

Removes the PDU at the specified index.

Parameters
index,theindex of the PDU of interest.

◆ deleteScenarioBtn_clicked()

void UserCreatedPDU::deleteScenarioBtn_clicked ( )

Simulates clicking on the Delete scenario button.

◆ editPDU()

void UserCreatedPDU::editPDU ( int  )

Opens the edit pdu dialog for the pdu at the specified index.

Parameters
intindex, the index of interest

◆ firePDU()

void UserCreatedPDU::firePDU ( int  )

Sends out the PDU at the specified index.

Parameters
index,theindex of the PDU of interest.

◆ newScenarioBtn_clicked()

void UserCreatedPDU::newScenarioBtn_clicked ( )

Simulates clicking on the New scenario button.

◆ scenarioInfoBtn_clicked()

void UserCreatedPDU::scenarioInfoBtn_clicked ( )

◆ setDisabled()

void UserCreatedPDU::setDisabled ( bool  )

Enables or disables input events to this widget.

Parameters
bDisabled,trueto disable input events to this widget, false to enable input events.

◆ setScenarioDescription()

void UserCreatedPDU::setScenarioDescription ( string  )

Sets the description for the current scenario.

Parameters
description,thedescription for the current scenario.

◆ setVisible()

void UserCreatedPDU::setVisible ( bool  )

Shows or hides this widget from view.

Parameters
bVisible,trueto show this widget, false to hide it.

◆ setWidgetDisable()

void UserCreatedPDU::setWidgetDisable ( string  ,
bool   
)

Enables or disables the specified child widget.

Parameters
widgetName,wherewidgetName can be one of the following: NewScenarioBtn, DeleteScenarioBtn, OpenListWindowBtn, RemovePDUBtn.
bDisabled,trueto disable input events to this child widget, false to enable input events.

◆ setWidgetVisible()

void UserCreatedPDU::setWidgetVisible ( string  ,
bool   
)

Shows or hides the specified child widget.

Parameters
widgetName,wherewidgetName can be one of the following: NewScenarioBtn, DeleteScenarioBtn, OpenListWindowBtn, RemovePDUBtn.
bVisible,trueto show this child widget, false to hide it.

◆ simplePduAdded()

void UserCreatedPDU::simplePduAdded ( UserTraffic  )

This event is emitted when a user successfully adds a Simple PDU to the network.

IPC event.

◆ toggleOpenListWindowBtn()

void UserCreatedPDU::toggleOpenListWindowBtn ( bool  )

Shows or hides the Toggle PDU List Window.

Parameters
bEnable,trueto show the Toggle PDU List Window, false to hide it.

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