KABC::ResourceIMAP Class Reference
This class implements a KAddressBook resource that keeps its addresses in an IMAP folder in KMail (or other conforming email clients). More...
#include <resourceimap.h>
Public Member Functions | |
ResourceIMAP (AddressBook *ab) | |
Constructor. | |
virtual | ~ResourceIMAP () |
Destructor. | |
virtual bool | open () |
Open the resource and returns if it was successfully. | |
virtual void | close () |
Close the resource and returns if it was successfully. | |
virtual Ticket * | requestSaveTicket () |
Request a ticket, you have to pass through save() to allow locking. | |
virtual bool | load () |
Load all addressees to the addressbook. | |
virtual bool | save (Ticket *ticket) |
Save all addressees to the addressbook. | |
virtual QString | identifier () const |
Returns a unique identifier. | |
virtual void | cleanUp () |
This method is called by an error handler if the application crashed. |
Detailed Description
This class implements a KAddressBook resource that keeps its addresses in an IMAP folder in KMail (or other conforming email clients).
Definition at line 37 of file resourceimap.h.
Constructor & Destructor Documentation
|
Constructor.
Definition at line 42 of file resourceimap.cpp. References KABC::FormatFactory::format(). |
|
Destructor.
Definition at line 49 of file resourceimap.cpp. |
Member Function Documentation
|
Open the resource and returns if it was successfully.
Definition at line 54 of file resourceimap.cpp. |
|
Close the resource and returns if it was successfully.
Definition at line 60 of file resourceimap.cpp. |
|
Request a ticket, you have to pass through save() to allow locking.
Definition at line 65 of file resourceimap.cpp. |
|
Load all addressees to the addressbook.
Definition at line 86 of file resourceimap.cpp. References KABC::FormatPlugin::loadAll(), KTempFile::name(), QFile::open(), and KTempFile::unlink(). |
|
Save all addressees to the addressbook.
Definition at line 127 of file resourceimap.cpp. References KTempFile::close(), KTempFile::file(), KTempFile::name(), KABC::FormatPlugin::saveAll(), and KTempFile::unlink(). |
|
Returns a unique identifier.
Definition at line 173 of file resourceimap.cpp. |
|
This method is called by an error handler if the application crashed.
Definition at line 178 of file resourceimap.cpp. |
The documentation for this class was generated from the following files: