Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Friends | List of all members
SplashOverlay Class Reference

Semi-transparent overlay widget displayed during application startup while Wireshark's protocol and plugin registration is in progress. More...

#include <splash_overlay.h>

Inheritance diagram for SplashOverlay:

Public Member Functions

 SplashOverlay (QWidget *parent=0)
 Constructs the SplashOverlay and begins tracking registration progress.
 
 ~SplashOverlay ()
 Destroys the SplashOverlay and releases animation resources.
 
void fadeOut ()
 Starts a fade-out animation; the widget is hidden when the animation completes.
 

Protected Member Functions

void paintEvent (QPaintEvent *event) override
 Renders the overlay background, progress bar, and status text.
 

Friends

void splash_update (register_action_e action, const char *message, void *dummy)
 C-linkage callback registered with the Wireshark registration framework.
 

Detailed Description

Semi-transparent overlay widget displayed during application startup while Wireshark's protocol and plugin registration is in progress.

Progress text is updated via the C-linkage splash_update() callback, which is declared a friend so it can call the private splashUpdate() method.

Constructor & Destructor Documentation

◆ SplashOverlay()

SplashOverlay::SplashOverlay ( QWidget *  parent = 0)
explicit

Constructs the SplashOverlay and begins tracking registration progress.

Parameters
parentOptional parent widget; the overlay sizes itself to fill the parent.

Member Function Documentation

◆ paintEvent()

void SplashOverlay::paintEvent ( QPaintEvent *  event)
overrideprotected

Renders the overlay background, progress bar, and status text.

Parameters
eventThe paint event (unused; the full widget area is always repainted).

Friends And Related Symbol Documentation

◆ splash_update

void splash_update ( register_action_e  action,
const char *  message,
void *  dummy 
)
friend

C-linkage callback registered with the Wireshark registration framework.

Forwards calls to SplashOverlay::instance_->splashUpdate().

Parameters
actionCurrent registration action.
messageStatus message from the registration framework.
dummyUnused user-data pointer.

This function is called to update the state of the splash overlay, which could be used to display different actions or messages to the user.

Parameters
actionThe type of action to perform on the splash overlay.
messageA string message to display along with the action.
dummyA dummy parameter that is not used and can be ignored.

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