qsql: move QSqlCachedResultPrivate to header
Later changes will subclass this class. Moving to the header now for better readable patches. Change-Id: If17607d69169aa5c449c36c9445308164e387f29 Reviewed-by: Andy Shaw <andy.shaw@theqtcompany.com>
This commit is contained in:
parent
6303f5c7b8
commit
22639e65d2
@ -53,24 +53,6 @@ QT_BEGIN_NAMESPACE
|
||||
|
||||
static const uint initial_cache_size = 128;
|
||||
|
||||
class QSqlCachedResultPrivate
|
||||
{
|
||||
public:
|
||||
QSqlCachedResultPrivate();
|
||||
bool canSeek(int i) const;
|
||||
inline int cacheCount() const;
|
||||
void init(int count, bool fo);
|
||||
void cleanup();
|
||||
int nextIndex();
|
||||
void revertLast();
|
||||
|
||||
QSqlCachedResult::ValueCache cache;
|
||||
int rowCacheEnd;
|
||||
int colCount;
|
||||
bool forwardOnly;
|
||||
bool atEnd;
|
||||
};
|
||||
|
||||
QSqlCachedResultPrivate::QSqlCachedResultPrivate():
|
||||
rowCacheEnd(0), colCount(0), forwardOnly(false), atEnd(false)
|
||||
{
|
||||
|
@ -89,6 +89,24 @@ private:
|
||||
QSqlCachedResultPrivate *d;
|
||||
};
|
||||
|
||||
class QSqlCachedResultPrivate
|
||||
{
|
||||
public:
|
||||
QSqlCachedResultPrivate();
|
||||
bool canSeek(int i) const;
|
||||
inline int cacheCount() const;
|
||||
void init(int count, bool fo);
|
||||
void cleanup();
|
||||
int nextIndex();
|
||||
void revertLast();
|
||||
|
||||
QSqlCachedResult::ValueCache cache;
|
||||
int rowCacheEnd;
|
||||
int colCount;
|
||||
bool forwardOnly;
|
||||
bool atEnd;
|
||||
};
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#endif // QSQLCACHEDRESULT_P_H
|
||||
|
Loading…
Reference in New Issue
Block a user