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() )
100 d->mCurrentValue = items[0].toLongLong();
102 if ( items.size() < 2 )
105 d->mMaximumValue = items[1].toLongLong();
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Mon Dec 10 2012 13:48:08 by
doxygen 1.8.1.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.