Changeset 656
- Timestamp:
- 10/08/06 17:00:19 (2 years ago)
- Files:
-
- nepenthes/trunk/nepenthes-core/include/SQLCallback.hpp (modified) (1 diff)
- nepenthes/trunk/nepenthes-core/include/SQLHandler.hpp (modified) (2 diffs)
- nepenthes/trunk/nepenthes-core/include/SQLHandlerFactory.hpp (modified) (2 diffs)
- nepenthes/trunk/nepenthes-core/include/SQLManager.hpp (modified) (1 diff)
- nepenthes/trunk/nepenthes-core/src/SQLManager.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
nepenthes/trunk/nepenthes-core/include/SQLCallback.hpp
r594 r656 51 51 } 52 52 53 virtual void sqlConnected()=0; 54 virtual void sqlDisconnected()=0; 55 53 56 protected: 54 57 string m_SQLCallbackName; nepenthes/trunk/nepenthes-core/include/SQLHandler.hpp
r598 r656 40 40 { 41 41 class SQLQuery; 42 class SQLCallback; 42 43 43 44 … … 72 73 protected: 73 74 string m_SQLHandlerName; 75 SQLCallback *m_Callback; 74 76 }; 75 77 } nepenthes/trunk/nepenthes-core/include/SQLHandlerFactory.hpp
r598 r656 39 39 { 40 40 class SQLHandler; 41 class SQLCallback; 41 42 42 43 … … 50 51 } 51 52 52 virtual SQLHandler *createSQLHandler(string server, string user, string passwd, string table, string options )=0;53 virtual SQLHandler *createSQLHandler(string server, string user, string passwd, string table, string options, SQLCallback *cb)=0; 53 54 54 55 protected: nepenthes/trunk/nepenthes-core/include/SQLManager.hpp
r598 r656 58 58 virtual bool registerSQLHandlerFactory(SQLHandlerFactory * handlerfactory); 59 59 virtual void unregisterSQLHandlerFactory(const char *dbtype); 60 virtual SQLHandler *createSQLHandler(const char *dbtype, string server, string user, string passwd, string table, string options );60 virtual SQLHandler *createSQLHandler(const char *dbtype, string server, string user, string passwd, string table, string options, SQLCallback *cb); 61 61 62 62 private: nepenthes/trunk/nepenthes-core/src/SQLManager.cpp
r598 r656 88 88 } 89 89 90 SQLHandler *SQLManager::createSQLHandler(const char *dbtype, string server, string user, string passwd, string table, string options )90 SQLHandler *SQLManager::createSQLHandler(const char *dbtype, string server, string user, string passwd, string table, string options, SQLCallback *cb) 91 91 { 92 92 list <SQLHandlerFactory *>::iterator it; … … 96 96 if (dbtype == (*it)->getDBType()) 97 97 { 98 SQLHandler *sqlh = (*it)->createSQLHandler(server, user,passwd,table,options );98 SQLHandler *sqlh = (*it)->createSQLHandler(server, user,passwd,table,options,cb); 99 99 if (sqlh->Init() == true) 100 100 {
