Switchboard SDK
Loading...
Searching...
No Matches
switchboard::LicenseSessionInternal Class Reference
Inheritance diagram for switchboard::LicenseSessionInternal:
switchboard::LicenseSession

Public Member Functions

 LicenseSessionInternal (const std::string &productID)
 
const std::string & getProductID () const
 
LicenseSessionState getState () const override
 
void setState (LicenseSessionState newState)
 
int getSessionRequestID () const
 
void setSessionRequestID (const int newValue)
 
std::chrono::time_point< std::chrono::system_clock > getLastSessionRequestTime () const
 
int getUsageRequestID () const
 
void setUsageRequestID (const int newValue)
 
std::chrono::time_point< std::chrono::system_clock > getLastUsageRequestTime () const
 
const std::string & getSessionID () const
 
void setSessionID (const std::string &newValue)
 
void trackUsage (const double usage) override
 
double getUnreportedUsage () const override
 
void setPendingUsage (const double newValue)
 
void commitPendingUsage ()
 
- Public Member Functions inherited from switchboard::LicenseSession

Member Function Documentation

◆ getState()

LicenseSessionState switchboard::LicenseSessionInternal::getState ( ) const
overridevirtual

Returns the state of the license session.

Returns
The current state.

Implements switchboard::LicenseSession.

◆ getUnreportedUsage()

double switchboard::LicenseSessionInternal::getUnreportedUsage ( ) const
overridevirtual

Returns the number of unreported usage seconds.

Returns
The number of seconds that has not been registered.

Implements switchboard::LicenseSession.

◆ trackUsage()

void switchboard::LicenseSessionInternal::trackUsage ( const double usage)
overridevirtual

Tracks usage for the license session.

Parameters
usageThe number of seconds to track.

Implements switchboard::LicenseSession.