• Skip to content
  • Skip to link menu
KDE 4.4 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • Sitemap
  • Contact Us
 

akonadi

Akonadi::CollectionRightsAttribute

Akonadi::CollectionRightsAttribute Class Reference

Attribute that stores the rights of a collection. More...

#include <collectionrightsattribute_p.h>

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

List of all members.

Public Member Functions

 CollectionRightsAttribute ()
 ~CollectionRightsAttribute ()
virtual CollectionRightsAttribute * clone () const
virtual void deserialize (const QByteArray &)
Collection::Rights rights () const
virtual QByteArray serialized () const
void setRights (Collection::Rights rights)
virtual QByteArray type () const

Detailed Description

Attribute that stores the rights of a collection.

For internal use only.

Every collection can have rights set which describes whether the collection is readable or writable. That information is stored in this custom attribute.

Note:
You shouldn't use this class directly but the convenience methods Collection::rights() and Collection::setRights() instead.
Author:
Tobias Koenig <tokoe@kde.org>

Definition at line 44 of file collectionrightsattribute_p.h.


Constructor & Destructor Documentation

CollectionRightsAttribute::CollectionRightsAttribute (  ) 

Creates a new collection rights attribute.

Definition at line 87 of file collectionrightsattribute.cpp.

CollectionRightsAttribute::~CollectionRightsAttribute (  ) 

Destroys the collection rights attribute.

Definition at line 92 of file collectionrightsattribute.cpp.


Member Function Documentation

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

Creates a copy of this attribute.

Implements Akonadi::Attribute.

Definition at line 107 of file collectionrightsattribute.cpp.

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

Sets the data of this attribute, using the same encoding as returned by toByteArray().

Parameters:
data The encoded attribute data.

Implements Akonadi::Attribute.

Definition at line 125 of file collectionrightsattribute.cpp.

Collection::Rights CollectionRightsAttribute::rights (  )  const

Returns the rights of the collection.

Definition at line 102 of file collectionrightsattribute.cpp.

QByteArray CollectionRightsAttribute::serialized (  )  const [virtual]

Returns a QByteArray representation of the attribute which will be storaged.

This can be raw binary data, no encoding needs to be applied.

Implements Akonadi::Attribute.

Definition at line 120 of file collectionrightsattribute.cpp.

void CollectionRightsAttribute::setRights ( Collection::Rights  rights  ) 

Sets the rights of the collection.

Definition at line 97 of file collectionrightsattribute.cpp.

QByteArray CollectionRightsAttribute::type (  )  const [virtual]

Returns the type of the attribute.

Implements Akonadi::Attribute.

Definition at line 115 of file collectionrightsattribute.cpp.


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

akonadi

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

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kblog
  • kcal
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.6.1
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