0
0
mirror of https://github.com/fralx/LimeReport.git synced 2025-01-11 09:08:09 +03:00

IConnectionController has been fixed

This commit is contained in:
Arin Alex 2016-03-10 00:42:02 +03:00
parent 9dc3d4bfd8
commit 4c50be4196

View File

@ -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(){}