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
Collaboration diagram for SingleValue:
Collaboration graph

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 12 of file dbaccess.h.

Member Typedef Documentation

◆ entry

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

Definition at line 15 of file dbaccess.h.

◆ entry_list

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

Definition at line 16 of file dbaccess.h.

Constructor & Destructor Documentation

◆ SingleValue()

SingleValue::SingleValue ( SingleValueImp imp)

Definition at line 29 of file dbaccess.h.

◆ ~SingleValue()

SingleValue::~SingleValue ( )

Definition at line 209 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 224 of file dbaccess.cpp.

◆ exists() [1/2]

bool SingleValue::exists ( int  id)

Definition at line 229 of file dbaccess.cpp.

◆ exists() [2/2]

bool SingleValue::exists ( const QString &  name)

Definition at line 234 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}

Definition at line 33 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: