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

#include <upnputil.h>

Collaboration diagram for NameValue:
Collaboration graph
[legend]

Public Member Functions

 NameValue ()=default
 
 NameValue (const QString &name, const QString &value, bool required=false)
 
 NameValue (const QString &name, const char *value, bool required=false)
 
 NameValue (const QString &name, int value, bool required=false)
 
 NameValue (const QString &name, long value, bool required=false)
 
 NameValue (const QString &name, qlonglong value, bool required=false)
 
 NameValue (const QString &name, uint value, bool required=false)
 
 NameValue (const QString &name, ulong value, bool required=false)
 
 NameValue (const QString &name, qulonglong value, bool required=false)
 
 NameValue (const QString &name, bool value, bool required=false)
 
 NameValue (const NameValue &nv)
 
NameValueoperator= (const NameValue &nv)
 
 ~NameValue ()
 
void AddAttribute (const QString &name, const QString &value, bool required)
 
QString toXML ()
 

Public Attributes

QString m_sName
 
QString m_sValue
 
bool m_bRequired {false}
 
NameValuesm_pAttributes {nullptr}
 

Detailed Description

Definition at line 47 of file upnputil.h.

Constructor & Destructor Documentation

◆ NameValue() [1/11]

NameValue::NameValue ( )
default

Referenced by AddAttribute().

◆ NameValue() [2/11]

NameValue::NameValue ( const QString &  name,
const QString &  value,
bool  required = false 
)
inline

Definition at line 58 of file upnputil.h.

◆ NameValue() [3/11]

NameValue::NameValue ( const QString &  name,
const char *  value,
bool  required = false 
)
inline

Definition at line 60 of file upnputil.h.

◆ NameValue() [4/11]

NameValue::NameValue ( const QString &  name,
int  value,
bool  required = false 
)
inline

Definition at line 62 of file upnputil.h.

◆ NameValue() [5/11]

NameValue::NameValue ( const QString &  name,
long  value,
bool  required = false 
)
inline

Definition at line 64 of file upnputil.h.

◆ NameValue() [6/11]

NameValue::NameValue ( const QString &  name,
qlonglong  value,
bool  required = false 
)
inline

Definition at line 66 of file upnputil.h.

◆ NameValue() [7/11]

NameValue::NameValue ( const QString &  name,
uint  value,
bool  required = false 
)
inline

Definition at line 68 of file upnputil.h.

◆ NameValue() [8/11]

NameValue::NameValue ( const QString &  name,
ulong  value,
bool  required = false 
)
inline

Definition at line 70 of file upnputil.h.

◆ NameValue() [9/11]

NameValue::NameValue ( const QString &  name,
qulonglong  value,
bool  required = false 
)
inline

Definition at line 72 of file upnputil.h.

◆ NameValue() [10/11]

NameValue::NameValue ( const QString &  name,
bool  value,
bool  required = false 
)
inline

Definition at line 74 of file upnputil.h.

◆ NameValue() [11/11]

NameValue::NameValue ( const NameValue nv)
inline

Definition at line 86 of file upnputil.h.

◆ ~NameValue()

NameValue::~NameValue ( )
inline

Definition at line 118 of file upnputil.h.

Member Function Documentation

◆ operator=()

NameValue & NameValue::operator= ( const NameValue nv)
inline

Definition at line 96 of file upnputil.h.

◆ AddAttribute()

void NameValue::AddAttribute ( const QString &  name,
const QString &  value,
bool  required 
)
inline

Definition at line 127 of file upnputil.h.

Referenced by UPnpDeviceDesc::_InternalLoad().

◆ toXML()

QString NameValue::toXML ( )
inline

Definition at line 137 of file upnputil.h.

Member Data Documentation

◆ m_sName

QString NameValue::m_sName

Definition at line 50 of file upnputil.h.

Referenced by UPnpDeviceDesc::FormatValue(), operator=(), and toXML().

◆ m_sValue

QString NameValue::m_sValue

Definition at line 51 of file upnputil.h.

Referenced by UPnpDeviceDesc::FormatValue(), operator=(), and toXML().

◆ m_bRequired

bool NameValue::m_bRequired {false}

Definition at line 52 of file upnputil.h.

Referenced by operator=().

◆ m_pAttributes

NameValues* NameValue::m_pAttributes {nullptr}

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