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

kabc

KABC::ResourceABC

KABC::ResourceABC Class Reference

#include <resourceabc.h>

Inherits KABC::Resource.

List of all members.


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.


Public Slots

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

Signals

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

Public Member Functions

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

Member Function Documentation

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.

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?

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.

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 ( ResourceABC *  ,
const QString &  type,
const QString &  subResource 
) [signal]

This signal is emitted when a subresource is added.

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

This signal is emitted when a subresource is removed.


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