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

typedef std::pair< int, QString > entry
typedef std::vector< entryentry_list

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

typedef std::pair<int, QString> SingleValue::entry

Definition at line 14 of file dbaccess.h.

◆ entry_list

typedef std::vector<entry> SingleValue::entry_list

Definition at line 15 of file dbaccess.h.

Constructor & Destructor Documentation

◆ SingleValue()

SingleValue::SingleValue ( SingleValueImp imp)

Definition at line 28 of file dbaccess.h.

◆ ~SingleValue()

SingleValue::~SingleValue ( )

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

◆ exists() [1/2]

bool SingleValue::exists ( int  id)

Definition at line 232 of file dbaccess.cpp.

◆ exists() [2/2]

bool SingleValue::exists ( const QString &  name)

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