• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.38 API Reference
  • KDE Home
  • Contact Us
 

Solid

  • Solid
  • InternetGateway
Public Types | Signals | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
Solid::InternetGateway Class Reference

#include <internetgateway.h>

Inheritance diagram for Solid::InternetGateway:
Solid::DeviceInterface QObject

Public Types

enum  InternetStatus { InternetEnabled = 0 , InternetDisabled = 1 , UnknownStatus = 2 }
 
enum  NetworkProtocol { TCP = 0 , UDP = 1 }
 
- Public Types inherited from Solid::DeviceInterface
enum  Type {
  Unknown = 0 , GenericInterface = 1 , Processor = 2 , Block = 3 ,
  StorageAccess = 4 , StorageDrive = 5 , OpticalDrive = 6 , StorageVolume = 7 ,
  OpticalDisc = 8 , Camera = 9 , PortableMediaPlayer = 10 , NetworkInterface = 11 ,
  AcAdapter = 12 , Battery = 13 , Button = 14 , AudioInterface = 15 ,
  DvbInterface = 16 , Video = 17 , SerialInterface = 18 , SmartCardReader = 19 ,
  InternetGateway = 20 , NetworkShare = 21 , Last = 0xffff
}
 

Signals

void currentConnectionsDataIsReady (QStringList currentConnections)
 
void enabledForInternet (bool enabled)
 
void portMappingAdded (const QString &remoteHost, qint16 externalPort, const NetworkProtocol &mappingProtocol, qint16 internalPort, const QString &internalClient)
 
void portMappingDeleted (const QString &remoteHost, qint16 externalPort, const NetworkProtocol &mappingProtocol)
 

Public Member Functions

virtual ~InternetGateway ()
 
void addPortMapping (const QString &remoteHost, qint16 externalPort, const NetworkProtocol &mappingProtocol, qint16 internalPort, const QString &internalClient)
 
QStringList currentConnections () const
 
void deletePortMapping (const QString &remoteHost, qint16 externalPort, const NetworkProtocol &mappingProtocol)
 
InternetStatus isEnabledForInternet () const
 
void requestCurrentConnections () const
 
void setEnabledForInternet (bool enabled)
 
- Public Member Functions inherited from Solid::DeviceInterface
virtual ~DeviceInterface ()
 
bool isValid () const
 

Static Public Member Functions

static Type deviceInterfaceType ()
 
- Static Public Member Functions inherited from Solid::DeviceInterface
static Type stringToType (const QString &type)
 
static QString typeDescription (Type type)
 
static QString typeToString (Type type)
 

Protected Member Functions

 InternetGateway (InternetGatewayPrivate &dd, QObject *backendObject)
 
- Protected Member Functions inherited from Solid::DeviceInterface
 DeviceInterface (DeviceInterfacePrivate &dd, QObject *backendObject)
 

Additional Inherited Members

- Protected Attributes inherited from Solid::DeviceInterface
DeviceInterfacePrivate * d_ptr
 

Detailed Description

Definition at line 37 of file internetgateway.h.

Member Enumeration Documentation

◆ InternetStatus

enum Solid::InternetGateway::InternetStatus
Enumerator
InternetEnabled 
InternetDisabled 
UnknownStatus 

Definition at line 47 of file internetgateway.h.

◆ NetworkProtocol

enum Solid::InternetGateway::NetworkProtocol
Enumerator
TCP 
UDP 

Definition at line 49 of file internetgateway.h.

Constructor & Destructor Documentation

◆ ~InternetGateway()

Solid::InternetGateway::~InternetGateway ( )
virtual

Definition at line 69 of file internetgateway.cpp.

◆ InternetGateway()

Solid::InternetGateway::InternetGateway ( InternetGatewayPrivate &  dd,
QObject *  backendObject 
)
protected

Definition at line 50 of file internetgateway.cpp.

Member Function Documentation

◆ addPortMapping()

void Solid::InternetGateway::addPortMapping ( const QString &  remoteHost,
qint16  externalPort,
const NetworkProtocol &  mappingProtocol,
qint16  internalPort,
const QString &  internalClient 
)

Definition at line 87 of file internetgateway.cpp.

◆ currentConnections()

QStringList Solid::InternetGateway::currentConnections ( ) const

Definition at line 80 of file internetgateway.cpp.

◆ currentConnectionsDataIsReady

void Solid::InternetGateway::currentConnectionsDataIsReady ( QStringList  currentConnections)
signal

◆ deletePortMapping()

void Solid::InternetGateway::deletePortMapping ( const QString &  remoteHost,
qint16  externalPort,
const NetworkProtocol &  mappingProtocol 
)

Definition at line 96 of file internetgateway.cpp.

◆ deviceInterfaceType()

static Type Solid::InternetGateway::deviceInterfaceType ( )
inlinestatic

Definition at line 53 of file internetgateway.h.

◆ enabledForInternet

void Solid::InternetGateway::enabledForInternet ( bool  enabled)
signal

◆ isEnabledForInternet()

InternetGateway::InternetStatus Solid::InternetGateway::isEnabledForInternet ( ) const

Definition at line 104 of file internetgateway.cpp.

◆ portMappingAdded

void Solid::InternetGateway::portMappingAdded ( const QString &  remoteHost,
qint16  externalPort,
const NetworkProtocol &  mappingProtocol,
qint16  internalPort,
const QString &  internalClient 
)
signal

◆ portMappingDeleted

void Solid::InternetGateway::portMappingDeleted ( const QString &  remoteHost,
qint16  externalPort,
const NetworkProtocol &  mappingProtocol 
)
signal

◆ requestCurrentConnections()

void Solid::InternetGateway::requestCurrentConnections ( ) const

Definition at line 73 of file internetgateway.cpp.

◆ setEnabledForInternet()

void Solid::InternetGateway::setEnabledForInternet ( bool  enabled)

Definition at line 111 of file internetgateway.cpp.


The documentation for this class was generated from the following files:
  • internetgateway.h
  • internetgateway.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Solid

Skip menu "Solid"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal