Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
CDbUrl Class Referenceabstract

#include <DbUrl.h>

Inheritance diagram for CDbUrl:
CUrlOptions CMusicDbUrl CVideoDbUrl

Public Member Functions

 CDbUrl ()
 
 ~CDbUrl () override
 
bool IsValid () const
 
void Reset ()
 
std::string ToString () const
 
bool FromString (const std::string &dbUrl)
 
const std::string & GetType () const
 
void AppendPath (const std::string &subPath)
 
void AddOption (const std::string &key, const char *value) override
 
void AddOption (const std::string &key, const std::string &value) override
 
void AddOption (const std::string &key, int value) override
 
void AddOption (const std::string &key, float value) override
 
void AddOption (const std::string &key, double value) override
 
void AddOption (const std::string &key, bool value) override
 
void AddOptions (const std::string &options) override
 
void RemoveOption (const std::string &key) override
 
bool GetOption (const std::string &key, CVariant &value) const
 
const UrlOptionsGetOptions () const
 
std::string GetOptionsString (bool withLeadingSeparator=false) const
 
bool HasOption (const std::string &key) const
 

Protected Member Functions

virtual bool parse ()=0
 
virtual bool validateOption (const std::string &key, const CVariant &value)
 

Protected Attributes

CURL m_url
 
std::string m_type
 

Constructor & Destructor Documentation

◆ CDbUrl()

CDbUrl::CDbUrl ( )

◆ ~CDbUrl()

CDbUrl::~CDbUrl ( )
overridedefault

Member Function Documentation

◆ AddOption() [1/6]

void CDbUrl::AddOption ( const std::string & key,
bool value )
overridevirtual

Reimplemented from CUrlOptions.

◆ AddOption() [2/6]

void CDbUrl::AddOption ( const std::string & key,
const char * value )
overridevirtual

Reimplemented from CUrlOptions.

◆ AddOption() [3/6]

void CDbUrl::AddOption ( const std::string & key,
const std::string & value )
overridevirtual

Reimplemented from CUrlOptions.

◆ AddOption() [4/6]

void CDbUrl::AddOption ( const std::string & key,
double value )
overridevirtual

Reimplemented from CUrlOptions.

◆ AddOption() [5/6]

void CDbUrl::AddOption ( const std::string & key,
float value )
overridevirtual

Reimplemented from CUrlOptions.

◆ AddOption() [6/6]

void CDbUrl::AddOption ( const std::string & key,
int value )
overridevirtual

Reimplemented from CUrlOptions.

◆ AddOptions()

void CDbUrl::AddOptions ( const std::string & options)
overridevirtual

Reimplemented from CUrlOptions.

◆ AppendPath()

void CDbUrl::AppendPath ( const std::string & subPath)

◆ FromString()

bool CDbUrl::FromString ( const std::string & dbUrl)

◆ GetOption()

bool CUrlOptions::GetOption ( const std::string & key,
CVariant & value ) const

◆ GetOptions()

const UrlOptions & CUrlOptions::GetOptions ( ) const
inline

◆ GetOptionsString()

std::string CUrlOptions::GetOptionsString ( bool withLeadingSeparator = false) const

◆ GetType()

const std::string & CDbUrl::GetType ( ) const
inline

◆ HasOption()

bool CUrlOptions::HasOption ( const std::string & key) const

◆ IsValid()

bool CDbUrl::IsValid ( ) const
inline

◆ parse()

virtual bool CDbUrl::parse ( )
protectedpure virtual

Implemented in CMusicDbUrl, and CVideoDbUrl.

◆ RemoveOption()

void CDbUrl::RemoveOption ( const std::string & key)
overridevirtual

Reimplemented from CUrlOptions.

◆ Reset()

void CDbUrl::Reset ( )

◆ ToString()

std::string CDbUrl::ToString ( ) const

◆ validateOption()

bool CDbUrl::validateOption ( const std::string & key,
const CVariant & value )
protectedvirtual

Reimplemented in CMusicDbUrl, and CVideoDbUrl.

Member Data Documentation

◆ m_type

std::string CDbUrl::m_type
protected

◆ m_url

CURL CDbUrl::m_url
protected

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