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

akonadi

  • Akonadi
  • EntityHiddenAttribute
Public Member Functions | List of all members
Akonadi::EntityHiddenAttribute Class Reference

#include <entityhiddenattribute.h>

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

Public Member Functions

 EntityHiddenAttribute ()
 
 ~EntityHiddenAttribute ()
 
EntityHiddenAttribute * clone () const
 
void deserialize (const QByteArray &data)
 
QByteArray serialized () const
 
QByteArray type () const
 
- Public Member Functions inherited from Akonadi::Attribute
virtual ~Attribute ()
 

Additional Inherited Members

- Public Types inherited from Akonadi::Attribute
typedef QList< Attribute * > List
 

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-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:28 by doxygen 1.8.7 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 API Reference

Skip menu "kdepimlibs API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kldap
  • kmbox
  • kmime
  • kpimidentities
  • kpimtextedit
  • kresources
  • ktnef
  • kxmlrpcclient
  • microblog

Search



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