KTNEF Library
Go to the documentation of this file.
34 #include <QtCore/QDateTime>
38 using namespace KTnef;
40 class KTNEFProperty::Private
55 const QVariant &name_ )
77 if (
this != &other ) {
86 if ( d->_name.isValid() ) {
87 if ( d->_name.type() == QVariant::String ) {
88 return d->_name.toString();
99 if ( value.type() == QVariant::ByteArray ) {
102 QByteArray arr = value.toByteArray();
103 bool printable =
true;
104 for (
int i=qMin( arr.size(), 8 )-1; i>=0 && printable; i-- ) {
105 printable = ( isprint( arr[ i ] ) != 0 );
110 int txtCount = beautify ? qMin( arr.size(), 32 ) : arr.size();
111 for ( i=0; i < txtCount; ++i ) {
112 s.append( QString().sprintf(
"%02X", ( uchar )arr[ i ] ) );
117 if ( i < arr.size() ) {
118 s.append(
"... (size=" + QString::number( arr.size() ) +
')' );
125 return value.toString();
155 return d->_value.type() == QVariant::List;
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Sat Jul 13 2013 01:29:58 by
doxygen 1.8.3.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.