akonadi
20 #include "collectionquotaattribute.h"
22 #include <QtCore/QByteArray>
24 using namespace Akonadi;
26 class CollectionQuotaAttribute::Private
30 : mCurrentValue( currentValue ), mMaximumValue( maxValue )
39 : d( new Private( -1, -1 ) )
44 : d( new Private( currentValue, maxValue ) )
55 d->mCurrentValue = value;
60 d->mMaximumValue = value;
65 return d->mCurrentValue;
70 return d->mMaximumValue;
75 return "collectionquota";
85 return QByteArray::number( d->mCurrentValue )
87 + QByteArray::number( d->mMaximumValue );
92 d->mCurrentValue = -1;
93 d->mMaximumValue = -1;
95 const QList<QByteArray> items = data.simplified().split(
' ' );
97 if ( items.isEmpty() ) {
101 d->mCurrentValue = items[0].toLongLong();
103 if ( items.size() < 2 ) {
107 d->mMaximumValue = items[1].toLongLong();
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Sat Jul 13 2013 01:27:33 by
doxygen 1.8.3.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.