| Cisco Packet Tracer Extensions API 8.1.0
    API for communication between Cisco Packet Tracer application and its extension applications and modules. | 
WebView allows manipulation of WebViews such as the Instruction dialog and Script Modules. More...
| Public Member Functions | |
| uuid | getWebViewId () | 
| Returns the UUID of this WebView.  More... | |
| QString | evaluateToVariant (QString) | 
| Evaluates the specified script.  More... | |
| void | evaluateJavaScriptAsync (QString) | 
| Evaluates the specified script asynchronously.  More... | |
| void | setHtml (QString) | 
| Sets the HTML content of the WebView.  More... | |
| void | setUrl (QString) | 
| Sets the URL of the WebView.  More... | |
| QString | getUrl () | 
| Returns the URL of the current page being displayed.  More... | |
| QString | getRequestedUrl () | 
| Returns the requested URL, which may be different than what getUrl() returns.  More... | |
| void | show () | 
| Shows the WebView.  More... | |
| void | hide () | 
| Hides the WebView.  More... | |
| void | raise () | 
| Shows the WebView on top of other windows.  More... | |
| void | setWindowTitle (QString) | 
| Sets the window title of the WebView.  More... | |
| void | setGeometry (int, int, int, int) | 
| Sets the window position and geometry of the WebView.  More... | |
| int | getX () | 
| Returns the x position of the webview.  More... | |
| int | getY () | 
| Returns the y position of the webview.  More... | |
| int | getWidth () | 
| Returns the width of the webview.  More... | |
| int | getHeight () | 
| Returns the height of the webview.  More... | |
| void | setMaximumSize (int, int) | 
| Sets the maximum size of the web view.  More... | |
| void | setMaximumWidth (int) | 
| Sets the maximum width of the webview.  More... | |
| void | setMaximumHeight (int) | 
| Sets the maximum height of the webview.  More... | |
| int | getMaximumWidth () | 
| Returns the maximum width of the webview.  More... | |
| int | getMaximumHeight () | 
| Returns the maximum height of the webview.  More... | |
| void | setMinimumSize (int, int) | 
| Sets the minimum size of the web view.  More... | |
| void | setMinimumWidth (int) | 
| Sets the minimum width of the webview.  More... | |
| void | setMinimumHeight (int) | 
| Sets the minimum height of the webview.  More... | |
| int | getMinimumWidth () | 
| Returns the minimum width of the webview.  More... | |
| int | getMinimumHeight () | 
| Returns the minimum height of the webview.  More... | |
| void | setPreferredSize (int, int) | 
| Sets the preferred size of the webview.  More... | |
| int | getPreferredWidth () | 
| Returns the preferred width of the webview.  More... | |
| int | getPreferredHeight () | 
| Returns the preferred height of the webview.  More... | |
| void | isFullScreen () | 
| void | showFullScreen () | 
| void | isMaximized () | 
| void | showMaximized () | 
| void | isMinimized () | 
| void | showMinimized () | 
| void | showNormal () | 
| void | setWindowFlags (WindowFlags) | 
| WindowFlags | getWindowFlags () | 
| Returns the window flags for the WebView. See setWindowFlags() for enum values.  More... | |
| void | setWindowModality (WindowModality) | 
| Sets the window modality for the WebView.  More... | |
| void | setCanClose (bool) | 
| Allows or disallows closing of the WebView.  More... | |
| void | closeRequested (uuid) | 
| IPC event.  More... | |
| void | closed (uuid) | 
| IPC event.  More... | |
| void | onFocus () | 
| IPC event.  More... | |
| void | offFocus () | 
| IPC event.  More... | |
| bool | addAllowedExternalFilter (QString) | 
| bool | removeAllowedExternalFilter (QString) | 
| bool | hasAllowedExternalFilter (QString) | 
| vector< QString > | getAllowedExternalFilters () | 
| void | clearAllowedExternalFilters () | 
| void | close () | 
| void | attachToMainViewArea () | 
| void | detachFromMainViewArea () | 
| bool | isAttachedToMainViewArea () | 
| void | javascriptDone (QString, QString) | 
| IPC event.  More... | |
| void | dockToMainViewArea () | 
| void | dockToMainViewAreaWithOptions (QString, DockWidgetArea, DockWidgetArea, Orientation, DockWidgetFeatures) | 
| void | undockFromMainViewArea () | 
| bool | isDockedToMainViewArea () | 
| QString | getDockWidgetWindowTitle () | 
| void | setDockWidgetWindowTitle (QString) | 
| void | setBackgroundColor (long) | 
| long | getBackgroundColor () | 
| void | setZoomFactor (double) | 
| double | getZoomFactor () | 
| void | fileSystemResourceRequested (SmFileSystemResourceRequest) | 
| IPC event.  More... | |
| void | enableRightClickMenu (bool) | 
WebView allows manipulation of WebViews such as the Instruction dialog and Script Modules.
| bool WebView::addAllowedExternalFilter | ( | QString | ) | 
| void WebView::attachToMainViewArea | ( | ) | 
| void WebView::clearAllowedExternalFilters | ( | ) | 
| void WebView::close | ( | ) | 
| void WebView::closed | ( | uuid | ) | 
IPC event.
| void WebView::closeRequested | ( | uuid | ) | 
IPC event.
| void WebView::detachFromMainViewArea | ( | ) | 
| void WebView::dockToMainViewArea | ( | ) | 
| void WebView::dockToMainViewAreaWithOptions | ( | QString | , | 
| DockWidgetArea | , | ||
| DockWidgetArea | , | ||
| Orientation | , | ||
| DockWidgetFeatures | |||
| ) | 
| void WebView::enableRightClickMenu | ( | bool | ) | 
| void WebView::evaluateJavaScriptAsync | ( | QString | ) | 
Evaluates the specified script asynchronously.
| scriptSource,the | path or source of the script. | 
| QString WebView::evaluateToVariant | ( | QString | ) | 
Evaluates the specified script.
| scriptSource,the | path or source of the script. | 
| void WebView::fileSystemResourceRequested | ( | SmFileSystemResourceRequest | ) | 
IPC event.
| vector< QString > WebView::getAllowedExternalFilters | ( | ) | 
| long WebView::getBackgroundColor | ( | ) | 
| QString WebView::getDockWidgetWindowTitle | ( | ) | 
| int WebView::getHeight | ( | ) | 
Returns the height of the webview.
| int WebView::getMaximumHeight | ( | ) | 
Returns the maximum height of the webview.
| int WebView::getMaximumWidth | ( | ) | 
Returns the maximum width of the webview.
| int WebView::getMinimumHeight | ( | ) | 
Returns the minimum height of the webview.
| int WebView::getMinimumWidth | ( | ) | 
Returns the minimum width of the webview.
| int WebView::getPreferredHeight | ( | ) | 
Returns the preferred height of the webview.
| int WebView::getPreferredWidth | ( | ) | 
Returns the preferred width of the webview.
| QString WebView::getRequestedUrl | ( | ) | 
Returns the requested URL, which may be different than what getUrl() returns.
| QString WebView::getUrl | ( | ) | 
Returns the URL of the current page being displayed.
| uuid WebView::getWebViewId | ( | ) | 
| int WebView::getWidth | ( | ) | 
Returns the width of the webview.
| WindowFlags WebView::getWindowFlags | ( | ) | 
Returns the window flags for the WebView. See setWindowFlags() for enum values.
| int WebView::getX | ( | ) | 
Returns the x position of the webview.
| int WebView::getY | ( | ) | 
Returns the y position of the webview.
| double WebView::getZoomFactor | ( | ) | 
| bool WebView::hasAllowedExternalFilter | ( | QString | ) | 
| void WebView::hide | ( | ) | 
Hides the WebView.
| bool WebView::isAttachedToMainViewArea | ( | ) | 
| bool WebView::isDockedToMainViewArea | ( | ) | 
| void WebView::isFullScreen | ( | ) | 
| void WebView::isMaximized | ( | ) | 
| void WebView::isMinimized | ( | ) | 
| void WebView::javascriptDone | ( | QString | , | 
| QString | |||
| ) | 
IPC event.
| void WebView::offFocus | ( | ) | 
IPC event.
| void WebView::onFocus | ( | ) | 
IPC event.
| void WebView::raise | ( | ) | 
Shows the WebView on top of other windows.
| bool WebView::removeAllowedExternalFilter | ( | QString | ) | 
| void WebView::setBackgroundColor | ( | long | ) | 
| void WebView::setCanClose | ( | bool | ) | 
| void WebView::setDockWidgetWindowTitle | ( | QString | ) | 
| void WebView::setGeometry | ( | int | , | 
| int | , | ||
| int | , | ||
| int | |||
| ) | 
| void WebView::setHtml | ( | QString | ) | 
| void WebView::setMaximumHeight | ( | int | ) | 
Sets the maximum height of the webview.
| void WebView::setMaximumSize | ( | int | , | 
| int | |||
| ) | 
Sets the maximum size of the web view.
| void WebView::setMaximumWidth | ( | int | ) | 
Sets the maximum width of the webview.
| void WebView::setMinimumHeight | ( | int | ) | 
Sets the minimum height of the webview.
| void WebView::setMinimumSize | ( | int | , | 
| int | |||
| ) | 
Sets the minimum size of the web view.
| void WebView::setMinimumWidth | ( | int | ) | 
Sets the minimum width of the webview.
| void WebView::setPreferredSize | ( | int | , | 
| int | |||
| ) | 
Sets the preferred size of the webview.
| void WebView::setUrl | ( | QString | ) | 
| void WebView::setWindowFlags | ( | WindowFlags | ) | 
    \brief Sets the window flags for the WebView.
    \param flags,   the window flags.
                    Window flags:
                        Widget = 0x00000000,
                        Window = 0x00000001,
                        Dialog = 0x00000002 | Window,
                        Sheet = 0x00000004 | Window,
                        Drawer = Sheet | Dialog,
                        Popup = 0x00000008 | Window,
                        Tool = Popup | Dialog,
                        ToolTip = Popup | Sheet,
                        SplashScreen = ToolTip | Dialog,
                        Desktop = 0x00000010 | Window,
                        SubWindow = 0x00000012,
                        ForeignWindow = 0x00000020 | Window,
                        CoverWindow = 0x00000040 | Window,
                        WindowType_Mask = 0x000000ff,
                        MSWindowsFixedSizeDialogHint = 0x00000100,
                        MSWindowsOwnDC = 0x00000200,
                        BypassWindowManagerHint = 0x00000400,
                        X11BypassWindowManagerHint = BypassWindowManagerHint,
                        FramelessWindowHint = 0x00000800,
                        WindowTitleHint = 0x00001000,
                        WindowSystemMenuHint = 0x00002000,
                        WindowMinimizeButtonHint = 0x00004000,
                        WindowMaximizeButtonHint = 0x00008000,
                        WindowMinMaxButtonsHint = WindowMinimizeButtonHint | WindowMaximizeButtonHint,
                        WindowContextHelpButtonHint = 0x00010000,
                        WindowShadeButtonHint = 0x00020000,
                        WindowStaysOnTopHint = 0x00040000,
                        WindowTransparentForInput = 0x00080000,
                        WindowOverridesSystemGestures = 0x00100000,
                        WindowDoesNotAcceptFocus = 0x00200000,
                        MaximizeUsingFullscreenGeometryHint = 0x00400000,
                        CustomizeWindowHint = 0x02000000,
                        WindowStaysOnBottomHint = 0x04000000,
                        WindowCloseButtonHint = 0x08000000,
                        MacWindowToolBarButtonHint = 0x10000000,
                        BypassGraphicsProxyWidget = 0x20000000,
                        NoDropShadowWindowHint = 0x40000000,
                        WindowFullscreenButtonHint = 0x80000000,
The following enums have overlapping values with other enums. This was not intentional, but it's too late to change now. WindowOkButtonHint = 0x00080000, // WindowTransparentForInput WindowCancelButtonHint = 0x00100000 // WindowOverridesSystemGestures
| void WebView::setWindowModality | ( | WindowModality | ) | 
Sets the window modality for the WebView.
| modality,the | window modality. Window flags: Qt::NonModal = 0, Qt::WindowModal = 1, Qt::ApplicationModal = 2, | 
| void WebView::setWindowTitle | ( | QString | ) | 
| void WebView::setZoomFactor | ( | double | ) | 
| void WebView::show | ( | ) | 
Shows the WebView.
| void WebView::showFullScreen | ( | ) | 
| void WebView::showMaximized | ( | ) | 
| void WebView::showMinimized | ( | ) | 
| void WebView::showNormal | ( | ) | 
| void WebView::undockFromMainViewArea | ( | ) |