Vesna
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Classes | Public Member Functions | Static Public Member Functions | List of all members
DatabaseServiceQadra Class Reference

#include <DatabaseServiceQadra.h>

Inheritance diagram for DatabaseServiceQadra:
Inheritance graph
[legend]
Collaboration diagram for DatabaseServiceQadra:
Collaboration graph
[legend]

Classes

class  DataClass
 

Public Member Functions

 DatabaseServiceQadra ()
 
virtual ~DatabaseServiceQadra ()
 
- Public Member Functions inherited from DatabaseService
 DatabaseService ()
 
virtual ~DatabaseService ()
 
ApplicationDefines::DatabaseServiceType GetDatabaseServiceType ()
 

Static Public Member Functions

static
ApplicationDefines::ResultValue 
CreateDBTablesIfNotExist ()
 
static
ApplicationDefines::ResultValue 
AddAndFillColumnsInvAndDeviceSNRIfNeeded (const int inv, const QString &qadraSNR)
 AddAndFillColumnsInvAndDeviceSNRIfNeeded - method checks and adds columns that were added later some time after initial database release. More...
 
static
ApplicationDefines::ResultValue 
InsertQadraMessages (const QList< QadraMessageDataRequest > &qadraMessageDataList)
 
static
ApplicationDefines::ResultValue 
GetQadraMessagesByStatus (QList< QadraMessageDataRequest > &qadraMessageDataList, const QString &status=QADRA_MESSAGE_STATUS_UNPROCESSED)
 
static
ApplicationDefines::ResultValue 
UpdateQadraMessagesStatus (const QadraMessageDataResponse &qadraMessageData, const QString &status=QADRA_MESSAGE_STATUS_SENT)
 
static
ApplicationDefines::ResultValue 
DeleteSentQadraMessagesByStatus (const QString &status=QADRA_MESSAGE_STATUS_SENT)
 
static
ApplicationDefines::ResultValue 
RemoveOldestRecords (const uint32_t maxRecordCount)
 
- Static Public Member Functions inherited from DatabaseService
static bool Vacuum ()
 Vacuum - rebuilds the entire database file, reclaiming unused space and defragmenting data What Actually Happens: More...
 
static bool BeginTransaction ()
 
static bool CommitTransaction ()
 
static bool RollbackTransaction ()
 
static
ApplicationDefines::ResultValue 
Insert (Model &model, QVariant &id)
 
static
ApplicationDefines::ResultValue 
GetID (const Model &model, QVariant &id)
 
static bool PrepareQuery (QSqlQuery &query, const QString &queryContent)
 
static bool ExecQuery (QSqlQuery &query)
 
static
ApplicationDefines::ResultValue 
PrepareAndExecQuery (QSqlQuery &query, const QString &queryContent, const bool doRollbackTransactionOnError)
 
static
ApplicationDefines::ResultValue 
CheckIfTableContainsColumn (const QString &tableName, const QString &columnName, bool &wantedColumnExists)
 

Constructor & Destructor Documentation

DatabaseServiceQadra::DatabaseServiceQadra ( )
DatabaseServiceQadra::~DatabaseServiceQadra ( )
virtual

Member Function Documentation

ApplicationDefines::ResultValue DatabaseServiceQadra::AddAndFillColumnsInvAndDeviceSNRIfNeeded ( const int  inv,
const QString &  qadraSNR 
)
static

AddAndFillColumnsInvAndDeviceSNRIfNeeded - method checks and adds columns that were added later some time after initial database release.

Parameters
inv- identification number of vehicle
qadraSNR- serial number of qadra device
Returns
- ApplicationDefines::Ok on success, other ApplicationDefines::ResultValue values on error

Here is the call graph for this function:

Here is the caller graph for this function:

ApplicationDefines::ResultValue DatabaseServiceQadra::CreateDBTablesIfNotExist ( )
static

Here is the call graph for this function:

Here is the caller graph for this function:

ApplicationDefines::ResultValue DatabaseServiceQadra::DeleteSentQadraMessagesByStatus ( const QString &  status = QADRA_MESSAGE_STATUS_SENT)
static

Here is the call graph for this function:

ApplicationDefines::ResultValue DatabaseServiceQadra::GetQadraMessagesByStatus ( QList< QadraMessageDataRequest > &  qadraMessageDataList,
const QString &  status = QADRA_MESSAGE_STATUS_UNPROCESSED 
)
static

Here is the call graph for this function:

ApplicationDefines::ResultValue DatabaseServiceQadra::InsertQadraMessages ( const QList< QadraMessageDataRequest > &  qadraMessageDataList)
static

Here is the call graph for this function:

Here is the caller graph for this function:

ApplicationDefines::ResultValue DatabaseServiceQadra::RemoveOldestRecords ( const uint32_t  maxRecordCount)
static

Here is the call graph for this function:

ApplicationDefines::ResultValue DatabaseServiceQadra::UpdateQadraMessagesStatus ( const QadraMessageDataResponse qadraMessageData,
const QString &  status = QADRA_MESSAGE_STATUS_SENT 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following files: