• Skip to content
  • Skip to link menu
KDE 4.7 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • KDE Home
  • Contact Us
 

akonadi

  • Akonadi
  • CachePolicyPage
Public Types | Public Member Functions
Akonadi::CachePolicyPage Class Reference

#include <cachepolicypage.h>

Inheritance diagram for Akonadi::CachePolicyPage:
Inheritance graph
[legend]

List of all members.

Public Types

enum  GuiMode { UserMode, AdvancedMode }

Public Member Functions

 CachePolicyPage (QWidget *parent, GuiMode mode=UserMode)
 ~CachePolicyPage ()
bool canHandle (const Collection &collection) const
void load (const Collection &collection)
void save (Collection &collection)

Detailed Description

A page in a collection properties dialog to configure the cache policy.

This page allows the user to fine tune the cache policy of a collection in the Akonadi storage. It provides two modes, a UserMode and an AdvancedMode. While the former should be used in end-user applications, the latter can be used in debugging tools.

See also:
Akonadi::CollectionPropertiesDialog, Akonadi::CollectionPropertiesPageFactory
Author:
Till Adam <adam@kde.org>
Since:
4.6

Member Enumeration Documentation

enum Akonadi::CachePolicyPage::GuiMode

Describes the mode of the cache policy page.

Enumerator:
UserMode 

A simplified UI for end-users will be provided.

AdvancedMode 

An advanced UI for debugging will be provided.

Definition at line 50 of file cachepolicypage.h.


Constructor & Destructor Documentation

CachePolicyPage::CachePolicyPage ( QWidget *  parent,
GuiMode  mode = UserMode 
) [explicit]

Creates a new cache policy page.

Parameters:
parentThe parent widget.
modeThe UI mode that will be used for the page.

Definition at line 59 of file cachepolicypage.cpp.

CachePolicyPage::~CachePolicyPage ( )

Destroys the cache policy page.

Definition at line 77 of file cachepolicypage.cpp.


Member Function Documentation

bool Akonadi::CachePolicyPage::canHandle ( const Collection &  collection) const

Checks if the cache policy page can actually handle the given collection.

Definition at line 82 of file cachepolicypage.cpp.

void CachePolicyPage::load ( const Collection &  collection)

Loads the page content from the given collection.

Definition at line 87 of file cachepolicypage.cpp.

void CachePolicyPage::save ( Collection &  collection)

Saves page content to the given collection.

Definition at line 112 of file cachepolicypage.cpp.


The documentation for this class was generated from the following files:
  • cachepolicypage.h
  • cachepolicypage.cpp

akonadi

Skip menu "akonadi"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • Modules
  • Related Pages

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.7.5
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal