/home/ain/st/project/atmCOMPLETE.c File Reference

#include <gtk/gtk.h>
#include <glib.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "01-connect.h"
#include <mysql/mysql.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>

Go to the source code of this file.

Classes

struct  myparam

Defines

#define GTK_ENABLE_BROKEN
 This project is to combine some of topic that learned in ITWS courses by created a standard ATM Machine application.
#define BUFFER   4096
#define SERV_TCP_PORT   9999
#define BUFSIZE   1024

Functions

static void send_mail ()
 This is called when system want to send report user and report transaction file.
static void create_report ()
 This is called when system want to be create report file to write record transaction from database.
static void updated_password_record ()
 This is called when user change the new password and updated it into database system.
static void updated_transfer_account ()
 This is called when user make tranfer money to other account which is updated balance for other account according the account no.In this function we need to convert amount to float type to easy for calculation process.
static void transfer_money ()
 This is called when user want to transfer money to other account.In this function we need to convert amount to float type to easy for calculation process.
static void insert_report ()
 This is called when system want to save record transaction in database after user did the withdrawal, change password, deposit and transfer transaction.
static void updated_record ()
 This is called when system want to updated balance in database after user did the withdrawal, deposit and transfer transaction.
static void display_row1 ()
 This is called after user connected to database and want to display message.
static void count_withdrawal ()
 This is called when user want to make withdrawal transaction from their account.In this function we need to convert amount to float type to easy for calculation process.
static void count_deposit ()
 This is called when user want to add money to their account.In this function we need to convert amount to float type to easy for calculation process.
static void enter_callback (GtkWidget *entry, GdkEventKey *event, gpointer data)
 This function is to called when user presses button to enter number in entry text.
static gboolean close_application (GtkWidget *widget, GdkEvent *event)
 This is called on pressing button to exit from system.
static gboolean get_focus_click (GtkButton *button, gpointer data)
 This is called on pressing button when user want to enter pin number, amount of money to withdrawal, deposit or transfer and accout no to make transfer money.
static gboolean enter_function (GtkButton *button_Enter, gpointer data)
 This is called on pressing button after user enter pin no/amount/account no in entry text.
static gboolean balance_function (GtkButton *button_Balance, gpointer data)
 This function is to called when user presses button to check their balance available currently.
static gboolean withdraw_function (GtkButton *button_Withdraw, gpointer entry1)
 This function is to called when user presses button to make withdrawal money into their account.
static gboolean deposit_function (GtkButton *button_Deposit, gpointer entry1)
 This function is to called when user presses button to make add money into their account.
static gboolean transfer_function (GtkButton *button_Transfer, gpointer entry1)
 This function is to called when user presses button to make transfer money into other account.
static gboolean changePass_function (GtkButton *button_ChangePass, gpointer entry1)
 This function is to called when user presses button to changes password.
static gboolean cancel_function (GtkButton *button, gpointer data)
 This is called on pressing button to cancel from do any transaction.
static gboolean clear_function (GtkButton *button, gpointer data)
 This is called on pressing button when to clear value shown in entry text.
int main (int argc, char *argv[])
 This is where program starts and generates a ATM MAchine with all numbers, all button, labels and entry components.

Variables

MYSQL * connection1
MYSQL_RES * result1
MYSQL_ROW sqlrow
gchar message [1000]
gchar message1 [1000]
gchar message2 [1000]
gchar message3 [1000]
gchar message4 [1000]
gchar record_user [1000]
gchar record_transaction [1000]
gchar new_user_pin [1000]
gchar trans_type [1000]
gchar trans_status [1000]
gchar trans_balance [1000]
gint transfer_account1 = 0
gint index_report
gchar value [1000]
gchar value2 [1000]
gchar value3 [1000]
gchar value4 [1000]
gchar value5 [1000]
gchar value6 [1000]
gchar value7 [1000]
gchar password [1000]
gchar newPass [1000]
gchar confirmPass [1000]
gint counterPass = 0
gint flags_password = 1
gfloat withdraw_amount1 = 0.0
gint counterWithdraw = 0
gint flags_Withdraw = 0
gint flags_enter = 1
gfloat total_amount1 = 0.0
gint flags_balance = 1
gint flags_deposit = 0
gint counterDeposit = 0
gchar deposit_amount [1000]
gfloat deposit_amount1 = 0.0
gchar account_no [1000]
gint flags_changesPass = 0
gint counterChangePass = 0
gint counterConfirmPass = 0
gint counterCheck = 0
gint i = 0
gint flags_transfer = 0
gint counterTransfer = 0
gchar trans_amount [1000]
gfloat trans_amount1 = 0.0
gint counterAmountTrans = 0
gint index_enter = 0
gchar balance [1000]
gfloat trans_balance1 = 0.0
gint flags
gint confirmPass1 = 0
gint first_click = 0
gint index_record = 0
gint record_no = 0
gint record_bil = 0
FILE * report_user
FILE * report_transaction
char command_statement [BUFFER]
const char * user_pin
const char * withdraw_value
const char * deposit_value
const char * total_amount_new
const char * transfer_account
const char * transfer_amount
const char * new_password
const char * confirm_password
GtkWidget * window
GtkWidget * box_A
GtkWidget * box_A1
GtkWidget * box_A2
GtkWidget * box_A3
GtkWidget * box_B
GtkWidget * box_B1
GtkWidget * button
GtkWidget * entry
GtkWidget * entry1
GtkWidget * label1
GtkWidget * label2
GtkWidget * label3
GtkWidget * separator
GtkWidget * separator1
GtkWidget * separator2
GtkWidget * table
GtkWidget * table1
GtkWidget * button_Balance
GtkWidget * button_Withdraw
GtkWidget * button_Deposit
GtkWidget * button_Transfer
GtkWidget * button_ChangePass
GtkWidget * button_Enter
struct sockaddr_in server_address


Define Documentation

#define BUFFER   4096

Definition at line 37 of file atmCOMPLETE.c.

#define BUFSIZE   1024

Definition at line 55 of file atmCOMPLETE.c.

Referenced by main().

#define GTK_ENABLE_BROKEN

This project is to combine some of topic that learned in ITWS courses by created a standard ATM Machine application.

Areas for project are: 1) GUI programming (GTK) for interface 2) Server based databases (MySQL) for query statement to database 3) Socket Programming for connection ATM machine with SHB bank which is SHB as server and ATM as client 4) File Handling for create report file to write record transaction from database. 5) Shell Command for send report by email to user as their references

This ATM Machine is provide a separate GtkButtons for digits 0 to 9,Enter button to allow user go the next step in any transaction, Cancel button to allow user stop any transaction, Clear button to reset entry text and clear any value shown.Exit button to out of system. Also has some of buttons to allow user make transactions such as Balance button to allow user check their balance available currently, Withdrawal button to user make withdrawal money, Deposit button to allow user to add money in their account using machine, Transfer button to allow user transfer money into other account and Change Password button to allow user to change new password. There also be two GtkEntry which is first entry allow user to clicking on GtkButtons to enter the pin number, amount and no account. The second GtkEntry is to display instruction and message to user. This GtkEntry is set as false editable (user can't write). The ATM is provide GtkLabel to display name of bank, user name and account no.

These ATM application is allow user to make one transaction in the one time such as withdrawal, deposit, transfer money, change password and balance. After user done one transaction such as withdrawal, record transaction will be saved in database. At the same time, one file will be generated to write that record transaction from database. This report file will be sent to mail user and SBH Bank with attached this file. The ATM should support normal floating point and integer calculations that can be done in C using float or integer data types.

Title: ATM Machine application with sending report into email : Nooraini Bt Hamidon No: 200905027 : M.Tech CSE : atmCOMPLETE.c

Definition at line 36 of file atmCOMPLETE.c.

#define SERV_TCP_PORT   9999

Definition at line 54 of file atmCOMPLETE.c.

Referenced by main().


Function Documentation

static gboolean balance_function ( GtkButton *  button_Balance,
gpointer  data 
) [static]

This function is to called when user presses button to check their balance available currently.

Parameters:
*button_Balance GtkButton which allow pressed by user to make transaction
data any additional data passed while generating signal

Definition at line 2222 of file atmCOMPLETE.c.

References connection1, display_row1(), myparam::entry, entry1, first_click, index_enter, message1, result1, and sqlrow.

Referenced by main().

static gboolean cancel_function ( GtkButton *  button,
gpointer  data 
) [static]

This is called on pressing button to cancel from do any transaction.

Parameters:
*button GtkButton allow user press the cancel button
data any additional data passed while generating signal
Returns:
TRUE if you want to cancle transaction, FALSE otherwise

Definition at line 538 of file atmCOMPLETE.c.

References myparam::entry, entry1, first_click, flags_enter, label2, and label3.

Referenced by main().

static gboolean changePass_function ( GtkButton *  button_ChangePass,
gpointer  entry1 
) [static]

This function is to called when user presses button to changes password.

Parameters:
*button_Transfer GtkButton which allow pressed by user to make transaction
entry1 gpointer to display instruction

Definition at line 2317 of file atmCOMPLETE.c.

References first_click, and flags_changesPass.

Referenced by main().

static gboolean clear_function ( GtkButton *  button,
gpointer  data 
) [static]

This is called on pressing button when to clear value shown in entry text.

Parameters:
*button GtkButton allow user press the cancel button
data any additional data passed while generating signal
Returns:
TRUE if you want to clear transaction, FALSE otherwise

Definition at line 559 of file atmCOMPLETE.c.

References counterAmountTrans, counterChangePass, counterConfirmPass, counterDeposit, counterPass, counterTransfer, counterWithdraw, myparam::entry, first_click, and flags_enter.

Referenced by main().

static gboolean close_application ( GtkWidget *  widget,
GdkEvent *  event 
) [static]

This is called on pressing button to exit from system.

It calls gtk_main_quit() to end gtk_main and return to main()

Parameters:
*event GdkEvent which generated the event.
*widget GtkWidget allow user press the button
Returns:
FALSE if you want to closing, TRUE otherwise

Definition at line 526 of file atmCOMPLETE.c.

Referenced by main().

void count_deposit (  )  [static]

This is called when user want to add money to their account.In this function we need to convert amount to float type to easy for calculation process.

User can't add money more than rs50000 in one time. otherwise transaction will be failed

Definition at line 2023 of file atmCOMPLETE.c.

References connection1, deposit_amount1, deposit_value, entry1, message2, sqlrow, total_amount1, trans_status, and trans_type.

Referenced by enter_function().

void count_withdrawal (  )  [static]

This is called when user want to make withdrawal transaction from their account.In this function we need to convert amount to float type to easy for calculation process.

User can't make withdrawal money more than total amount of money available in their account. otherwise transaction will be failed

Definition at line 1974 of file atmCOMPLETE.c.

References connection1, entry1, message2, sqlrow, total_amount1, trans_status, trans_type, withdraw_amount1, and withdraw_value.

Referenced by enter_function().

void create_report (  )  [static]

This is called when system want to be create report file to write record transaction from database.

Here, has two file which are report user and report transaction. Report user will retrieve data about infromation about user such as name, account no and balance available currently. Report transaction will retrieve data latest transaction done by user.

Definition at line 1850 of file atmCOMPLETE.c.

References connection1, index_record, record_transaction, record_user, report_transaction, report_user, and sqlrow.

Referenced by enter_function().

static gboolean deposit_function ( GtkButton *  button_Deposit,
gpointer  entry1 
) [static]

This function is to called when user presses button to make add money into their account.

Parameters:
*button_Deposit GtkButton which allow pressed by user to make transaction
entry1 gpointer to display instruction

Definition at line 2273 of file atmCOMPLETE.c.

References first_click, and flags_deposit.

Referenced by main().

void display_row1 (  )  [static]

This is called after user connected to database and want to display message.

Message will be display after system finish retrieved data from database according what kind of data to be selected.

Definition at line 1754 of file atmCOMPLETE.c.

References connection1, entry1, first_click, flags, flags_balance, flags_enter, flags_transfer, index_enter, label2, label3, message, message1, message2, message3, message4, new_user_pin, sqlrow, and trans_balance.

Referenced by balance_function(), and enter_function().

static void enter_callback ( GtkWidget *  entry,
GdkEventKey *  event,
gpointer  data 
) [static]

This function is to called when user presses button to enter number in entry text.

Also to display instruction and message in other entry text

Parameters:
*entry Widget which generated the entry
*event Widget which generated the event
data any additional data passed while generating signal

Definition at line 508 of file atmCOMPLETE.c.

Referenced by main().

static gboolean enter_function ( GtkButton *  button_Enter,
gpointer  data 
) [static]

This is called on pressing button after user enter pin no/amount/account no in entry text.

In this function to allow user to connect database to display data according type of transaction.

Parameters:
*button_Enter GtkButton allow user press the enter button
data any additional data passed while generating signal to hold value entered by user
Returns:
TRUE if you allow to continue any transaction, FALSE otherwise

Definition at line 1066 of file atmCOMPLETE.c.

References confirm_password, confirmPass, connection1, count_deposit(), count_withdrawal(), counterCheck, create_report(), deposit_value, display_row1(), myparam::entry, entry1, flags, flags_changesPass, flags_enter, flags_transfer, i, index_enter, index_record, insert_report(), message, message1, new_password, newPass, record_no, result1, send_mail(), sqlrow, transfer_account, transfer_amount, transfer_money(), updated_password_record(), updated_record(), updated_transfer_account(), user_pin, and withdraw_value.

Referenced by main().

static gboolean get_focus_click ( GtkButton *  button,
gpointer  data 
) [static]

This is called on pressing button when user want to enter pin number, amount of money to withdrawal, deposit or transfer and accout no to make transfer money.

User allow to enter 4 digit for pin number, at most 5 digit number for amount of withdrawal/deposit/transfer and 7 digit number for account no. Pin number is setting as an invisible for security and authorized.

Parameters:
*button GtkButton allow user press the digit button
data any additional data passed while generating signal
Returns:
TRUE if you want to clear transaction, FALSE otherwise

Definition at line 590 of file atmCOMPLETE.c.

References confirmPass, counterAmountTrans, counterChangePass, counterConfirmPass, counterDeposit, counterPass, counterTransfer, counterWithdraw, myparam::entry, flags_changesPass, flags_deposit, flags_enter, flags_password, flags_transfer, flags_Withdraw, newPass, value, value2, value3, value4, value5, value6, and value7.

Referenced by main().

void insert_report (  )  [static]

This is called when system want to save record transaction in database after user did the withdrawal, change password, deposit and transfer transaction.

Definition at line 2141 of file atmCOMPLETE.c.

References confirmPass, connection1, deposit_amount1, message1, message3, record_bil, record_no, trans_amount1, trans_status, trans_type, and withdraw_amount1.

Referenced by enter_function().

int main ( int  argc,
char *  argv[] 
)

This is where program starts and generates a ATM MAchine with all numbers, all button, labels and entry components.

This is where program execution starts which is database and socket are connected to server. All arguments are passed to gtk for processing, which removes any arguments relevant to it. All other arguments are ignored.

Parameters:
argc Number of arguments passed.
argv NULL terminated array of command line arguments.
Returns:
EXIT_SUCCESS on success, EXIT_FAILURE on failure

Definition at line 205 of file atmCOMPLETE.c.

References balance_function(), box_A, box_A1, box_A2, box_A3, box_B, box_B1, BUFSIZE, button, button_Balance, button_ChangePass, button_Deposit, button_Enter, button_Transfer, button_Withdraw, cancel_function(), changePass_function(), clear_function(), close_application(), connection1, deposit_function(), enter_callback(), enter_function(), myparam::entry, entry1, get_focus_click(), label1, label2, label3, separator, separator1, separator2, SERV_TCP_PORT, server_address, table, table1, transfer_function(), window, and withdraw_function().

void send_mail (  )  [static]

This is called when system want to send report user and report transaction file.

All the reports will be send to user through by student mail and bank (SBH mail) with attachment file for their references.

Definition at line 1907 of file atmCOMPLETE.c.

References command_statement.

Referenced by enter_function().

static gboolean transfer_function ( GtkButton *  button_Transfer,
gpointer  entry1 
) [static]

This function is to called when user presses button to make transfer money into other account.

Parameters:
*button_Transfer GtkButton which allow pressed by user to make transaction
entry1 gpointer to display instruction

Definition at line 2295 of file atmCOMPLETE.c.

References first_click, and flags_transfer.

Referenced by main().

void transfer_money (  )  [static]

This is called when user want to transfer money to other account.In this function we need to convert amount to float type to easy for calculation process.

User can't transfer money more than rs50000 in one time. otherwise transaction will be failed

Definition at line 1924 of file atmCOMPLETE.c.

References connection1, entry1, message2, sqlrow, total_amount1, trans_amount1, trans_status, trans_type, transfer_account1, and transfer_amount.

Referenced by enter_function().

void updated_password_record (  )  [static]

This is called when user change the new password and updated it into database system.

Definition at line 2066 of file atmCOMPLETE.c.

References confirmPass, connection1, entry1, new_user_pin, trans_status, and trans_type.

Referenced by enter_function().

void updated_record (  )  [static]

This is called when system want to updated balance in database after user did the withdrawal, deposit and transfer transaction.

Definition at line 2119 of file atmCOMPLETE.c.

References connection1, message1, and total_amount1.

Referenced by enter_function().

void updated_transfer_account (  )  [static]

This is called when user make tranfer money to other account which is updated balance for other account according the account no.In this function we need to convert amount to float type to easy for calculation process.

Definition at line 2095 of file atmCOMPLETE.c.

References connection1, message3, trans_amount1, trans_balance, and trans_balance1.

Referenced by enter_function().

static gboolean withdraw_function ( GtkButton *  button_Withdraw,
gpointer  entry1 
) [static]

This function is to called when user presses button to make withdrawal money into their account.

Parameters:
*button_Deposit GtkButton which allow pressed by user to make transaction
entry1 gpointer to display instruction

Definition at line 2338 of file atmCOMPLETE.c.

References first_click, and flags_Withdraw.

Referenced by main().


Variable Documentation

gchar account_no

Definition at line 122 of file atmCOMPLETE.c.

gchar balance[1000]

Definition at line 135 of file atmCOMPLETE.c.

GtkWidget* box_A

Definition at line 162 of file atmCOMPLETE.c.

Referenced by main().

GtkWidget* box_A1

Definition at line 163 of file atmCOMPLETE.c.

Referenced by main().

GtkWidget* box_A2

Definition at line 164 of file atmCOMPLETE.c.

Referenced by main().

GtkWidget* box_A3

Definition at line 165 of file atmCOMPLETE.c.

Referenced by main().

GtkWidget* box_B

Definition at line 166 of file atmCOMPLETE.c.

Referenced by main().

GtkWidget* box_B1

Definition at line 167 of file atmCOMPLETE.c.

Referenced by main().

GtkWidget* button

Definition at line 168 of file atmCOMPLETE.c.

Referenced by main().

GtkWidget* button_Balance

Definition at line 179 of file atmCOMPLETE.c.

Referenced by main().

GtkWidget* button_ChangePass

Definition at line 183 of file atmCOMPLETE.c.

Referenced by main().

GtkWidget* button_Deposit

Definition at line 181 of file atmCOMPLETE.c.

Referenced by main().

GtkWidget* button_Enter

Definition at line 184 of file atmCOMPLETE.c.

Referenced by main().

GtkWidget* button_Transfer

Definition at line 182 of file atmCOMPLETE.c.

Referenced by main().

GtkWidget* button_Withdraw

Definition at line 180 of file atmCOMPLETE.c.

Referenced by main().

char command_statement[BUFFER]

Definition at line 147 of file atmCOMPLETE.c.

Referenced by send_mail().

const char* confirm_password

Definition at line 157 of file atmCOMPLETE.c.

Referenced by enter_function().

gchar confirmPass[1000]

gint confirmPass1 = 0

Definition at line 138 of file atmCOMPLETE.c.

MYSQL* connection1

Definition at line 133 of file atmCOMPLETE.c.

Referenced by clear_function(), and get_focus_click().

Definition at line 124 of file atmCOMPLETE.c.

Referenced by clear_function(), and get_focus_click().

gint counterCheck = 0

Definition at line 126 of file atmCOMPLETE.c.

Referenced by enter_function().

Definition at line 125 of file atmCOMPLETE.c.

Referenced by clear_function(), and get_focus_click().

gint counterDeposit = 0

Definition at line 119 of file atmCOMPLETE.c.

Referenced by clear_function(), and get_focus_click().

gint counterPass = 0

Definition at line 110 of file atmCOMPLETE.c.

Referenced by clear_function(), and get_focus_click().

gint counterTransfer = 0

Definition at line 129 of file atmCOMPLETE.c.

Referenced by clear_function(), and get_focus_click().

gint counterWithdraw = 0

Definition at line 113 of file atmCOMPLETE.c.

Referenced by clear_function(), and get_focus_click().

gchar deposit_amount[1000]

Definition at line 120 of file atmCOMPLETE.c.

gfloat deposit_amount1 = 0.0

Definition at line 121 of file atmCOMPLETE.c.

Referenced by count_deposit(), and insert_report().

const char* deposit_value

Definition at line 152 of file atmCOMPLETE.c.

Referenced by count_deposit(), and enter_function().

GtkWidget* entry

Definition at line 169 of file atmCOMPLETE.c.

GtkWidget* entry1

gint first_click = 0

gint flags

Definition at line 137 of file atmCOMPLETE.c.

Referenced by display_row1(), and enter_function().

gint flags_balance = 1

Definition at line 117 of file atmCOMPLETE.c.

Referenced by display_row1().

Definition at line 123 of file atmCOMPLETE.c.

Referenced by changePass_function(), enter_function(), and get_focus_click().

gint flags_deposit = 0

Definition at line 118 of file atmCOMPLETE.c.

Referenced by deposit_function(), and get_focus_click().

gint flags_enter = 1

gint flags_password = 1

Definition at line 111 of file atmCOMPLETE.c.

Referenced by get_focus_click().

gint flags_transfer = 0

Definition at line 128 of file atmCOMPLETE.c.

Referenced by display_row1(), enter_function(), get_focus_click(), and transfer_function().

gint flags_Withdraw = 0

Definition at line 114 of file atmCOMPLETE.c.

Referenced by get_focus_click(), and withdraw_function().

gint i = 0

Definition at line 127 of file atmCOMPLETE.c.

Referenced by enter_function().

gint index_enter = 0

Definition at line 134 of file atmCOMPLETE.c.

Referenced by balance_function(), display_row1(), and enter_function().

gint index_record = 0

Definition at line 140 of file atmCOMPLETE.c.

Referenced by create_report(), and enter_function().

Definition at line 99 of file atmCOMPLETE.c.

GtkWidget* label1

Definition at line 171 of file atmCOMPLETE.c.

Referenced by main().

GtkWidget* label2

Definition at line 172 of file atmCOMPLETE.c.

Referenced by cancel_function(), display_row1(), and main().

GtkWidget* label3

Definition at line 173 of file atmCOMPLETE.c.

Referenced by cancel_function(), display_row1(), and main().

gchar message[1000]

Definition at line 87 of file atmCOMPLETE.c.

Referenced by display_row1(), and enter_function().

gchar message1[1000]

gchar message2[1000]

Definition at line 89 of file atmCOMPLETE.c.

Referenced by count_deposit(), count_withdrawal(), display_row1(), and transfer_money().

gchar message3[1000]

Definition at line 90 of file atmCOMPLETE.c.

Referenced by display_row1(), insert_report(), and updated_transfer_account().

gchar message4[1000]

Definition at line 91 of file atmCOMPLETE.c.

Referenced by display_row1().

const char* new_password

Definition at line 156 of file atmCOMPLETE.c.

Referenced by enter_function().

gchar new_user_pin[1000]

Definition at line 94 of file atmCOMPLETE.c.

Referenced by display_row1(), and updated_password_record().

gchar newPass[1000]

Definition at line 108 of file atmCOMPLETE.c.

Referenced by enter_function(), and get_focus_click().

gchar password[1000]

Definition at line 107 of file atmCOMPLETE.c.

gint record_bil = 0

Definition at line 142 of file atmCOMPLETE.c.

Referenced by insert_report().

gint record_no = 0

Definition at line 141 of file atmCOMPLETE.c.

Referenced by enter_function(), and insert_report().

gchar record_transaction[1000]

Definition at line 93 of file atmCOMPLETE.c.

Referenced by create_report().

gchar record_user[1000]

Definition at line 92 of file atmCOMPLETE.c.

Referenced by create_report().

Definition at line 146 of file atmCOMPLETE.c.

Referenced by create_report().

FILE* report_user

Definition at line 145 of file atmCOMPLETE.c.

Referenced by create_report().

MYSQL_RES* result1

Definition at line 59 of file atmCOMPLETE.c.

Referenced by balance_function(), enter_function(), and main().

GtkWidget* separator

Definition at line 174 of file atmCOMPLETE.c.

Referenced by main().

GtkWidget* separator1

Definition at line 175 of file atmCOMPLETE.c.

Referenced by main().

GtkWidget* separator2

Definition at line 176 of file atmCOMPLETE.c.

Referenced by main().

struct sockaddr_in server_address

Definition at line 187 of file atmCOMPLETE.c.

Referenced by main().

MYSQL_ROW sqlrow

GtkWidget* table

Definition at line 177 of file atmCOMPLETE.c.

Referenced by main().

GtkWidget* table1

Definition at line 178 of file atmCOMPLETE.c.

Referenced by main().

gfloat total_amount1 = 0.0

Definition at line 116 of file atmCOMPLETE.c.

Referenced by count_deposit(), count_withdrawal(), transfer_money(), and updated_record().

const char* total_amount_new

Definition at line 153 of file atmCOMPLETE.c.

gchar trans_amount[1000]

Definition at line 131 of file atmCOMPLETE.c.

gfloat trans_amount1 = 0.0

Definition at line 132 of file atmCOMPLETE.c.

Referenced by insert_report(), transfer_money(), and updated_transfer_account().

gchar trans_balance[1000]

Definition at line 97 of file atmCOMPLETE.c.

Referenced by display_row1(), and updated_transfer_account().

gfloat trans_balance1 = 0.0

Definition at line 136 of file atmCOMPLETE.c.

Referenced by updated_transfer_account().

gchar trans_status[1000]

gchar trans_type[1000]

const char* transfer_account

Definition at line 154 of file atmCOMPLETE.c.

Referenced by enter_function().

Definition at line 98 of file atmCOMPLETE.c.

Referenced by transfer_money().

const char* transfer_amount

Definition at line 155 of file atmCOMPLETE.c.

Referenced by enter_function(), and transfer_money().

const char* user_pin

Definition at line 150 of file atmCOMPLETE.c.

Referenced by enter_function().

gchar value[1000]

Definition at line 100 of file atmCOMPLETE.c.

Referenced by get_focus_click().

gchar value2[1000]

Definition at line 101 of file atmCOMPLETE.c.

Referenced by get_focus_click().

gchar value3[1000]

Definition at line 102 of file atmCOMPLETE.c.

Referenced by get_focus_click().

gchar value4[1000]

Definition at line 103 of file atmCOMPLETE.c.

Referenced by get_focus_click().

gchar value5[1000]

Definition at line 104 of file atmCOMPLETE.c.

Referenced by get_focus_click().

gchar value6[1000]

Definition at line 105 of file atmCOMPLETE.c.

Referenced by get_focus_click().

gchar value7[1000]

Definition at line 106 of file atmCOMPLETE.c.

Referenced by get_focus_click().

GtkWidget* window

Definition at line 161 of file atmCOMPLETE.c.

Referenced by main().

gfloat withdraw_amount1 = 0.0

Definition at line 112 of file atmCOMPLETE.c.

Referenced by count_withdrawal(), and insert_report().

const char* withdraw_value

Definition at line 151 of file atmCOMPLETE.c.

Referenced by count_withdrawal(), and enter_function().


Generated on Thu Apr 7 17:27:22 2011 for 05-gtk_programming_examples by  doxygen 1.5.8