#import <appbus_t.h>
Inheritance diagram for appbus_t:

Public Member Functions | |
| (id) | init |
| (id) | free |
| (void) | add_record: |
| (record_t *) | record_by_name: |
| (int) | number_of_records |
| (record_t *) | record_by_index: |
| (int) | save_record_to_db:: |
| (int) | fetch_record_from_db:: |
| (int) | delete_record_in_db:: |
| (void) | find_largest_keys_for_record:: |
| (void) | unlock_record_in_db: |
| (maybe_t) | lock_record_in_db: |
| (long) | new_recid:: |
| (maybe_t) | find_keys_for_record:: |
| (int) | script_exec:::: |
| (int) | wait_for_input: |
| (void) | announce_to_user: |
| (maybe_t) | ask_yesno_question: |
| (void) | set_ui_widgetor: |
| (void) | sendmsgtoall:::: |
| (void) | sendmsg:: |
| (maybe_t) | find_allowed_value::::: |
Static Public Member Functions | |
| (id) | init_with_values:: |
Public Attributes | |
| char * | DBNAME |
| char * | DBUSERNAME |
| char * | DBPASSWORD |
| char * | DBSERVERNAME |
Protected Attributes | |
| pointerlist_t * | recs |
| tcl_t * | tcl_wrapper |
| net_t * | net |
| db_t * | db |
| id< ciroucset_user_interface_utils_p > | ui_widgets |
|
|
method for adding a record, usually called from kortpartser.y
|
|
|
widget like method for saying something to user in visual way Reimplemented from < ciroucset_user_interface_utils_p >. |
|
|
widget like method for asking a yes/no question Reimplemented from < ciroucset_user_interface_utils_p >. |
|
||||||||||||
|
removes record to db
|
|
||||||||||||
|
gets record to db
|
|
||||||||||||||||||||||||
|
method for finding out if current value is among allowed ones and if not, helping user in choosing one. note that user has no other possibility but to choose one :-)
|
|
||||||||||||
|
with a little help from db side finds keys for a record returns yes on success. |
|
||||||||||||
|
invents surrogate keys for a record not yet fetched
|
|
|
frees allocated memory |
|
|
default initializer |
|
||||||||||||
|
actual initializer
|
|
|
locks a record in db from others to use
|
|
||||||||||||
|
returns unique long for tab/col pair
|
|
|
method that returns number of records that this bus knows about
|
|
|
method that returns a record based on its index number. records are numbered from 0-n.
|
|
|
method that returns record by its name
|
|
||||||||||||
|
saves record to db
|
|
||||||||||||||||||||
|
scripting support method |
|
||||||||||||
|
method for sending a message to one recipient.
|
|
||||||||||||||||||||
|
method for sending a message to other instances of this program.
|
|
|
setter for pointer of implementor of ciroucset_user_interface_utils_p
|
|
|
unlocks a record in db for others to use
|
|
|
method for sitting in select() system call checking where the input is coming from. if network message is received during wait, aNetMsgPtr gets assigned a value pointing to content of the message. If that happens, caller is responsible for freeing the buf pointed by aNetMsgPtr ; when this method is called aNetMsgPtr must point to pointer pointing to NULL. |
|
|
db_t may be used to semi-permanently save things |
|
|
these public DB thingies are set by database connection |
|
|
how to reach others: |
|
|
here are record definition structure pointers: |
|
|
tcl_wrapper is scripting support: |
|
|
class that actually implements ciroucset_user_interface_utils_p |
1.4.2