Cisco Packet Tracer Extensions API 8.1.0
API for communication between Cisco Packet Tracer application and its extension applications and modules.
|
Options contains the current running options for the application. More...
Public Member Functions | |
bool | isAnimation () |
Returns true if animation is enabled, otherwise false. More... | |
bool | isSound () |
Returns true if sound is enabled, otherwise false. More... | |
bool | isTelephonySound () |
Returns true if telephony sound is enabled, otherwise false. More... | |
bool | isDockFirst () |
Returns true if dock first is enabled, otherwise false. More... | |
bool | isLoggingEnabled () |
Returns true if logging is enabled, otherwise false. More... | |
bool | isPortShown () |
Returns true if showing of port labels are enabled, otherwise false.. More... | |
bool | isPortNotShownOnMouseOver () |
Returns true if showing of port labels on mouse over is disabled, otherwise false. More... | |
bool | isChallenge_PDUInfo () |
Returns true if challenge mode for the PDU info is enabled, otherwise false. More... | |
bool | isDeviceModelShown () |
Returns true if displaying the device model names is enabled, otherwise false. More... | |
bool | isLinkLightsShown () |
Returns true if displaying the link links are enabled, otherwise false. More... | |
bool | isAccessible () |
Returns true if accessibility is enabled, otherwise false. More... | |
bool | isPhysicalTabHidden () |
Returns true if the Physical tabs in device dialogs are shown is enabled, otherwise false. More... | |
bool | isConfigTabHidden () |
Returns true if the Config tabs in device dialogs are shown is enabled, otherwise false. More... | |
bool | isCliTabHidden () |
Returns true if the CLI tabs in device dialogs are shown is enabled, otherwise false. More... | |
bool | isDesktopTabHidden () |
Returns true if the Desktop tabs in device dialogs are shown is enabled, otherwise false. More... | |
bool | isGuiTabHidden () |
Returns true if the GUI tabs in device dialogs are shown is enabled, otherwise false. More... | |
bool | isHideDevModelLabel () |
Returns true if all device model labels are to be hidden, otherwise false. More... | |
bool | isHideDevLabel () |
Returns true if all device name labels are to be hidden, otherwise false. More... | |
bool | isHideQoSStamp () |
Returns true if QoS stamps on packets are to be hidden, otherwise false. More... | |
bool | isEnableCableLengthEffects () |
Returns true if cable length effects are enabled, otherwise false. More... | |
bool | isAutoCablingDisabled () |
Returns true if auto cabling is disabled, otherwise false. More... | |
bool | isUsingMetric () |
Returns true if using Metric System, otherwise false. More... | |
bool | isDevTaskbarShown () |
Returns true if the device dialog taskbar is shown, otherwise false. More... | |
bool | isExternalNetworkAccessEnabled () |
Returns true if external network access from device scripts is enabled, otherwise false. More... | |
bool | isUseCliDefaultTab () |
Returns true if the CLI tab is the device default tab, otherwise false. More... | |
bool | isCableInfoPopup () |
Returns true if the cable info popup in Physical Workspace is shown when mouseover on the cable, otherwise false. More... | |
QString | getConfigFilePath () |
Returns the path to the administrative configuration file. More... | |
void | setAnimation (bool) |
Enables or disables animation. More... | |
void | setSound (bool) |
Enables or disables sound. More... | |
void | setTelephonySound (bool) |
Enables or disables telephony sound. More... | |
void | setIsDockFirst (bool) |
Enables or disables dock first. More... | |
void | setIsLoggingEnabled (bool) |
Enables or disables logging. More... | |
void | setIsPortShown (bool) |
Enables or disables the port label visibility. More... | |
void | setPortNotShownOnMouseOver (bool) |
Enables or disables the port label visibility on mouse over. More... | |
void | setIsChallenge_PDUInfo (bool) |
Enables or disables the Challenge Mode in PDU info. More... | |
void | setAccessible (bool) |
Enables or disables accessibility features. More... | |
void | setIsLinkLightShown (bool) |
Enables or disables link light visibility. More... | |
void | addBackgroundImage (QString, QString) |
Adds a background image file to the list of allowed background images to be used on workspaces. More... | |
void | removeBackgroundImage (QString) |
Removes the specified background image file from the list of allowed background images to be used on workspaces. More... | |
void | setPhysicalTabHidden (bool) |
Enables or disables the Physical tab visibility. More... | |
void | setConfigTabHidden (bool) |
Enables or disables the Config tab visibility. More... | |
void | setCliTabHidden (bool) |
Enables or disables the CLI tab visibility. More... | |
void | setDesktopTabHidden (bool) |
Enables or disables the Desktop tab visibility. More... | |
void | setGuiTabHidden (bool) |
Enables or disables the GUI tab visibility. More... | |
void | setHideDevModelLabel (bool, bool) |
Enables or disables hiding of device model labels. More... | |
void | setHideDevLabel (bool, bool) |
Enables or disables hiding of device name labels. More... | |
void | setHideQoSStamp (bool, bool) |
Enables or disables hiding of QoS stamps. More... | |
void | setEnableCableLengthEffects (bool) |
Enables or disables cable length effects. More... | |
void | setDisableAutoCabling (bool) |
Enables or disables auto cabling. More... | |
void | setUseMetric (bool) |
Sets whether to use Metric System. More... | |
void | setShowDevTaskbar (bool) |
Enables or disables the device taskbar. More... | |
void | setEnableExternalNetworkAccess (bool) |
Enables or disables external network access from all script modules and device scripts. More... | |
void | setUseCliDefaultTab (bool) |
Enables or disables the CLI tab as the default tab. More... | |
void | setCableInfoPopup (bool) |
Enables or disables the cable info popup in Physical Workspace when mouseover on the cable. More... | |
void | setBufferFullAction (BufferFullAction) |
Sets the Buffer Full Action option to the specified action. More... | |
BufferFullAction | getBufferFullAction () |
Returns the Buffer Full Action option. More... | |
bool | saveFile (QString) |
Saves this configuration option to a file. More... | |
QString | getCurrentLanguage () |
Returns the current language. More... | |
void | addCustomHideOption (QString, QString, bool) |
Adds a custom hide option in the Hide tab of Preferences. More... | |
void | setCustomHideOption (QString, bool) |
Sets a custom hide option in the Hide tab of Preferences. More... | |
bool | getCustomHideOption (QString, bool) |
Gets a custom hide option in the Hide tab of Preferences. More... | |
bool | isMainToolbarShown () |
bool | isSecondaryToolbarShown () |
bool | isBottomToolbarShown () |
void | setMainToolbarShown (bool) |
void | setSecondaryToolbarShown (bool) |
void | setBottomToolbarShown (bool) |
void | enableAddToRecentFiles (bool) |
Enables whether to allow adding to the recent files list in File menu. More... | |
void | addRecentFile (QString) |
Adds a file to the recent file list. More... | |
void | optionsChanged () |
This event is emitted when an administrative options are changed. More... | |
Options contains the current running options for the application.
void Options::addBackgroundImage | ( | QString | , |
QString | |||
) |
Adds a background image file to the list of allowed background images to be used on workspaces.
QString | location, the location to associate with the image. Locations: Building, City, Custom, Intercity, Logical |
QString | filePath, the relative path to the file from the application bin folder. |
void Options::addCustomHideOption | ( | QString | , |
QString | , | ||
bool | |||
) |
Adds a custom hide option in the Hide tab of Preferences.
id,the | ID to use for the option. |
title,the | title to display for the option. |
defaultValue,true | to set is as being in affect, false to not be in effect. |
void Options::addRecentFile | ( | QString | ) |
Adds a file to the recent file list.
void Options::enableAddToRecentFiles | ( | bool | ) |
Enables whether to allow adding to the recent files list in File menu.
BufferFullAction Options::getBufferFullAction | ( | ) |
Returns the Buffer Full Action option.
QString Options::getConfigFilePath | ( | ) |
Returns the path to the administrative configuration file.
QString Options::getCurrentLanguage | ( | ) |
Returns the current language.
bool Options::getCustomHideOption | ( | QString | , |
bool | |||
) |
Gets a custom hide option in the Hide tab of Preferences.
id,the | ID of the option to get. |
defaultFalue,if | the option doesn't exist, the value from this will be returned. |
bool Options::isAccessible | ( | ) |
Returns true if accessibility is enabled, otherwise false.
bool Options::isAnimation | ( | ) |
Returns true if animation is enabled, otherwise false.
bool Options::isAutoCablingDisabled | ( | ) |
Returns true if auto cabling is disabled, otherwise false.
bool Options::isBottomToolbarShown | ( | ) |
bool Options::isCableInfoPopup | ( | ) |
bool Options::isChallenge_PDUInfo | ( | ) |
Returns true if challenge mode for the PDU info is enabled, otherwise false.
bool Options::isCliTabHidden | ( | ) |
Returns true if the CLI tabs in device dialogs are shown is enabled, otherwise false.
bool Options::isConfigTabHidden | ( | ) |
Returns true if the Config tabs in device dialogs are shown is enabled, otherwise false.
bool Options::isDesktopTabHidden | ( | ) |
Returns true if the Desktop tabs in device dialogs are shown is enabled, otherwise false.
bool Options::isDeviceModelShown | ( | ) |
Returns true if displaying the device model names is enabled, otherwise false.
bool Options::isDevTaskbarShown | ( | ) |
Returns true if the device dialog taskbar is shown, otherwise false.
bool Options::isDockFirst | ( | ) |
Returns true if dock first is enabled, otherwise false.
bool Options::isEnableCableLengthEffects | ( | ) |
Returns true if cable length effects are enabled, otherwise false.
bool Options::isExternalNetworkAccessEnabled | ( | ) |
Returns true if external network access from device scripts is enabled, otherwise false.
bool Options::isGuiTabHidden | ( | ) |
Returns true if the GUI tabs in device dialogs are shown is enabled, otherwise false.
bool Options::isHideDevLabel | ( | ) |
Returns true if all device name labels are to be hidden, otherwise false.
bool Options::isHideDevModelLabel | ( | ) |
Returns true if all device model labels are to be hidden, otherwise false.
bool Options::isHideQoSStamp | ( | ) |
Returns true if QoS stamps on packets are to be hidden, otherwise false.
bool Options::isLinkLightsShown | ( | ) |
Returns true if displaying the link links are enabled, otherwise false.
bool Options::isLoggingEnabled | ( | ) |
Returns true if logging is enabled, otherwise false.
bool Options::isMainToolbarShown | ( | ) |
bool Options::isPhysicalTabHidden | ( | ) |
Returns true if the Physical tabs in device dialogs are shown is enabled, otherwise false.
bool Options::isPortNotShownOnMouseOver | ( | ) |
Returns true if showing of port labels on mouse over is disabled, otherwise false.
bool Options::isPortShown | ( | ) |
Returns true if showing of port labels are enabled, otherwise false..
bool Options::isSecondaryToolbarShown | ( | ) |
bool Options::isSound | ( | ) |
Returns true if sound is enabled, otherwise false.
bool Options::isTelephonySound | ( | ) |
Returns true if telephony sound is enabled, otherwise false.
bool Options::isUseCliDefaultTab | ( | ) |
Returns true if the CLI tab is the device default tab, otherwise false.
bool Options::isUsingMetric | ( | ) |
Returns true if using Metric System, otherwise false.
void Options::optionsChanged | ( | ) |
This event is emitted when an administrative options are changed.
IPC event.
void Options::removeBackgroundImage | ( | QString | ) |
Removes the specified background image file from the list of allowed background images to be used on workspaces.
QString | filePath, the relative path to the file from the application bin folder. |
bool Options::saveFile | ( | QString | ) |
Saves this configuration option to a file.
filename,the | filename including the path to save to. |
void Options::setAccessible | ( | bool | ) |
Enables or disables accessibility features.
bEnable,true | to enable accessibility features, false to disable it. |
void Options::setAnimation | ( | bool | ) |
Enables or disables animation.
bEnable,true | to enable animation, false to disable it. |
void Options::setBottomToolbarShown | ( | bool | ) |
void Options::setBufferFullAction | ( | BufferFullAction | ) |
Sets the Buffer Full Action option to the specified action.
action,the | Buffer Full Action. Buffer Full Actions: Prompt = 0, AutoClearEventList = 1, AutoViewPreviousEvents = 2 |
void Options::setCableInfoPopup | ( | bool | ) |
void Options::setCliTabHidden | ( | bool | ) |
Enables or disables the CLI tab visibility.
bEnable,true | to enable CLI tab visibility, false to disable it. |
void Options::setConfigTabHidden | ( | bool | ) |
Enables or disables the Config tab visibility.
bEnable,true | to enable Config tab visibility, false to disable it. |
void Options::setCustomHideOption | ( | QString | , |
bool | |||
) |
Sets a custom hide option in the Hide tab of Preferences.
id,the | ID of the option to set. |
value,true | to set is as being in affect, false to not be in effect. |
void Options::setDesktopTabHidden | ( | bool | ) |
Enables or disables the Desktop tab visibility.
bEnable,true | to enable Desktop tab visibility, false to disable it. |
void Options::setDisableAutoCabling | ( | bool | ) |
Enables or disables auto cabling.
bEnable,true | to disable auto cabling, false to enable it. |
void Options::setEnableCableLengthEffects | ( | bool | ) |
Enables or disables cable length effects.
bEnable,true | to enable cable length effects, false to disable it. |
void Options::setEnableExternalNetworkAccess | ( | bool | ) |
Enables or disables external network access from all script modules and device scripts.
bEnable,true | to enable external network access from all script modules and device scripts, false to disable it. |
void Options::setGuiTabHidden | ( | bool | ) |
Enables or disables the GUI tab visibility.
bEnable,true | to enable GUI tab visibility, false to disable it. |
void Options::setHideDevLabel | ( | bool | , |
bool | |||
) |
Enables or disables hiding of device name labels.
bEnable,true | to enable hiding of device name labels, false to disable it. |
isWorkspaceActive,true | if the workspace is active, false if not. |
void Options::setHideDevModelLabel | ( | bool | , |
bool | |||
) |
Enables or disables hiding of device model labels.
bEnable,true | to enable hiding of device model labels, false to disable it. |
isWorkspaceActive,true | if the workspace is active, false if not. |
void Options::setHideQoSStamp | ( | bool | , |
bool | |||
) |
Enables or disables hiding of QoS stamps.
bEnable,true | to enable hiding of QoS stamps, false to disable it. |
isWorkspaceActive,true | if the workspace is active, false if not. |
void Options::setIsChallenge_PDUInfo | ( | bool | ) |
Enables or disables the Challenge Mode in PDU info.
bEnable,true | to enable Challenge Mode in PDU info, false to disable it. |
void Options::setIsDockFirst | ( | bool | ) |
Enables or disables dock first.
bEnable,true | to enable dock first, false to disable it. |
void Options::setIsLinkLightShown | ( | bool | ) |
Enables or disables link light visibility.
bEnable,true | to enable link light visibility, false to disable it. |
void Options::setIsLoggingEnabled | ( | bool | ) |
Enables or disables logging.
bEnable,true | to enable logging, false to disable it. |
void Options::setIsPortShown | ( | bool | ) |
Enables or disables the port label visibility.
bEnable,true | to enable port label visibility, false to disable it. |
void Options::setMainToolbarShown | ( | bool | ) |
void Options::setPhysicalTabHidden | ( | bool | ) |
Enables or disables the Physical tab visibility.
bEnable,true | to enable Physical tab visibility, false to disable it. |
void Options::setPortNotShownOnMouseOver | ( | bool | ) |
Enables or disables the port label visibility on mouse over.
bEnable,true | to enable port label visibility on mouse over, false to disable it. |
void Options::setSecondaryToolbarShown | ( | bool | ) |
void Options::setShowDevTaskbar | ( | bool | ) |
Enables or disables the device taskbar.
bEnable,true | to enable the device taskbar, false to disable it. |
void Options::setSound | ( | bool | ) |
Enables or disables sound.
bEnable,true | to enable sound, false to disable it. |
void Options::setTelephonySound | ( | bool | ) |
Enables or disables telephony sound.
bEnable,true | to enable telephony sound, false to disable it. |
void Options::setUseCliDefaultTab | ( | bool | ) |
Enables or disables the CLI tab as the default tab.
bEnable,true | to enable the CLI tab as the default tab, false to disable it. |
void Options::setUseMetric | ( | bool | ) |
Sets whether to use Metric System.
bMetric,true | to use Metric System, false to use Imperial System. |