From 4c50be41963ebc6edbf8136127fe07f6caa8099d Mon Sep 17 00:00:00 2001 From: Arin Alex Date: Thu, 10 Mar 2016 00:42:02 +0300 Subject: [PATCH] IConnectionController has been fixed --- src/lrdatadesignintf.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lrdatadesignintf.h b/src/lrdatadesignintf.h index 98a193d..82a3bc1 100644 --- a/src/lrdatadesignintf.h +++ b/src/lrdatadesignintf.h @@ -145,6 +145,8 @@ class IConnectionController{ public: virtual void addConnectionDesc(ConnectionDesc* connection) = 0; virtual void changeConnectionDesc(ConnectionDesc* connection) = 0; + virtual bool checkConnectionDesc(ConnectionDesc* connection) = 0; + virtual QString lastError() const = 0; }; class QueryDesc : public QObject{ @@ -365,7 +367,7 @@ class CallbackDatasource :public ICallbackDatasource, public IDataSource { public: CallbackDatasource(): m_currentRow(-1), m_eof(false){} bool next(); - bool hasNext(){ if (!m_eof) return checkNextRecord(m_currentRow);} + bool hasNext(){ if (!m_eof) return checkNextRecord(m_currentRow); else return false;} bool prior(){ if (m_currentRow !=-1) {m_currentRow--; return true;} else return false;} void first(); void last(){}