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

kopete/libkopete

  • Kopete
  • PropertyContainer
Signals | Public Member Functions | List of all members
Kopete::PropertyContainer Class Reference

#include <kopetepropertycontainer.h>

Inheritance diagram for Kopete::PropertyContainer:
Inheritance graph
[legend]

Signals

void propertyChanged (Kopete::PropertyContainer *container, const QString &key, const QVariant &oldValue, const QVariant &newValue)
 

Public Member Functions

 PropertyContainer (QObject *parent=0)
 
virtual ~PropertyContainer ()
 
void deserializeProperties (const QMap< QString, QString > &serializedData)
 
bool hasProperty (const QString &key) const
 
QStringList properties () const
 
const Kopete::Property & property (const QString &key) const
 
const Kopete::Property & property (const Kopete::PropertyTmpl &tmpl) const
 
void removeProperty (const Kopete::PropertyTmpl &tmpl)
 
void serializeProperties (QMap< QString, QString > &serializedData) const
 
void setProperty (const Kopete::PropertyTmpl &tmpl, const QVariant &value)
 
- Public Member Functions inherited from QObject
 QObject (QObject *parent)
 
 QObject (QObject *parent, const char *name)
 
virtual  ~QObject ()
 
bool blockSignals (bool block)
 
QObject * child (const char *objName, const char *inheritsClass, bool recursiveSearch) const
 
const QObjectList & children () const
 
const char * className () const
 
bool connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const
 
void deleteLater ()
 
void destroyed (QObject *obj)
 
bool disconnect (const QObject *receiver, const char *method)
 
bool disconnect (const char *signal, const QObject *receiver, const char *method)
 
void dumpObjectInfo ()
 
void dumpObjectTree ()
 
QList< QByteArray > dynamicPropertyNames () const
 
virtual bool event (QEvent *e)
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
T findChild (const QString &name) const
 
QList< T > findChildren (const QRegExp &regExp) const
 
QList< T > findChildren (const QString &name) const
 
bool inherits (const char *className) const
 
void insertChild (QObject *object)
 
void installEventFilter (QObject *filterObj)
 
bool isA (const char *className) const
 
bool isWidgetType () const
 
void killTimer (int id)
 
virtual const QMetaObject * metaObject () const
 
void moveToThread (QThread *targetThread)
 
const char * name () const
 
const char * name (const char *defaultName) const
 
QString objectName () const
 
QObject * parent () const
 
QVariant property (const char *name) const
 
void removeChild (QObject *object)
 
void removeEventFilter (QObject *obj)
 
void setName (const char *name)
 
void setObjectName (const QString &name)
 
void setParent (QObject *parent)
 
bool setProperty (const char *name, const QVariant &value)
 
bool signalsBlocked () const
 
int startTimer (int interval)
 
QThread * thread () const
 

Additional Inherited Members

- Static Public Member Functions inherited from QObject
bool connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
 
bool connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type)
 
bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method)
 
bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method)
 
QString tr (const char *sourceText, const char *disambiguation, int n)
 
QString trUtf8 (const char *sourceText, const char *disambiguation, int n)
 
- Protected Member Functions inherited from QObject
bool checkConnectArgs (const char *signal, const QObject *object, const char *method)
 
virtual void childEvent (QChildEvent *event)
 
virtual void connectNotify (const char *signal)
 
virtual void customEvent (QEvent *event)
 
virtual void disconnectNotify (const char *signal)
 
int receivers (const char *signal) const
 
QObject * sender () const
 
int senderSignalIndex () const
 
virtual void timerEvent (QTimerEvent *event)
 
- Static Protected Member Functions inherited from QObject
QByteArray normalizeSignalSlot (const char *signalSlot)
 
- Properties inherited from QObject
 objectName
 

Detailed Description

Author
Gustavo Pichorim Boiko gusta.nosp@m.vo.b.nosp@m.oiko@.nosp@m.kdem.nosp@m.ail.n.nosp@m.et

This class abstracts a generic contact Use it for inserting contacts in the contact list for example.

Definition at line 39 of file kopetepropertycontainer.h.

Constructor & Destructor Documentation

Kopete::PropertyContainer::PropertyContainer ( QObject *  parent = 0)

A container for properties.

This class provides an interface for reading and writing properties.

Definition at line 36 of file kopetepropertycontainer.cpp.

Kopete::PropertyContainer::~PropertyContainer ( )
virtual

Definition at line 41 of file kopetepropertycontainer.cpp.

Member Function Documentation

void Kopete::PropertyContainer::deserializeProperties ( const QMap< QString, QString > &  serializedData)

Deserialize the contacts persistent properties.

Definition at line 63 of file kopetepropertycontainer.cpp.

bool Kopete::PropertyContainer::hasProperty ( const QString &  key) const

Check for existence of a certain property stored using "key".

Parameters
keythe property to check for

Definition at line 106 of file kopetepropertycontainer.cpp.

QStringList Kopete::PropertyContainer::properties ( ) const
Returns
A QStringList containing all property keys

Definition at line 101 of file kopetepropertycontainer.cpp.

const Property & Kopete::PropertyContainer::property ( const QString &  key) const

Get the value of a property with key "key".

If you don't know the type of the returned QVariant, you will need to check for it.

Returns
the value of the property

Definition at line 111 of file kopetepropertycontainer.cpp.

const Kopete::Property & Kopete::PropertyContainer::property ( const Kopete::PropertyTmpl &  tmpl) const

Definition at line 119 of file kopetepropertycontainer.cpp.

void Kopete::PropertyContainer::propertyChanged ( Kopete::PropertyContainer *  container,
const QString &  key,
const QVariant &  oldValue,
const QVariant &  newValue 
)
signal
void Kopete::PropertyContainer::removeProperty ( const Kopete::PropertyTmpl &  tmpl)

Remove a property if it exists.

Parameters
tmplthe template this property is based on

Definition at line 158 of file kopetepropertycontainer.cpp.

void Kopete::PropertyContainer::serializeProperties ( QMap< QString, QString > &  serializedData) const

Serialize the persistent properties for storage in the contact list.

Does the same as serialize() does but for KopeteContactProperties set in this contact with their persistency flag turned on. In contrary to serialize() this does not need to be reimplemented.

Definition at line 46 of file kopetepropertycontainer.cpp.

void Kopete::PropertyContainer::setProperty ( const Kopete::PropertyTmpl &  tmpl,
const QVariant &  value 
)

Add or Set a property for this contact.

Parameters
tmplThe template this property is based on, key, label etc. are taken from this one
valueThe value to store
Note
Setting a NULL value or an empty QString castable value removes the property if it already existed. Don't abuse this for property-removal, instead use removeProperty() if you want to remove on purpose. The Removal is done to clean up the list of properties and to purge them from UI.

Definition at line 129 of file kopetepropertycontainer.cpp.


The documentation for this class was generated from the following files:
  • kopetepropertycontainer.h
  • kopetepropertycontainer.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:29:20 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kopete/libkopete

Skip menu "kopete/libkopete"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdenetwork API Reference

Skip menu "kdenetwork API Reference"
  • kget
  • kopete
  •   kopete
  •   libkopete
  • krdc
  • krfb

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