Akonadi.EntityDisplayAttribute

KDE 4.2 PyKDE API Reference

- KDE's Python API

# EntityDisplayAttribute Class Reference

`from PyKDE4.akonadi import *`

Inherits: Akonadi.Attribute
Namespace: Akonadi

## Detailed Description

Attribute that stores the properties that are used to display an entity.

Display properties of a collection or item, such as translated names and icons. To do: add active icon, eg. when folder contains unread mail, or a mail is unread

Author:
  Volker Krause <vkrause@kde.org>

Since:
  4.2

## Methods
| __init__ (self)
Akonadi.EntityDisplayAttribute | clone (self)
| deserialize (self, QByteArray data)
QString | displayName (self)
KIcon | icon (self)
QString | iconName (self)
QByteArray | serialized (self)
| setDisplayName (self, QString name)
| setIconName (self, QString name)
QByteArray | type (self)

## Method Documentation

__init__ | ( |  | self ) |

Creates a new entity display attribute.

Akonadi.EntityDisplayAttribute clone | ( |  | self ) |

deserialize | ( | self, |
|  | QByteArray | data
| ) |  |  |

QString displayName | ( |  | self ) |

Returns the name that should be used for display. Users of this should fall back to Collection.name() if this is empty.

KIcon icon | ( |  | self ) |

Returns the icon that should be used for this collection or item.

QString iconName | ( |  | self ) |

Returns the icon name of the icon returned by icon().

QByteArray serialized | ( |  | self ) |

setDisplayName | ( | self, |
|  | QString | name
| ) |  |  |

Sets the name that should be used for display.

setIconName | ( | self, |
|  | QString | name
| ) |  |  |

Sets the icon name for the default icon.

QByteArray type | ( |  | self ) |