• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdepimlibs-4.8.5 API Reference
  • KDE Home
  • Contact Us
 

kabc

  • KABC
  • ResourceABC
Public Slots | Signals | Public Member Functions
KABC::ResourceABC Class Reference

#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.


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
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Mon Aug 27 2012 22:10:25 by doxygen 1.7.5 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kabc

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

kdepimlibs-4.8.5 API Reference

Skip menu "kdepimlibs-4.8.5 API Reference"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
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