Class GuiState

Index Home MAE > MAE Architecture > MAE Data Types > Class Index > Class GuiState

Summary
Public Methods
GuiState(id)
GuiState(p)
GuiState()
inline bool valid() const
inline DbRecNum getId() const
inline DbRecNum getPCId() const
inline DbRecNum getUserId() const
inline string getTag() const
inline string getValue() const
inline bool setPCId(PC_id)
inline bool setUserId(User_id)
inline bool setTag(Tag)
inline bool setValue(Value)
bool save()
HashArray toHashArray(forDB) const
inline XMLData toXML() const
static DbRecList getStateRecords(PC_id, User_id)
Protected Methods
bool load(id)
Private Properties
Private Methods
static bool initdb()
void set(data)
bool saveField(fieldName, value)
bool saveField(fieldName, value)
See Also

#include <GuiState.h >

Summary

Table for tracking various UI state variables, per user.

Public Methods

GuiState(id)

DbRecNum id


constructors

GuiState(p)

const GuiState& p


GuiState()

inline bool valid() const

Determine if this is valid data or not

inline DbRecNum getId() const

basic GET functions

inline DbRecNum getPCId() const

inline DbRecNum getUserId() const

inline string getTag() const

inline string getValue() const

inline bool setPCId(PC_id)

DbRecNum PC_id


inline bool setUserId(User_id)

DbRecNum User_id


inline bool setTag(Tag)

string Tag


inline bool setValue(Value)

string Value


bool save()

save if changed

HashArray toHashArray(forDB) const

bool forDB

Default value: false


convert structure data to HashArray

inline XMLData toXML() const

convert to XML

static DbRecList getStateRecords(PC_id, User_id)

DbRecNum PC_id

DbRecNum User_id


user state for a PC

Protected Methods

bool load(id)

DbRecNum id


load a record

Private Properties

DbRecNum id

Table record number/id

DbRecNum PC_id

PC id for PC-specific state

DbRecNum User_id

User id for User-specific state

string Tag

UI tag/keyword of state variable

string Value

Value of state variable

static Datastore db


Private Methods

static bool initdb()

make sure we're connected to our table

void set(data)

const HashArray& data


bool saveField(fieldName, value)

string fieldName

string value


save a db field value

bool saveField(fieldName, value)

string fieldName

int value


See Also

GuiState database table