diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2016-05-29 02:24:21 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2017-07-22 15:56:45 +0200 |
commit | 2deafc497132f3e413ef0fa64c656e0ce9b9a8a7 (patch) | |
tree | 746ab5ea5153d1cec837c1de5fe2e83516c7031a /kabc/plugins/sql/resourcesql.h | |
parent | 6a8935327be55a6bc2d3bd8e40a9a0982f8f53cc (diff) | |
download | tdelibs-2deafc497132f3e413ef0fa64c656e0ce9b9a8a7.tar.gz tdelibs-2deafc497132f3e413ef0fa64c656e0ce9b9a8a7.zip |
cmake: Add tdeabc tests
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 51efac909d7b116c8b0ca58fcd4e74ff58f31091)
Diffstat (limited to 'kabc/plugins/sql/resourcesql.h')
-rw-r--r-- | kabc/plugins/sql/resourcesql.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/kabc/plugins/sql/resourcesql.h b/kabc/plugins/sql/resourcesql.h index 80ebf9e7a..fd2bec526 100644 --- a/kabc/plugins/sql/resourcesql.h +++ b/kabc/plugins/sql/resourcesql.h @@ -30,22 +30,23 @@ class TQSqlDatabase; namespace KABC { -class ResourceSql : public Resource +class KABC_EXPORT ResourceSql : public Resource { public: ResourceSql( AddressBook *ab, const TQString &user, const TQString &password, const TQString &db, const TQString &host ); ResourceSql( AddressBook *ab, const KConfig * ); - bool open(); - void close(); + virtual bool open(); + virtual void close(); - Ticket *requestSaveTicket(); + virtual Ticket *requestSaveTicket(); + virtual void releaseSaveTicket( Ticket* ); - bool load(); - bool save( Ticket * ticket ); + virtual bool load(); + virtual bool save( Ticket * ticket ); - TQString identifier() const; + virtual TQString identifier() const; private: void init(const TQString &user, const TQString &password, |