Renamed Backup accessors and use a forward declaration to sqlite3_backup

This commit is contained in:
Sébastien Rombauts
2016-07-05 07:49:38 +02:00
parent 9fa00ea5ed
commit db7aefb271
3 changed files with 17 additions and 24 deletions

View File

@@ -13,6 +13,8 @@
#include <SQLiteCpp/Exception.h>
#include <sqlite3.h>
#include <string>
namespace SQLite
@@ -90,13 +92,13 @@ int Backup::executeStep(const int aNumPage /* = -1 */)
}
// Get the number of remaining source pages to be copied in this backup process
int Backup::remainingPageCount()
int Backup::getRemainingPageCount()
{
return sqlite3_backup_remaining(mpSQLiteBackup);
}
// Get the number of total source pages to be copied in this backup process
int Backup::totalPageCount()
int Backup::getTotalPageCount()
{
return sqlite3_backup_pagecount(mpSQLiteBackup);
}