Switchboard SDK
Loading...
Searching...
No Matches
switchboard::LicenseSession Class Referenceabstract

Tracks the state of a license session. More...

#include <LicenseSession.hpp>

Inheritance diagram for switchboard::LicenseSession:
switchboard::LicenseSessionInternal

Public Member Functions

virtual LicenseSessionState getState () const =0
 
virtual void trackUsage (const double usage)=0
 
virtual double getUnreportedUsage () const =0
 

Detailed Description

Tracks the state of a license session.

LicenseSession class.

Member Function Documentation

◆ getState()

virtual LicenseSessionState switchboard::LicenseSession::getState ( ) const
pure virtual

Returns the state of the license session.

Returns
The current state.

Implemented in switchboard::LicenseSessionInternal.

◆ getUnreportedUsage()

virtual double switchboard::LicenseSession::getUnreportedUsage ( ) const
pure virtual

Returns the number of unreported usage seconds.

Returns
The number of seconds that has not been registered.

Implemented in switchboard::LicenseSessionInternal.

◆ trackUsage()

virtual void switchboard::LicenseSession::trackUsage ( const double usage)
pure virtual

Tracks usage for the license session.

Parameters
usageThe number of seconds to track.

Implemented in switchboard::LicenseSessionInternal.