gSAFE
1.3.8
|
#include <datalib.h>
Inherits QObject.
Public Slots | |
int | notifySlot (QString tblname) |
Signals | |
void | getnotify (QString tblname) |
Public Member Functions | |
HRefreshAgent (void) | |
Static Public Member Functions | |
static HRefreshAgent * | getNotifyAgent (void) |
static void | notify (QString tblname) |
Protected Member Functions | |
void | internalNotify (QString tblname) |
Static Protected Attributes | |
static HRefreshAgent * | theone = NULL |
This is the "refresh agent" of gSAFE. This class is intend to refresh all sql table data which is updated in the sql database. You can use this class by creating an instance. (But only one instance in the program)
If this class receive a notify with an sql table name it makes to refresh all HList in program which shows that table or depended table.
You can extend the functionaity of this class not only one program but more instance of programs on whole network by using HRefreshAgentNetserver and HRefreshAgentNetclient.
HRefreshAgent::HRefreshAgent | ( | void | ) |
Creates the refresh agent (No need to store the pointer of the instance)
Definition at line 406 of file datalib.cpp.
|
signal |
This signals is used for notify the HList-s
|
inlinestatic |
|
static |
Call this function with an sql table name to makes refresh all HList which depend from that table. That's you need to do. Everything else is automatical.
tblname | the changed tablename |
Definition at line 422 of file datalib.cpp.