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

A class that uniquely identifies an action. More...

#include <action.h>

Public Member Functions

 ActionID (void)
 Create an empty action. More...
 
 ActionID (QString context, QString action)
 Create a new action identifier. More...
 
 ActionID (const ActionID &)=default
 
ActionIDoperator= (const ActionID &)=default
 
QString GetContext (void) const
 Returns the context name. More...
 
QString GetAction (void) const
 Returns the action name. More...
 
bool operator== (const ActionID &other) const
 

Private Attributes

QString m_context
 
QString m_action
 

Detailed Description

A class that uniquely identifies an action.

Actions are identified based on their action name and context.

Definition at line 84 of file action.h.

Constructor & Destructor Documentation

◆ ActionID() [1/3]

ActionID::ActionID ( void  )

Create an empty action.

◆ ActionID() [2/3]

ActionID::ActionID ( QString  context,
QString  action 
)
inline

Create a new action identifier.

Parameters
contextThe action's context
actionThe action's name

Definition at line 94 of file action.h.

◆ ActionID() [3/3]

ActionID::ActionID ( const ActionID )
default

Member Function Documentation

◆ operator=()

ActionID& ActionID::operator= ( const ActionID )
default

◆ GetContext()

QString ActionID::GetContext ( void  ) const
inline

Returns the context name.

Definition at line 100 of file action.h.

Referenced by MythControls::ResolveConflict().

◆ GetAction()

QString ActionID::GetAction ( void  ) const
inline

Returns the action name.

Definition at line 103 of file action.h.

Referenced by MythControls::ResolveConflict().

◆ operator==()

bool ActionID::operator== ( const ActionID other) const
inline

Definition at line 105 of file action.h.

Member Data Documentation

◆ m_context

QString ActionID::m_context
private

Definition at line 112 of file action.h.

Referenced by GetContext(), and operator==().

◆ m_action

QString ActionID::m_action
private

Definition at line 113 of file action.h.

Referenced by GetAction(), and operator==().


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