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

akonadi

  • Akonadi
  • EntityHiddenAttribute
Public Member Functions
Akonadi::EntityHiddenAttribute Class Reference

#include <entityhiddenattribute.h>

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

List of all members.

Public Member Functions

 EntityHiddenAttribute ()
 ~EntityHiddenAttribute ()
EntityHiddenAttribute * clone () const
void deserialize (const QByteArray &data)
QByteArray serialized () const
QByteArray type () const

Detailed Description

An Attribute that marks that an entity should be hidden in the UI.

This class represents the attribute of all hidden items. The hidden items shouldn't be displayed in UI applications (unless in some kind of "debug" mode).

Example:

 using namespace Akonadi;

 ...
 // hide a collection by setting the hidden attribute
 Collection collection = collectionFetchJob->collections().first();
 collection.attribute<EntityHiddenAttribute>( Entity::AddIfMissing );
 new CollectionModifyJob( collection, this ); // save back to storage

 // check if the collection is hidden
 if ( collection.hasAttribute<EntityHiddenAttribute>() )
   qDebug() << "collection is hidden";
 else
   qDebug() << "collection is visible";
Author:
Szymon Stefanek s.ste.nosp@m.fane.nosp@m.k@gma.nosp@m.il.c.nosp@m.om
See also:
Akonadi::Attribute
Since:
4.4

Definition at line 60 of file entityhiddenattribute.h.


Constructor & Destructor Documentation

EntityHiddenAttribute::EntityHiddenAttribute ( )

Creates a new entity hidden attribute.

Definition at line 28 of file entityhiddenattribute.cpp.

EntityHiddenAttribute::~EntityHiddenAttribute ( )

Destroys the entity hidden attribute.

Definition at line 33 of file entityhiddenattribute.cpp.


Member Function Documentation

EntityHiddenAttribute * EntityHiddenAttribute::clone ( ) const [virtual]

Reimplemented from Attribute.

Implements Akonadi::Attribute.

Definition at line 42 of file entityhiddenattribute.cpp.

void EntityHiddenAttribute::deserialize ( const QByteArray &  data) [virtual]

Reimplemented from Attribute.

Implements Akonadi::Attribute.

Definition at line 52 of file entityhiddenattribute.cpp.

QByteArray EntityHiddenAttribute::serialized ( ) const [virtual]

Reimplemented from Attribute.

Implements Akonadi::Attribute.

Definition at line 47 of file entityhiddenattribute.cpp.

QByteArray Akonadi::EntityHiddenAttribute::type ( ) const [virtual]

Reimplemented from Attribute.

Implements Akonadi::Attribute.

Definition at line 37 of file entityhiddenattribute.cpp.


The documentation for this class was generated from the following files:
  • entityhiddenattribute.h
  • entityhiddenattribute.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Mon Apr 30 2012 21:49:17 by doxygen 1.8.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

akonadi

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

kdepimlibs-4.8.3 API Reference

Skip menu "kdepimlibs-4.8.3 API Reference"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kalarmcal
  • 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
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