diff -r e4b6ee329501 -r a7451a8eb5dc contactengine/dbtools.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/contactengine/dbtools.h Mon Aug 09 14:37:31 2010 +0100 @@ -0,0 +1,32 @@ +#ifndef DBTOOLS_H +#define DBTOOLS_H + +#include + +class DBTools : QObject +{ + Q_OBJECT +public: + explicit DBTools(QObject *parent = 0); + ~DBTools(); + +public: + void importCSV(QString fileName); + void testDB(); + +signals: + +public slots: + +private: + bool createDB(); + void insertContact( QString name, QString mobile, QString deskphone, + int xtn, QString email, QString skype, + QString twitter, QString title, int site, + int department, int floor); + int getLastInsertRowId(); + bool createTable(QString sqlStmt); + +}; + +#endif // DBTOOLS_H