21 #ifndef KABC_RESOURCESQL_H
22 #define KABC_RESOURCESQL_H
24 #include <tdeconfig.h>
26 #include "addressbook.h"
33 class KABC_EXPORT ResourceSql :
public Resource
36 ResourceSql( AddressBook *ab,
const TQString &user,
const TQString &password,
37 const TQString &db,
const TQString &host );
38 ResourceSql( AddressBook *ab,
const TDEConfig * );
43 virtual Ticket *requestSaveTicket();
44 virtual void releaseSaveTicket( Ticket* );
47 virtual bool save( Ticket * ticket );
49 virtual TQString identifier()
const;
52 void init(
const TQString &user,
const TQString &password,
53 const TQString &db,
const TQString &host );
static data, shared by ALL addressee objects
const TDEShortcut & close()
const TDEShortcut & save()
const TDEShortcut & open()