• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdepimlibs-4.14.10 API Reference
  • KDE Home
  • Contact Us
 

KIMAP Library

  • KIMAP
  • QuotaJobBase
Public Member Functions | Protected Member Functions | List of all members
KIMAP::QuotaJobBase Class Reference

#include <quotajobbase.h>

Inheritance diagram for KIMAP::QuotaJobBase:
KIMAP::GetQuotaJob KIMAP::GetQuotaRootJob KIMAP::SetQuotaJob

Public Member Functions

 QuotaJobBase (Session *session)
 
qint64 limit (const QByteArray &resource)
 
qint64 usage (const QByteArray &resource)
 

Protected Member Functions

 QuotaJobBase (JobPrivate &dd)
 

Detailed Description

Base class for jobs that operate on mailbox quotas.

Provides support for the IMAP QUOTA extension, as defined by RFC 2087.

This class cannot be used directly, you must subclass it and reimplement at least the doStart() method.

Definition at line 42 of file quotajobbase.h.

Constructor & Destructor Documentation

◆ QuotaJobBase() [1/2]

QuotaJobBase::QuotaJobBase ( Session * session)
explicit

Definition at line 47 of file quotajobbase.cpp.

◆ ~QuotaJobBase()

QuotaJobBase::~QuotaJobBase ( )
virtual

Definition at line 57 of file quotajobbase.cpp.

◆ QuotaJobBase() [2/2]

QuotaJobBase::QuotaJobBase ( JobPrivate & dd)
protected

Definition at line 52 of file quotajobbase.cpp.

Member Function Documentation

◆ limit()

qint64 QuotaJobBase::limit ( const QByteArray & resource)

Get the current limit for a resource.

All quota jobs will normally cause the server to return details of resource limits for all resources that were queried or modified by the job.

Note that RFC 2087 is slightly ambiguous about whether SETQUOTA will cause this information to be sent by the server.

Parameters
resourcethe resource to get the limit for
Returns
the resource limit in appropriate units, or -1 if the limit is unknown or there is no limit on the resource

Definition at line 73 of file quotajobbase.cpp.

◆ usage()

qint64 QuotaJobBase::usage ( const QByteArray & resource)

Get the current usage for a resource.

All quota jobs will normally cause the server to return details of resource usage for all resources that were queried or modified by the job.

Note that RFC 2087 is slightly ambiguous about whether SETQUOTA will cause this information to be sent by the server.

Note that if there is no limit for a resource, the server will not provide information about resource usage.

Parameters
resourcethe resource to get the usage for
Returns
the resource usage in appropriate units, or -1 if the usage is unknown or there is no limit on the resource

Definition at line 61 of file quotajobbase.cpp.


The documentation for this class was generated from the following files:
  • quotajobbase.h
  • quotajobbase.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KIMAP Library

Skip menu "KIMAP Library"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • Related Pages

kdepimlibs-4.14.10 API Reference

Skip menu "kdepimlibs-4.14.10 API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal