gSAFE  1.3.8
Public Slots | Signals | Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Attributes | List of all members
HRefreshAgent Class Reference

#include <datalib.h>

Inherits QObject.

Public Slots

int notifySlot (QString tblname)


void getnotify (QString tblname)

Public Member Functions

 HRefreshAgent (void)

Static Public Member Functions

static HRefreshAgentgetNotifyAgent (void)
static void notify (QString tblname)

Protected Member Functions

void internalNotify (QString tblname)

Static Protected Attributes

static HRefreshAgenttheone = NULL

Detailed Description

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.

See Also

Definition at line 194 of file datalib.h.

Constructor & Destructor Documentation

HRefreshAgent::HRefreshAgent ( void  )

Creates the refresh agent (No need to store the pointer of the instance)

Definition at line 406 of file datalib.cpp.

Member Function Documentation

void HRefreshAgent::getnotify ( QString  tblname)

This signals is used for notify the HList-s

static HRefreshAgent* HRefreshAgent::getNotifyAgent ( void  )

Returns the pointer of the refresh agent instance

Definition at line 215 of file datalib.h.

void HRefreshAgent::notify ( QString  tblname)

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.

tblnamethe changed tablename

Definition at line 422 of file datalib.cpp.

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