Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QPcscSlotName Class Reference

#include <qpcsc_p.h>

+ Inheritance diagram for QPcscSlotName:
+ Collaboration diagram for QPcscSlotName:

Public Types

using CPtr = LPCSTR
 
using Ptr = LPSTR
 
- Public Types inherited from QByteArray
enum  Base64Option {
  Base64Encoding = 0 , Base64UrlEncoding = 1 , KeepTrailingEquals = 0 , OmitTrailingEquals = 2 ,
  IgnoreBase64DecodingErrors = 0 , AbortOnBase64DecodingErrors = 4
}
 
enum class  Base64DecodingStatus { Ok , IllegalInputLength , IllegalCharacter , IllegalPadding }
 
using DataPointer = QByteArrayData
 
typedef char * iterator
 This typedef provides an STL-style non-const iterator for QByteArray.
 
typedef const char * const_iterator
 This typedef provides an STL-style const iterator for QByteArray.
 
typedef iterator Iterator
 
typedef const_iterator ConstIterator
 
typedef std::reverse_iterator< iteratorreverse_iterator
 
typedef std::reverse_iterator< const_iteratorconst_reverse_iterator
 
typedef qsizetype size_type
 
typedef qptrdiff difference_type
 
typedef const char & const_reference
 
typedef char & reference
 
typedef char * pointer
 
typedef const char * const_pointer
 
typedef char value_type
 

Public Member Functions

 QPcscSlotName (CPtr p)
 
CPtr ptr () const noexcept
 
Ptr ptr ()
 
- Public Member Functions inherited from QByteArray
constexpr QByteArray () noexcept
 Constructs an empty byte array.
 
 QByteArray (const char *, qsizetype size=-1)
 Constructs a byte array containing the first size bytes of array data.
 
 QByteArray (qsizetype size, char c)
 Constructs a byte array of size size with every byte set to ch.
 
 QByteArray (qsizetype size, Qt::Initialization)
 Constructs a byte array of size size with uninitialized contents.
 
 QByteArray (QByteArrayView v)
 
 QByteArray (const QByteArray &) noexcept
 Constructs a copy of other.
 
 ~QByteArray ()
 Destroys the byte array.
 
QByteArrayoperator= (const QByteArray &) noexcept
 Assigns other to this byte array and returns a reference to this byte array.
 
QByteArrayoperator= (const char *str)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Assigns str to this byte array.
 
 QByteArray (QByteArray &&other) noexcept=default
 Move-constructs a QByteArray instance, making it point at the same object that other was pointing to.
 
void swap (QByteArray &other) noexcept
 
bool isEmpty () const noexcept
 Returns true if the byte array has size 0; otherwise returns false.
 
void resize (qsizetype size)
 Sets the size of the byte array to size bytes.
 
void resize (qsizetype size, char c)
 
void resizeForOverwrite (qsizetype size)
 
QByteArrayfill (char c, qsizetype size=-1)
 Sets every byte in the byte array to ch.
 
qsizetype capacity () const
 Returns the maximum number of bytes that can be stored in the byte array without forcing a reallocation.
 
void reserve (qsizetype size)
 Attempts to allocate memory for at least size bytes.
 
void squeeze ()
 Releases any memory not required to store the array's data.
 
 operator const char * () const
 
 operator const void * () const
 
char * data ()
 \macro QT_NO_CAST_FROM_BYTEARRAY
 
const char * data () const noexcept
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
const char * constData () const noexcept
 Returns a pointer to the const data stored in the byte array.
 
void detach ()
 
bool isDetached () const
 
bool isSharedWith (const QByteArray &other) const noexcept
 
void clear ()
 Clears the contents of the byte array and makes it null.
 
char at (qsizetype i) const
 Returns the byte at index position i in the byte array.
 
char operator[] (qsizetype i) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Same as at(i).
 
char & operator[] (qsizetype i)
 Returns the byte at index position i as a modifiable reference.
 
char front () const
 
char & front ()
 
char back () const
 
char & back ()
 
qsizetype indexOf (char c, qsizetype from=0) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Returns the index position of the start of the first occurrence of the byte ch in this byte array, searching forward from index position from.
 
qsizetype indexOf (QByteArrayView bv, qsizetype from=0) const
 
qsizetype lastIndexOf (char c, qsizetype from=-1) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Returns the index position of the start of the last occurrence of byte ch in this byte array, searching backward from index position from.
 
qsizetype lastIndexOf (QByteArrayView bv) const
 
qsizetype lastIndexOf (QByteArrayView bv, qsizetype from) const
 
bool contains (char c) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Returns true if the byte array contains the byte ch; otherwise returns false.
 
bool contains (QByteArrayView bv) const
 
qsizetype count (char c) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Returns the number of occurrences of byte ch in the byte array.
 
qsizetype count (QByteArrayView bv) const
 
int compare (QByteArrayView a, Qt::CaseSensitivity cs=Qt::CaseSensitive) const noexcept
 
QByteArray left (qsizetype n) const &
 
QByteArray left (qsizetype n) &&
 
QByteArray right (qsizetype n) const &
 
QByteArray right (qsizetype n) &&
 
QByteArray mid (qsizetype index, qsizetype len=-1) const &
 
QByteArray mid (qsizetype index, qsizetype len=-1) &&
 
QByteArray first (qsizetype n) const &
 
QByteArray last (qsizetype n) const &
 
QByteArray sliced (qsizetype pos) const &
 
QByteArray sliced (qsizetype pos, qsizetype n) const &
 
QByteArray chopped (qsizetype len) const &
 
QByteArray first (qsizetype n) &&
 
QByteArray last (qsizetype n) &&
 
QByteArray sliced (qsizetype pos) &&
 
QByteArray sliced (qsizetype pos, qsizetype n) &&
 
QByteArray chopped (qsizetype len) &&
 
bool startsWith (QByteArrayView bv) const
 
bool startsWith (char c) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Returns true if this byte array starts with byte ch; otherwise returns false.
 
bool endsWith (char c) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Returns true if this byte array ends with byte ch; otherwise returns false.
 
bool endsWith (QByteArrayView bv) const
 
bool isUpper () const
 Returns true if this byte array is uppercase, that is, if it's identical to its toUpper() folding.
 
bool isLower () const
 Returns true if this byte array is lowercase, that is, if it's identical to its toLower() folding.
 
bool isValidUtf8 () const noexcept
 Returns true if this byte array contains valid UTF-8 encoded data, or false otherwise.
 
void truncate (qsizetype pos)
 Truncates the byte array at index position pos.
 
void chop (qsizetype n)
 Removes n bytes from the end of the byte array.
 
QByteArrayslice (qsizetype pos)
 
QByteArrayslice (qsizetype pos, qsizetype n)
 
QByteArray toLower () const &
 
QByteArray toLower () &&
 
QByteArray toUpper () const &
 
QByteArray toUpper () &&
 
QByteArray trimmed () const &
 
QByteArray trimmed () &&
 
QByteArray simplified () const &
 
QByteArray simplified () &&
 
QByteArray leftJustified (qsizetype width, char fill=' ', bool truncate=false) const
 Returns a byte array of size width that contains this byte array padded with the fill byte.
 
QByteArray rightJustified (qsizetype width, char fill=' ', bool truncate=false) const
 Returns a byte array of size width that contains the fill byte followed by this byte array.
 
QByteArrayprepend (char c)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Prepends the byte ch to this byte array.
 
QByteArrayprepend (qsizetype count, char c)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
QByteArrayprepend (const char *s)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Prepends the '\0'-terminated string str to this byte array.
 
QByteArrayprepend (const char *s, qsizetype len)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
QByteArrayprepend (const QByteArray &a)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Prepends ba to this byte array.
 
QByteArrayprepend (QByteArrayView a)
 Prepends the byte array view ba to this byte array and returns a reference to this byte array.
 
QByteArrayappend (char c)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Appends the byte ch to this byte array.
 
QByteArrayappend (qsizetype count, char c)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
QByteArrayappend (const char *s)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Appends the '\0'-terminated string str to this byte array.
 
QByteArrayappend (const char *s, qsizetype len)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Appends the first len bytes starting at str to this byte array and returns a reference to this byte array.
 
QByteArrayappend (const QByteArray &a)
 Appends the byte array ba onto the end of this byte array.
 
QByteArrayappend (QByteArrayView a)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Appends data to this byte array.
 
QByteArrayassign (QByteArrayView v)
 
QByteArrayassign (qsizetype n, char c)
 
template<typename InputIterator , if_input_iterator< InputIterator > = true>
QByteArrayassign (InputIterator first, InputIterator last)
 
QByteArrayinsert (qsizetype i, QByteArrayView data)
 
QByteArrayinsert (qsizetype i, const char *s)
 Inserts s at index position i and returns a reference to this byte array.
 
QByteArrayinsert (qsizetype i, const QByteArray &data)
 Inserts data at index position i and returns a reference to this byte array.
 
QByteArrayinsert (qsizetype i, qsizetype count, char c)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
QByteArrayinsert (qsizetype i, char c)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Inserts byte ch at index position i in the byte array.
 
QByteArrayinsert (qsizetype i, const char *s, qsizetype len)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
QByteArrayremove (qsizetype index, qsizetype len)
 Removes len bytes from the array, starting at index position pos, and returns a reference to the array.
 
QByteArrayremoveAt (qsizetype pos)
 
QByteArrayremoveFirst ()
 
QByteArrayremoveLast ()
 
template<typename Predicate >
QByteArrayremoveIf (Predicate pred)
 
QByteArrayreplace (qsizetype index, qsizetype len, const char *s, qsizetype alen)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Replaces len bytes from index position pos with alen bytes starting at position after.
 
QByteArrayreplace (qsizetype index, qsizetype len, QByteArrayView s)
 Replaces len bytes from index position pos with the byte array after, and returns a reference to this byte array.
 
QByteArrayreplace (char before, QByteArrayView after)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Replaces every occurrence of the byte before with the byte array after.
 
QByteArrayreplace (const char *before, qsizetype bsize, const char *after, qsizetype asize)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Replaces every occurrence of the bsize bytes starting at before with the asize bytes starting at after.
 
QByteArrayreplace (QByteArrayView before, QByteArrayView after)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
QByteArrayreplace (char before, char after)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Replaces every occurrence of the byte before with the byte after.
 
QByteArrayoperator+= (char c)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Appends the byte ch onto the end of this byte array and returns a reference to this byte array.
 
QByteArrayoperator+= (const char *s)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Appends the '\0'-terminated string str onto the end of this byte array and returns a reference to this byte array.
 
QByteArrayoperator+= (const QByteArray &a)
 Appends the byte array ba onto the end of this byte array and returns a reference to this byte array.
 
QByteArrayoperator+= (QByteArrayView a)
 
QList< QByteArraysplit (char sep) const
 Splits the byte array into subarrays wherever sep occurs, and returns the list of those arrays.
 
QByteArray repeated (qsizetype times) const
 
short toShort (bool *ok=nullptr, int base=10) const
 Returns the byte array converted to a short using base base, which is ten by default.
 
ushort toUShort (bool *ok=nullptr, int base=10) const
 Returns the byte array converted to an {unsigned short} using base base, which is ten by default.
 
int toInt (bool *ok=nullptr, int base=10) const
 Returns the byte array converted to an int using base base, which is ten by default.
 
uint toUInt (bool *ok=nullptr, int base=10) const
 Returns the byte array converted to an {unsigned int} using base base, which is ten by default.
 
long toLong (bool *ok=nullptr, int base=10) const
 
ulong toULong (bool *ok=nullptr, int base=10) const
 
qlonglong toLongLong (bool *ok=nullptr, int base=10) const
 Returns the byte array converted to a {long long} using base base, which is ten by default.
 
qulonglong toULongLong (bool *ok=nullptr, int base=10) const
 Returns the byte array converted to an {unsigned long long} using base base, which is ten by default.
 
float toFloat (bool *ok=nullptr) const
 Returns the byte array converted to a float value.
 
double toDouble (bool *ok=nullptr) const
 Returns the byte array converted to a double value.
 
QByteArray toBase64 (Base64Options options=Base64Encoding) const
 
QByteArray toHex (char separator='\0') const
 Returns a hex encoded copy of the byte array.
 
QByteArray toPercentEncoding (const QByteArray &exclude=QByteArray(), const QByteArray &include=QByteArray(), char percent='%') const
 
QByteArray percentDecoded (char percent='%') const
 
QByteArraysetNum (short, int base=10)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
QByteArraysetNum (ushort, int base=10)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
QByteArraysetNum (int, int base=10)
 Represent the whole number n as text.
 
QByteArraysetNum (uint, int base=10)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
QByteArraysetNum (long, int base=10)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
QByteArraysetNum (ulong, int base=10)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
QByteArraysetNum (qlonglong, int base=10)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
QByteArraysetNum (qulonglong, int base=10)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
QByteArraysetNum (float, char format='g', int precision=6)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Represent the floating-point number n as text.
 
QByteArraysetNum (double, char format='g', int precision=6)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Represent the floating-point number n as text.
 
QByteArraysetRawData (const char *a, qsizetype n)
 
iterator begin ()
 Returns an \l{STL-style iterators}{STL-style iterator} pointing to the first byte in the byte-array.
 
const_iterator begin () const noexcept
 
const_iterator cbegin () const noexcept
 
const_iterator constBegin () const noexcept
 Returns a const \l{STL-style iterators}{STL-style iterator} pointing to the first byte in the byte-array.
 
iterator end ()
 Returns an \l{STL-style iterators}{STL-style iterator} pointing just after the last byte in the byte-array.
 
const_iterator end () const noexcept
 
const_iterator cend () const noexcept
 
const_iterator constEnd () const noexcept
 Returns a const \l{STL-style iterators}{STL-style iterator} pointing just after the last byte in the byte-array.
 
reverse_iterator rbegin ()
 
reverse_iterator rend ()
 
const_reverse_iterator rbegin () const noexcept
 
const_reverse_iterator rend () const noexcept
 
const_reverse_iterator crbegin () const noexcept
 
const_reverse_iterator crend () const noexcept
 
void push_back (char c)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Same as append(ch).
 
void push_back (const char *s)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Same as append(str).
 
void push_back (const QByteArray &a)
 This function is provided for STL compatibility.
 
void push_back (QByteArrayView a)
 
void push_front (char c)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Same as prepend(ch).
 
void push_front (const char *c)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Same as prepend(str).
 
void push_front (const QByteArray &a)
 This function is provided for STL compatibility.
 
void push_front (QByteArrayView a)
 
void shrink_to_fit ()
 
iterator erase (const_iterator first, const_iterator last)
 
iterator erase (const_iterator it)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
std::string toStdString () const
 
qsizetype size () const noexcept
 Returns the number of bytes in this byte array.
 
qsizetype length () const noexcept
 Same as size().
 
bool isNull () const noexcept
 Returns true if this byte array is null; otherwise returns false.
 
const DataPointerdata_ptr () const
 
DataPointerdata_ptr ()
 
 QByteArray (DataPointer &&dd)
 

Static Public Member Functions

static qsizetype nameSize (CPtr p)
 
- Static Public Member Functions inherited from QByteArray
static QByteArray number (int, int base=10)
 Returns a byte-array representing the whole number n as text.
 
static QByteArray number (uint, int base=10)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
static QByteArray number (long, int base=10)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
static QByteArray number (ulong, int base=10)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
static QByteArray number (qlonglong, int base=10)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
static QByteArray number (qulonglong, int base=10)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
static QByteArray number (double, char format='g', int precision=6)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Returns a byte-array representing the floating-point number n as text.
 
static QByteArray fromRawData (const char *data, qsizetype size)
 Constructs a QByteArray that uses the first size bytes of the data array.
 
static FromBase64Result fromBase64Encoding (QByteArray &&base64, Base64Options options=Base64Encoding)
 
static FromBase64Result fromBase64Encoding (const QByteArray &base64, Base64Options options=Base64Encoding)
 
static QByteArray fromBase64 (const QByteArray &base64, Base64Options options=Base64Encoding)
 
static QByteArray fromHex (const QByteArray &hexEncoded)
 Returns a decoded copy of the hex encoded array hexEncoded.
 
static QByteArray fromPercentEncoding (const QByteArray &pctEncoded, char percent='%')
 
static constexpr qsizetype max_size () noexcept
 
static QByteArray fromStdString (const std::string &s)
 

Additional Inherited Members

Detailed Description

Definition at line 46 of file qpcsc_p.h.

Member Typedef Documentation

◆ CPtr

using QPcscSlotName::CPtr = LPCSTR

Definition at line 59 of file qpcsc_p.h.

◆ Ptr

using QPcscSlotName::Ptr = LPSTR

Definition at line 60 of file qpcsc_p.h.

Constructor & Destructor Documentation

◆ QPcscSlotName()

QPcscSlotName::QPcscSlotName ( CPtr p)
inlineexplicit

Definition at line 61 of file qpcsc_p.h.

Member Function Documentation

◆ nameSize()

qsizetype QPcscSlotName::nameSize ( QPcscSlotName::CPtr p)
static

Definition at line 23 of file qpcsc.cpp.

◆ ptr() [1/2]

Ptr QPcscSlotName::ptr ( )
inline

Definition at line 65 of file qpcsc_p.h.

References QByteArray::data().

+ Here is the call graph for this function:

◆ ptr() [2/2]

CPtr QPcscSlotName::ptr ( ) const
inlinenoexcept

Definition at line 64 of file qpcsc_p.h.

References QByteArray::constData().

Referenced by QPcscManager::connectToCard().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

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