31 mutable QByteArray m_oValueToReturnConstChar;
62 if (strValue !=
nullptr)
73 const char*
Get()
const override
75 const tChar* strValue =
"";
79 strValue = m_oValueToReturnConstChar.data();
89 return IString::InvalidPos;
94 using ant::cQtIStringImpl;
120 #define adtf_qstring_intf(q_string_val) ::adtf::ui::cQtIStringImpl(& (q_string_val))
char tChar
The tChar defines the type for platform character set (platform and compiler dependent type).
#define RETURN_NOERROR
Return status ERR_NOERROR, which requires the calling function's return type to be tResult.
#define RETURN_ERROR(code)
Return specific error code, which requires the calling function's return type to be tResult.
A common result class usable as return value throughout.
The IString interface provides methods for getting and setting strings through abstract interfaces.
Wrapping template for a rvalue reference of an IString interface for the type T (see Supported types ...
Specialisation for QString class, because the QString stores values as unsigned short.
cQtIStringImpl(QString *pstrAssignValue)
CTOR with pointer to the value of value_type.
tResult Set(const char *strValue) override
Sets the given null-terminated string to the implementation.
cQtIStringImpl & operator=(const cQtIStringImpl &strValue)=delete
copy operator
cQtIStringImpl & operator=(cQtIStringImpl &&strValue)=delete
move operator
cQtIStringImpl(cQtIStringImpl &&strValue)=delete
move CTOR
cQtIStringImpl()=delete
CTOR.
size_t GetLength() const override
Gets the current size of the strng.
QString * m_pAssignValue
pointer to the value
cQtIStringImpl(const cQtIStringImpl &strValue)=delete
copy CTOR
const char * Get() const override
Gets the pointer to the current associated nullterminated-string.
Namespace for entire ADTF SDK.
Copyright © Audi Electronics Venture GmbH.