MythTV  master
Public Types | Public Member Functions | Private Attributes | List of all members
ParentalLevel Class Reference

#include <parentalcontrols.h>

Public Types

enum  Level {
  plNone = 0, plLowest = 1, plLow = 2, plMedium = 3,
  plHigh = 4
}
 

Public Member Functions

 ParentalLevel (Level pl)
 
 ParentalLevel (int pl)
 
 ParentalLevel (const ParentalLevel &rhs)
 
ParentalLeveloperator= (const ParentalLevel &rhs)
 
ParentalLeveloperator= (Level pl)
 
ParentalLeveloperator++ ()
 
ParentalLeveloperator+= (int amount)
 
ParentalLeveloperator-- ()
 
ParentalLeveloperator-= (int amount)
 
Level GetLevel () const
 
void reset ()
 
bool good () const
 

Private Attributes

Level m_level
 
bool m_hitlimit {false}
 

Detailed Description

Definition at line 9 of file parentalcontrols.h.

Member Enumeration Documentation

◆ Level

Enumerator
plNone 
plLowest 
plLow 
plMedium 
plHigh 

Definition at line 12 of file parentalcontrols.h.

Constructor & Destructor Documentation

◆ ParentalLevel() [1/3]

ParentalLevel::ParentalLevel ( Level  pl)

Definition at line 63 of file parentalcontrols.cpp.

◆ ParentalLevel() [2/3]

ParentalLevel::ParentalLevel ( int  pl)
explicit

Definition at line 67 of file parentalcontrols.cpp.

◆ ParentalLevel() [3/3]

ParentalLevel::ParentalLevel ( const ParentalLevel rhs)

Definition at line 72 of file parentalcontrols.cpp.

Member Function Documentation

◆ operator=() [1/2]

ParentalLevel & ParentalLevel::operator= ( const ParentalLevel rhs)

Definition at line 77 of file parentalcontrols.cpp.

◆ operator=() [2/2]

ParentalLevel & ParentalLevel::operator= ( Level  pl)

Definition at line 88 of file parentalcontrols.cpp.

◆ operator++()

ParentalLevel & ParentalLevel::operator++ ( )

Definition at line 94 of file parentalcontrols.cpp.

◆ operator+=()

ParentalLevel & ParentalLevel::operator+= ( int  amount)

Definition at line 103 of file parentalcontrols.cpp.

◆ operator--()

ParentalLevel & ParentalLevel::operator-- ( )

Definition at line 109 of file parentalcontrols.cpp.

◆ operator-=()

ParentalLevel & ParentalLevel::operator-= ( int  amount)

Definition at line 118 of file parentalcontrols.cpp.

◆ GetLevel()

ParentalLevel::Level ParentalLevel::GetLevel ( ) const

◆ reset()

void ParentalLevel::reset ( )
inline

Definition at line 28 of file parentalcontrols.h.

◆ good()

bool ParentalLevel::good ( ) const
inline

Definition at line 29 of file parentalcontrols.h.

Member Data Documentation

◆ m_level

Level ParentalLevel::m_level
private

◆ m_hitlimit

bool ParentalLevel::m_hitlimit {false}
private

Definition at line 33 of file parentalcontrols.h.

Referenced by operator++(), operator--(), and operator=().


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