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:
Mark Brand 2015-11-26 16:52:47 +01:00
parent 6303f5c7b8
commit 22639e65d2
2 changed files with 18 additions and 18 deletions

View File

@ -53,24 +53,6 @@ QT_BEGIN_NAMESPACE
static const uint initial_cache_size = 128; 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(): QSqlCachedResultPrivate::QSqlCachedResultPrivate():
rowCacheEnd(0), colCount(0), forwardOnly(false), atEnd(false) rowCacheEnd(0), colCount(0), forwardOnly(false), atEnd(false)
{ {

View File

@ -89,6 +89,24 @@ private:
QSqlCachedResultPrivate *d; 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 QT_END_NAMESPACE
#endif // QSQLCACHEDRESULT_P_H #endif // QSQLCACHEDRESULT_P_H