KABC::ResourceSql Class Reference
Inheritance diagram for KABC::ResourceSql:

Detailed Description
Definition at line 33 of file resourcesql.h.
Public Member Functions | |
ResourceSql (AddressBook *ab, const QString &user, const QString &password, const QString &db, const QString &host) | |
ResourceSql (AddressBook *ab, const KConfig *) | |
bool | open () |
void | close () |
Ticket * | requestSaveTicket () |
bool | load () |
bool | save (Ticket *ticket) |
QString | identifier () const |
Member Function Documentation
Ticket * ResourceSql::requestSaveTicket | ( | ) | [virtual] |
Request a ticket, you have to pass through save() to allow locking.
The resource has to create its locks in this function.
Implements KABC::Resource.
Definition at line 71 of file resourcesql.cpp.
bool ResourceSql::load | ( | ) | [virtual] |
Loads all addressees synchronously.
- Returns:
- Whether the loading was successfully.
Implements KABC::Resource.
Definition at line 113 of file resourcesql.cpp.
bool ResourceSql::save | ( | Ticket * | ticket | ) | [virtual] |
Saves all addressees synchronously.
- Parameters:
-
ticket You have to release the ticket later with releaseSaveTicket() explicitely.
- Returns:
- Whether the saving was successfully.
Implements KABC::Resource.
Definition at line 210 of file resourcesql.cpp.
The documentation for this class was generated from the following files: