KPIM::ResourceABC Class Reference
This class is the implementation of subfolder resources for KABC. More...
#include <resourceabc.h>
Public Slots | |
virtual void | setSubresourceActive (const QString &, bool active)=0 |
virtual void | setSubresourceCompletionWeight (const QString &, int weight)=0 |
Signals | |
void | signalSubresourceAdded (KPIM::ResourceABC *, const QString &type, const QString &subResource) |
void | signalSubresourceRemoved (KPIM::ResourceABC *, const QString &type, const QString &subResource) |
Public Member Functions | |
ResourceABC (const KConfig *) | |
virtual QMap< QString, QString > | uidToResourceMap () const =0 |
virtual QStringList | subresources () const |
virtual bool | subresourceActive (const QString &) const |
virtual int | subresourceCompletionWeight (const QString &) const =0 |
virtual QString | subresourceLabel (const QString &) const =0 |
virtual bool | removeSubresource (const QString &)=0 |
virtual bool | addSubresource (const QString &label, const QString &parent)=0 |
virtual bool | canHaveSubresources () const |
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 42 of file resourceabc.h.
Member Function Documentation
|
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. |
|
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 63 of file resourceabc.h. |
|
Is this subresource active or not?
Definition at line 68 of file resourceabc.h. |
|
Completion weight for a given subresource.
|
|
Label for a given subresource.
|
|
Remove a given subresource.
|
|
Create a new subresource with label.
|
|
Can the resource have subresources?
Definition at line 88 of file resourceabc.h. |
|
(De-)activate a subresource.
|
|
Set completion weight for a given subresource.
|
|
This signal is emitted when a subresource is added.
|
|
This signal is emitted when a subresource is removed.
|
The documentation for this class was generated from the following files: