get_UncommittedChanges Method

WRAPPER_API std::vector<const Change*> get_UncommittedChanges(void) const

 

Description

Returns a list of all Changes that have not yet been saved to a datasource file.

 

Example

void TestForm::FillAuditList()

{

if (m_dataSource->get_HasChangeLog() && (m_dataSource->get_ChangeLog() != NULL))

{

if(m_dataSource->get_ChangeLog()->get_IsSignatureValid())

{

AddChangesToAuditList(m_dataSource->get_ChangeLog()->get_AllChanges(), false);

}

}

 

if (m_dataSource->get_HasCustomChangeLog() && (m_dataSource->get_CustomChangeLog() != NULL))

{

AddChangesToAuditList(m_dataSource->get_CustomChangeLog()->get_CommittedChanges(), true);

 

if(m_dataSource->GetNumberOfModifications() > 0)

{

AddChangesToAuditList(m_dataSource->get_CustomChangeLog()->get_UncommittedChanges(), true);

}

}

else

{

ui->textEdit->setText("NO Changes");

}

}