libtdepim

KPIM::ResourceABC Class Referenceabstract

#include <resourceabc.h>

Inherits TDEABC::Resource.

Public Slots

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

Signals

void signalSubresourceAdded (KPIM::ResourceABC *, const TQString &type, const TQString &subResource)
 
void signalSubresourceRemoved (KPIM::ResourceABC *, const TQString &type, const TQString &subResource)
 

Public Member Functions

 ResourceABC (const TDEConfig *)
 
virtual TQMap< TQString, TQString > uidToResourceMap () const =0
 
virtual TQStringList subresources () const
 
virtual bool subresourceActive (const TQString &) const
 
virtual bool subresourceWritable (const TQString &) const =0
 
virtual int subresourceCompletionWeight (const TQString &) const =0
 
virtual TQString subresourceLabel (const TQString &) 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 44 of file resourceabc.h.

Member Function Documentation

◆ setSubresourceActive

virtual void KPIM::ResourceABC::setSubresourceActive ( const TQString &  ,
bool  active 
)
pure virtualslot

(De-)activate a subresource.

◆ setSubresourceCompletionWeight

virtual void KPIM::ResourceABC::setSubresourceCompletionWeight ( const TQString &  ,
int  weight 
)
pure virtualslot

Set completion weight for a given subresource.

◆ signalSubresourceAdded

void KPIM::ResourceABC::signalSubresourceAdded ( KPIM::ResourceABC ,
const TQString &  type,
const TQString &  subResource 
)
signal

This signal is emitted when a subresource is added.

◆ signalSubresourceRemoved

void KPIM::ResourceABC::signalSubresourceRemoved ( KPIM::ResourceABC ,
const TQString &  type,
const TQString &  subResource 
)
signal

This signal is emitted when a subresource is removed.

◆ subresourceActive()

virtual bool KPIM::ResourceABC::subresourceActive ( const TQString &  ) const
inlinevirtual

Is this subresource active or not?

Definition at line 71 of file resourceabc.h.

◆ subresourceCompletionWeight()

virtual int KPIM::ResourceABC::subresourceCompletionWeight ( const TQString &  ) const
pure virtual

Completion weight for a given subresource.

◆ subresourceLabel()

virtual TQString KPIM::ResourceABC::subresourceLabel ( const TQString &  ) const
pure virtual

Label for a given subresource.

◆ subresources()

virtual TQStringList KPIM::ResourceABC::subresources ( ) const
inlinevirtual

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

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

Definition at line 66 of file resourceabc.h.

◆ subresourceWritable()

virtual bool KPIM::ResourceABC::subresourceWritable ( const TQString &  ) const
pure virtual

Is the given subresource writable?

◆ uidToResourceMap()

virtual TQMap<TQString, TQString> KPIM::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: