OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
NetworkTools Class Reference

#include "NetworkTools.h"

Inheritance diagram for NetworkTools:
otoolkit::Tool

Public Types

enum  NetworkToolStatus { Idle = 0x00 , PortBlockerRunning = 0x01 }
 
typedef ot::Flags< NetworkToolStatusNetworkToolStatusFlags
 

Public Member Functions

 NetworkTools ()
 
virtual ~NetworkTools ()
 
virtual QString getToolName (void) const override
 Return the unique tool name The name will be used to create all required menu entries.
 
virtual bool runTool (QMenu *_rootMenu, otoolkit::ToolWidgets &_content) override
 Create the central widget that will be displayed to the user in the main tab view.
 
virtual void restoreToolSettings (QSettings &_settings) override
 
virtual bool prepareToolShutdown (QSettings &_settings) override
 Stop all the logic of this tool.
 
- Public Member Functions inherited from otoolkit::Tool
 Tool ()
 
virtual ~Tool ()
 
virtual QIcon getToolIcon (void) const
 Return the icon that will be used in the tool menu.
 
virtual void toolWasShown (void)
 
virtual void toolWasHidden (void)
 
void setToolIsRunning (bool _isRunning)
 
bool getToolIsRunning (void) const
 
void setToolIsExternal (bool _isExternal)
 
bool getToolIsExternal (void) const
 

Additional Inherited Members

- Protected Member Functions inherited from otoolkit::Tool
ot::WidgetViewcreateCentralWidgetView (QWidget *_widget, const QString &_widgetName) const
 
ot::WidgetViewcreateSideWidgetView (QWidget *_widget, const QString &_widgetName) const
 
ot::WidgetViewcreateToolWidgetView (QWidget *_widget, const QString &_widgetName) const
 

Member Typedef Documentation

◆ NetworkToolStatusFlags

Member Enumeration Documentation

◆ NetworkToolStatus

Enumerator
Idle 
PortBlockerRunning 

Constructor & Destructor Documentation

◆ NetworkTools()

NetworkTools::NetworkTools ( )

◆ ~NetworkTools()

NetworkTools::~NetworkTools ( )
virtual

Member Function Documentation

◆ getToolName()

virtual QString NetworkTools::getToolName ( void ) const
inlineoverridevirtual

Return the unique tool name The name will be used to create all required menu entries.

Implements otoolkit::Tool.

◆ prepareToolShutdown()

bool NetworkTools::prepareToolShutdown ( QSettings & _settings)
overridevirtual

Stop all the logic of this tool.

Reimplemented from otoolkit::Tool.

◆ restoreToolSettings()

void NetworkTools::restoreToolSettings ( QSettings & _settings)
overridevirtual

Reimplemented from otoolkit::Tool.

◆ runTool()

bool NetworkTools::runTool ( QMenu * _rootMenu,
otoolkit::ToolWidgets & _content )
overridevirtual

Create the central widget that will be displayed to the user in the main tab view.

Implements otoolkit::Tool.


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