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

kabc

KABC::ResourceABC

KABC::ResourceABC Class Reference

This class is the implementation of subfolder resources for KABC. More...

#include <resourceabc.h>

Inheritance diagram for KABC::ResourceABC:

Inheritance graph
[legend]

List of all members.


Public Slots

virtual void setSubresourceActive (const QString &subResource, bool active)=0
virtual void setSubresourceCompletionWeight (const QString &subResource, int weight)=0

Signals

void signalSubresourceAdded (KABC::ResourceABC *, const QString &type, const QString &subResource)
void signalSubresourceChanged (KABC::ResourceABC *, const QString &type, const QString &subResource)
void signalSubresourceRemoved (KABC::ResourceABC *, const QString &type, const QString &subResource)

Public Member Functions

 ResourceABC (const KConfigGroup &group)
virtual bool subresourceActive (const QString &) const
virtual int subresourceCompletionWeight (const QString &subResource) const =0
virtual QString subresourceLabel (const QString &subResource) const =0
virtual QStringList subresources () const
virtual bool subresourceWritable (const QString &) const =0
virtual QMap< QString, QString > uidToResourceMap () const =0

Detailed Description

This class is the implementation of subfolder resources for KABC.

More methods will be added to give KAddressBook the possibility to handle subresources.

Definition at line 41 of file resourceabc.h.


Member Function Documentation

virtual void KABC::ResourceABC::setSubresourceActive ( const QString &  subResource,
bool  active 
) [pure virtual, slot]

(De-)activate a subresource.

virtual void KABC::ResourceABC::setSubresourceCompletionWeight ( const QString &  subResource,
int  weight 
) [pure virtual, slot]

Set completion weight for a given subresource.

void KABC::ResourceABC::signalSubresourceAdded ( KABC::ResourceABC *  ,
const QString &  type,
const QString &  subResource 
) [signal]

This signal is emitted when a subresource is added.

void KABC::ResourceABC::signalSubresourceChanged ( KABC::ResourceABC *  ,
const QString &  type,
const QString &  subResource 
) [signal]

This signal is emitted when subresource properties have changed.

void KABC::ResourceABC::signalSubresourceRemoved ( KABC::ResourceABC *  ,
const QString &  type,
const QString &  subResource 
) [signal]

This signal is emitted when a subresource is removed.

bool ResourceABC::subresourceActive ( const QString &  subResource  )  const [virtual]

Is this subresource active or not?

Definition at line 45 of file resourceabc.cpp.

virtual int KABC::ResourceABC::subresourceCompletionWeight ( const QString &  subResource  )  const [pure virtual]

Completion weight for a given subresource.

virtual QString KABC::ResourceABC::subresourceLabel ( const QString &  subResource  )  const [pure virtual]

Label for a given subresource.

QStringList ResourceABC::subresources (  )  const [virtual]

If this resource has subresources, return a QStringList of them.

In most cases, resources do not have subresources, so this is by default just empty.

Definition at line 40 of file resourceabc.cpp.

virtual bool KABC::ResourceABC::subresourceWritable ( const QString &   )  const [pure virtual]

Is the given subresource writable?

virtual QMap<QString, QString> KABC::ResourceABC::uidToResourceMap (  )  const [pure virtual]

Get the UID to subresource map.

This is necessary to implement the search order. The returned map has the UID as key and the resource it's in as the data.


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

kabc

Skip menu "kabc"
  • Main Page
  • 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
  • kabc
  • kblog
  • kcal
  • kimap
  • kioslave
  •   imap4
  •   mbox
  • kldap
  • kmime
  • kpimidentities
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.5.8
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