kpilot/lib
CUDCounter Class Reference
#include <plugin.h>
Detailed Description
Create-Update-Delete tracking of the plugin, used for reporting purposes (in a consistent manner).The intent is that this class is used by the conduit as it is syncing data. For this to be useful (and be used properly), the conduit needs to tell us how many creates, updates, and deletes it has made to a data store (PC or HH). It also needs to tell us how many records it started with and how many records it has at the conclusion of its processing. Using this information, we can report on it consistently as well as analyze the activity taken by the conduit and offer rollback functionality if we think the conduit has behaved improperly.
Definition at line 194 of file plugin.h.
Public Member Functions | |
CUDCounter (QString s) | |
void | created (unsigned int c=1) |
void | updated (unsigned int u=1) |
void | deleted (unsigned int d=1) |
void | setStartCount (unsigned int t) |
void | setEndCount (unsigned int t) |
unsigned int | countCreated () |
unsigned int | countUpdated () |
unsigned int | countDeleted () |
unsigned int | countStart () |
unsigned int | countEnd () |
unsigned int | percentCreated () |
unsigned int | percentUpdated () |
unsigned int | percentDeleted () |
QString | moo () const |
QString | type () const |
Constructor & Destructor Documentation
|
Create new counter initialized to 0, and be told what kind of CUD we're counting (PC or Handheld, etc. ) |
Member Function Documentation
|
Track the creation of
|
|
Track the destruction of
|
|
Measurement Of Objects -- report numbers of objects created, updated, deleted. This string is already i18n()ed. |
|
percentage of changes. unfortunately, we have to rely on our developers (hi, self!) to correctly set total number of records conduits start with, so add a little protection... |
|
How many
|
|
How many
|
|
Type of counter(Handheld or PC). This string is already i18n()ed. |
|
Track updates to
|
The documentation for this class was generated from the following files: