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

#include <dbaccess.h>

Inheritance diagram for SingleValue:
Inheritance graph
[legend]
Collaboration diagram for SingleValue:
Collaboration graph
[legend]

Public Types

using entry = std::pair< int, QString >
 
using entry_list = std::vector< entry >
 

Public Member Functions

int add (const QString &name)
 
bool get (int id, QString &category)
 
void remove (int id)
 
bool exists (int id)
 
bool exists (const QString &name)
 
const entry_listgetList ()
 
void load_data ()
 

Protected Member Functions

 SingleValue (SingleValueImp *imp)
 
virtual ~SingleValue ()
 

Private Attributes

SingleValueImpm_imp {nullptr}
 

Detailed Description

Definition at line 11 of file dbaccess.h.

Member Typedef Documentation

◆ entry

using SingleValue::entry = std::pair<int, QString>

Definition at line 14 of file dbaccess.h.

◆ entry_list

using SingleValue::entry_list = std::vector<entry>

Definition at line 15 of file dbaccess.h.

Constructor & Destructor Documentation

◆ SingleValue()

SingleValue::SingleValue ( SingleValueImp imp)
inlineexplicitprotected

Definition at line 28 of file dbaccess.h.

◆ ~SingleValue()

SingleValue::~SingleValue ( )
protectedvirtual

Definition at line 210 of file dbaccess.cpp.

Member Function Documentation

◆ add()

int SingleValue::add ( const QString &  name)

◆ get()

bool SingleValue::get ( int  id,
QString &  category 
)

◆ remove()

void SingleValue::remove ( int  id)

Definition at line 225 of file dbaccess.cpp.

◆ exists() [1/2]

bool SingleValue::exists ( int  id)

Definition at line 230 of file dbaccess.cpp.

◆ exists() [2/2]

bool SingleValue::exists ( const QString &  name)

Definition at line 235 of file dbaccess.cpp.

◆ getList()

const SingleValue::entry_list & SingleValue::getList ( )

◆ load_data()

void SingleValue::load_data ( )

Member Data Documentation

◆ m_imp

SingleValueImp* SingleValue::m_imp {nullptr}
private

Definition at line 32 of file dbaccess.h.

Referenced by add(), exists(), get(), getList(), load_data(), remove(), and ~SingleValue().


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