DataManager.c File Reference

#include <gtk/gtk.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <mysql/mysql.h>
#include <time.h>
#include <sys/stat.h>
#include "encode.h"

Go to the source code of this file.

Defines

#define BUFFER   100
#define BUFFER200   200
#define BUFFER500   500
#define BUFFER2500   2500
#define BUFFER5000   5000
#define MAX_BUFF_SIZE   4096
#define PRIMARY_KEY_ERROR   1062

Functions

GtkWidget * AddContact ()
 This method returns the frame used in the add contact functionality.
GtkWidget * EditDeleteExportContact ()
 This method returns the frame used in edit/delete/export contact functionality.
GtkWidget * Todo ()
 This method returns the frame used in add/edit/delete todo functionality.
char * ExportContact ()
 This method returns the name of the file to which the contact details are to be exported.
void ResizeAndSetImage (char *imageFileName)
 This method resizes and saves the image in the pics folder.
void handler (GtkWidget *widget, gpointer data)
 This is the common event handler for the buttons in the main tab.
void ButtonAddHandler (GtkWidget *widget, gpointer data)
 This is the common event handler for Add/Edit/Delete operations on contacts and todo objects.
void SelectDate (GtkWidget *widget, gpointer data)
 This method is an event handler for the date button used in todo feature for due date.
void GetDate (GtkWidget *widget, gpointer data)
 This method is an event handler for the calender used in todo feature for due date.
void CloseCalendar (GtkWidget *widget, gpointer data)
 This method is an event handler for the calender used in todo feature for due date.
void SearchAcquaintance (GtkWidget *widget, gpointer data)
 This method is an event handler for the combo box used in the contact feature When a contact is selected, it populates the controls in the frame with the appropriate details of the contact.
void Validation (GtkWidget *widget, gpointer data)
 This is the common event handler for the text boxes which supports numbers only.
void SetImage (GtkWidget *widget, gpointer data)
 This method is an event handler for the image button used to display the image associated with a contact.
void GetData (GtkTextBuffer *buffer, gpointer user_data)
 This method is the event handler for the text area which is called on "changed" event.
void SearchTodo (GtkWidget *widget, gpointer data)
 This method is an event handler for the combo box used in the todo feature When a todo is selected, it populates the controls in the frame with the appropriate details of the task/todo item.
void InitializePDMDB ()
 This method is an initializer for the Personal Data Manager Application.
void ExitProgram ()
 This method provides an exit to the application.
int EstablishDbConnection (MYSQL **mysql_conn, const char username[BUFFER], const char password[BUFFER], const char database[BUFFER], const char server[BUFFER])
 This method establishes a connection with the database.
int AddContactToDB (char firstname[BUFFER200], char lastname[BUFFER200], char mobilenumber[50], char landlinenumber[50], char address[BUFFER2500], char email[BUFFER200], char imagefilename[BUFFER500])
 This method adds the contact details of a person to the application.
int EditContactToDB (int contactid, char firstname[BUFFER200], char lastname[BUFFER200], char mobilenumber[50], char landlinenumber[50], char address[BUFFER2500], char email[BUFFER200], char imagefilename[BUFFER500])
 This method updates the contact details of a person with a given a contact id.
int DeleteContactToDB (int contactid)
 This method deletes the contact details of a person with a given a contact id.
int ExportContactFromDB (char filename[BUFFER500], char firstname[BUFFER200], char lastname[BUFFER200], char mobilenumber[50], char landlinenumber[50], char address[BUFFER2500], char email[BUFFER200], char imagefilename[BUFFER500])
 This method exports the contact details into .vcf format and saves it with the given file name.
int AddTodo (char subject[BUFFER500], char note[BUFFER5000], char duedate[BUFFER])
 This method adds the given todo details to the application.
int EditTodo (int todoid, char subject[BUFFER500], char note[BUFFER5000], char duedate[BUFFER])
 This method edits the given todo details to the application.
int DeleteTodo (int todoid)
 This method deletes the todo details with a given a todo id.
void GetTodo (int todoid, char subject[BUFFER500], char note[BUFFER5000], char duedate[BUFFER])
 This method returns the todo details of a task with a given a todo id.
void GetAllTodoInfo (int **todoid, char ***subject, int *count)
 This method returns subject/summary and todo id of all the todo items known to this application All the arguments are passed as reference and hence form the out variables.
void GetAllContactInfo (int **contactid, char ***fname, char ***lname, int *count)
 This method returns first name, last name and contact id of all the contacts known to this application All the arguments are passed as reference and hence form the out variables.
void GetContact (int contactid, char firstname[BUFFER200], char lastname[BUFFER200], char mobilenumber[50], char landlinenumber[50], char address[BUFFER2500], char email[BUFFER200], char imagefilename[BUFFER500])
 This method returns the contact details of a person with a given a contact id.
int GetMaxContactID ()
 This method returns the maximum value of the contact id among the set of contacts.
int EncodeImage (char imagefilename[BUFFER500])
 This method encodes th given image and stores it in a temp file.
int main (int argc, char *argv[])
 This is the function from which the application starts.

Variables

GtkWidget * window
GtkWidget * tableMain
GtkWidget * frameMain
GtkWidget * textDate
GtkWidget * textSubject
GtkWidget * textContent
GtkWidget * textFirstName
GtkWidget * textLastName
GtkWidget * textMobile
GtkWidget * textLandline
GtkWidget * textEmail
GtkWidget * textHome
GtkWidget * buttonImage
GtkWidget * image
GtkWidget * comboSearch
GtkWidget * comboSearchTodo
MYSQL * default_sql_conn = NULL
char CS_USER [20] = "cs3002_user"
char CS_PASSWORD [20] = "cs3002_password"
char CS_DATABASE [20] = "cs3002_database"
char CS_SERVER [20] = "localhost"
int flag = 0
int flag2 = 0
int contactID
int todoID
int cnt = 0
int count = 0
int i = 0
char date [11]
char ** firstname
char ** lastname
char ** subjectTodo
char getImageFileName [BUFFER500]
char subTodo [BUFFER200]
char name [402]
const gchar * imageFileName
int * allContactID
int * allTodoID
char homeAddress [BUFFER2500]
char newPath [1000]
char note [BUFFER2500]
char currentDate [11]

Define Documentation

#define BUFFER   100

Definition at line 10 of file DataManager.c.

Referenced by ButtonAddHandler(), handler(), and SelectDate().

#define BUFFER200   200

Definition at line 11 of file DataManager.c.

Referenced by AddContact(), EditDeleteExportContact(), and SearchAcquaintance().

#define BUFFER2500   2500

Definition at line 13 of file DataManager.c.

Referenced by SearchAcquaintance(), and SearchTodo().

#define BUFFER500   500

Definition at line 12 of file DataManager.c.

Referenced by main(), ResizeAndSetImage(), SearchTodo(), and Todo().

#define BUFFER5000   5000

Definition at line 14 of file DataManager.c.

Referenced by ExportContactFromDB().

#define MAX_BUFF_SIZE   4096
#define PRIMARY_KEY_ERROR   1062

Definition at line 16 of file DataManager.c.

Referenced by AddContactToDB(), and AddTodo().


Function Documentation

GtkWidget * AddContact (  ) 

This method returns the frame used in the add contact functionality.

It adds all the necessary controls to the frame and then returns the final result

Returns:
the frame (GtkWidget) having all the controls required in the add contact feature

Definition at line 506 of file DataManager.c.

References BUFFER200, ButtonAddHandler(), buttonImage, GetData(), image, SetImage(), textEmail, textFirstName, textHome, textLandline, textLastName, textMobile, and Validation().

Referenced by handler().

int AddContactToDB ( char  firstname[BUFFER200],
char  lastname[BUFFER200],
char  mobilenumber[50],
char  landlinenumber[50],
char  address[BUFFER2500],
char  email[BUFFER200],
char  imagefilename[BUFFER500] 
)

This method adds the contact details of a person to the application.

Returns:
new contact id - on success. -1 on failure
Parameters:
firstname is the first name of the contact
lastname is the last name of the contact
mobilenumber cell number of the contact
landlinenumber is the home phone number of the contact
address is the postal address of the contact
email is the email address of the contact
imagefilename is the image file associated with the contact

Definition at line 980 of file DataManager.c.

References default_sql_conn, firstname, GetMaxContactID(), lastname, MAX_BUFF_SIZE, and PRIMARY_KEY_ERROR.

Referenced by ButtonAddHandler().

int AddTodo ( char  subject[BUFFER500],
char  note[BUFFER5000],
char  duedate[BUFFER] 
)

This method adds the given todo details to the application.

Returns:
the new todo -id of thhe given todo details.
Parameters:
subject is the main topic/summary of the task to be done
note consists of the task in detail
duedate is the date on which the task will be due.

Definition at line 1491 of file DataManager.c.

References default_sql_conn, MAX_BUFF_SIZE, note, and PRIMARY_KEY_ERROR.

Referenced by ButtonAddHandler().

void ButtonAddHandler ( GtkWidget *  widget,
gpointer  data 
)

This is the common event handler for Add/Edit/Delete operations on contacts and todo objects.

The event handler keeps track of the flag variable to identify the action and the entity

Parameters:
widget is the GtkWidget which has raised the event
data is the data associated with the event.

Definition at line 254 of file DataManager.c.

References AddContactToDB(), AddTodo(), BUFFER, contactID, date, DeleteContactToDB(), DeleteTodo(), EditContactToDB(), EditDeleteExportContact(), EditTodo(), ExportContact(), ExportContactFromDB(), flag, frameMain, getImageFileName, homeAddress, image, newPath, note, tableMain, textDate, textEmail, textFirstName, textLandline, textLastName, textMobile, textSubject, Todo(), todoID, and window.

Referenced by AddContact(), EditDeleteExportContact(), and Todo().

void CloseCalendar ( GtkWidget *  widget,
gpointer  data 
)

This method is an event handler for the calender used in todo feature for due date.

It gets called in the 'delete' event of the widget and destroys the widget

Parameters:
widget is the GtkWidget which has raised the event
data is the data associated with the event.

Definition at line 925 of file DataManager.c.

References flag2.

Referenced by SelectDate().

int DeleteContactToDB ( int  contactid  ) 

This method deletes the contact details of a person with a given a contact id.

Returns:
1 - on success. -1 on failure. -2 - if the contact id is not found in the database.
Parameters:
contactid is the id of the contact whose details is to deleted.

Definition at line 1058 of file DataManager.c.

References default_sql_conn, and MAX_BUFF_SIZE.

Referenced by ButtonAddHandler().

int DeleteTodo ( int  todoid  ) 

This method deletes the todo details with a given a todo id.

Returns:
1 - on success. -1 on failure. -2 - if the todo-id is not found in the database.
Parameters:
todoid is the id of the task whose details is to deleted.

Definition at line 1588 of file DataManager.c.

References default_sql_conn, and MAX_BUFF_SIZE.

Referenced by ButtonAddHandler().

int EditContactToDB ( int  contactid,
char  firstname[BUFFER200],
char  lastname[BUFFER200],
char  mobilenumber[50],
char  landlinenumber[50],
char  address[BUFFER2500],
char  email[BUFFER200],
char  imagefilename[BUFFER500] 
)

This method updates the contact details of a person with a given a contact id.

Returns:
1 - on success. -1 on failure. -2 - if the contact id is not found in the database.
Parameters:
contactid is the id of the contact whose details is to be saved.
firstname is the first name of the contact
lastname is the last name of the contact
mobilenumber cell number of the contact
landlinenumber is the home phone number of the contact
address is the postal address of the contact
email is the email address of the contact
imagefilename is the image file associated with the contact

Definition at line 1018 of file DataManager.c.

References default_sql_conn, firstname, lastname, and MAX_BUFF_SIZE.

Referenced by ButtonAddHandler().

GtkWidget * EditDeleteExportContact (  ) 

This method returns the frame used in edit/delete/export contact functionality.

It adds all the necessary controls to the frame and then returns the final result

Returns:
the frame (GtkWidget) having all the controls required in the contact feature(ie add/edit/delete)

Definition at line 583 of file DataManager.c.

References allContactID, BUFFER200, ButtonAddHandler(), buttonImage, cnt, comboSearch, firstname, flag, GetAllContactInfo(), GetData(), i, image, lastname, name, SearchAcquaintance(), SetImage(), textEmail, textFirstName, textHome, textLandline, textLastName, textMobile, and Validation().

Referenced by ButtonAddHandler(), and handler().

int EditTodo ( int  todoid,
char  subject[BUFFER500],
char  note[BUFFER5000],
char  duedate[BUFFER] 
)

This method edits the given todo details to the application.

Returns:
1 - on success. -1 on failure. -2 - if the todo id is not found in the database.
Parameters:
todoid is the id of the task whose details is to updated.
subject is the main topic/summary of the task to be done
note consists of the task in detail
duedate is the date on which the task will be due.

Definition at line 1552 of file DataManager.c.

References default_sql_conn, MAX_BUFF_SIZE, and note.

Referenced by ButtonAddHandler().

int EncodeImage ( char  imagefilename[BUFFER500]  ) 

This method encodes th given image and stores it in a temp file.

It is an interface method which makes use of encode.h and does a base64 encoding of the given image.

Parameters:
imagefilename is the name of the image file to be encoded.
Returns:
1 - On Success. -1 - On failure.

Definition at line 1412 of file DataManager.c.

References b64().

Referenced by ExportContactFromDB().

int EstablishDbConnection ( MYSQL **  mysql_conn,
const char  username[BUFFER],
const char  password[BUFFER],
const char  database[BUFFER],
const char  server[BUFFER] 
)

This method establishes a connection with the database.

It is called up only during the startup of the applicaion

Returns:
1 on success. -1 if initialization with the database fails. -2 if connection to the database fails.
Parameters:
mysql_conn 
username is the name of the mysql user
password is the password of the mysql user
database is the name of the database to which the application would connect to
server is the server in which the database server resides

Definition at line 1134 of file DataManager.c.

Referenced by InitializePDMDB().

void ExitProgram (  ) 

This method provides an exit to the application.

It will close the database connection which is open (if any) and quit the application.

Definition at line 1157 of file DataManager.c.

References default_sql_conn.

Referenced by InitializePDMDB().

char * ExportContact (  ) 

This method returns the name of the file to which the contact details are to be exported.

Returns:
the name of the file into which teh details are to be saved - on success.

Definition at line 948 of file DataManager.c.

References window.

Referenced by ButtonAddHandler().

int ExportContactFromDB ( char  filename[BUFFER500],
char  firstname[BUFFER200],
char  lastname[BUFFER200],
char  mobilenumber[50],
char  landlinenumber[50],
char  address[BUFFER2500],
char  email[BUFFER200],
char  imagefilename[BUFFER500] 
)

This method exports the contact details into .vcf format and saves it with the given file name.

This method combines the details of the contact with the encoded image data, formats and saves it.

Returns:
1 on success. -1 on failure.
Parameters:
filename is the name of the file to which the data is to be exported.
firstname is the first name of the contact
lastname is the last name of the contact
mobilenumber cell number of the contact
landlinenumber home phone number of the contact
address is the postal address of the contact
email is the email address of the contact
imagefilename is the image file associated with the contact

Definition at line 1308 of file DataManager.c.

References BUFFER5000, EncodeImage(), firstname, i, and lastname.

Referenced by ButtonAddHandler().

void GetAllContactInfo ( int **  contactid,
char ***  fname,
char ***  lname,
int *  count 
)

This method returns first name, last name and contact id of all the contacts known to this application All the arguments are passed as reference and hence form the out variables.

Parameters:
contactid is an array of all contact ids in the database.
fname is an array of all first names in the database.
lname is an array of all last name of in the database.
count is the total number of contacts known to the application

Definition at line 1187 of file DataManager.c.

References default_sql_conn, firstname, and lastname.

Referenced by EditDeleteExportContact().

void GetAllTodoInfo ( int **  todoid,
char ***  subject,
int *  count 
)

This method returns subject/summary and todo id of all the todo items known to this application All the arguments are passed as reference and hence form the out variables.

Parameters:
todoid is an array of all todo item ids in the database.
subject is an array of all task item summaries in the database.
count is the total number of todo items known to the application

Definition at line 1675 of file DataManager.c.

References default_sql_conn.

Referenced by Todo().

void GetContact ( int  contactid,
char  firstname[BUFFER200],
char  lastname[BUFFER200],
char  mobilenumber[50],
char  landlinenumber[50],
char  address[BUFFER2500],
char  email[BUFFER200],
char  imagefilename[BUFFER500] 
)

This method returns the contact details of a person with a given a contact id.

All the arguments except contact id is passed as reference and hence form the out variables

Parameters:
contactid is the id of the contact whose details is to retrieved.
firstname is the first name of the contact
lastname is the last name of the contact
mobilenumber cell number of the contact
landlinenumber is the home phone number of the contact
address is the postal address of the contact
email is the email address of the contact
imagefilename is the image file associated with the contact

Definition at line 1250 of file DataManager.c.

References default_sql_conn, firstname, lastname, and MAX_BUFF_SIZE.

Referenced by SearchAcquaintance().

void GetData ( GtkTextBuffer *  buffer,
gpointer  user_data 
)

This method is the event handler for the text area which is called on "changed" event.

This method copies the address data from the text buffer to the appropriate program variable.

Parameters:
buffer is the GtkTextBuffer from which the address details are to be read.
user_data is the data associated with the event.

Definition at line 439 of file DataManager.c.

References flag, homeAddress, and note.

Referenced by AddContact(), EditDeleteExportContact(), and Todo().

void GetDate ( GtkWidget *  widget,
gpointer  data 
)

This method is an event handler for the calender used in todo feature for due date.

It gets the date set in the GTK_CALENDER widget and sets it in the text box of due date.

Parameters:
widget is the GtkWidget which has raised the event
data is the data associated with the event.

Definition at line 937 of file DataManager.c.

References date, and textDate.

Referenced by SelectDate().

int GetMaxContactID (  ) 

This method returns the maximum value of the contact id among the set of contacts.

It is a db layer method which accesses the database to get the value.

Returns:
positive contact-id - on success. 0 - if the table is empty. -1 on failure.

Definition at line 1448 of file DataManager.c.

References default_sql_conn.

Referenced by AddContactToDB(), and ResizeAndSetImage().

void GetTodo ( int  todoid,
char  subject[BUFFER500],
char  note[BUFFER5000],
char  duedate[BUFFER] 
)

This method returns the todo details of a task with a given a todo id.

All the arguments except todo id is passed as reference and hence form the out variables

Parameters:
todoid is the id of the todo item whose details is to retrieved.
subject is the main topic/summary of the task to be done
note consists of the task in detail
duedate is the date on which the task will be due.

Definition at line 1628 of file DataManager.c.

References default_sql_conn, MAX_BUFF_SIZE, and note.

Referenced by SearchTodo().

void handler ( GtkWidget *  widget,
gpointer  data 
)

This is the common event handler for the buttons in the main tab.

The event handler will display the appropriate form depending on the button that has been clicked.

Parameters:
widget is the GtkWidget which has raised the event
data is the data associated with the event.

Definition at line 457 of file DataManager.c.

References AddContact(), BUFFER, currentDate, date, EditDeleteExportContact(), flag, frameMain, tableMain, and Todo().

Referenced by main().

void InitializePDMDB (  ) 

This method is an initializer for the Personal Data Manager Application.

It establishes a connection with the database, checks for the important tables and 'll create them if not found.

Definition at line 1094 of file DataManager.c.

References CS_DATABASE, CS_PASSWORD, CS_SERVER, CS_USER, default_sql_conn, EstablishDbConnection(), and ExitProgram().

Referenced by main().

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

This is the function from which the application starts.

The main method of this 'c' application.

Returns:
zero on success. non-zero on failure.
Parameters:
argc is the number of arguments
argv is the actual command line arguments

Definition at line 127 of file DataManager.c.

References BUFFER500, currentDate, frameMain, handler(), InitializePDMDB(), tableMain, and window.

void ResizeAndSetImage ( char *  imageFileName  ) 

This method resizes and saves the image in the pics folder.

Parameters:
imageFileName is the name of the image file to be associated with the contact.

Definition at line 713 of file DataManager.c.

References BUFFER500, flag, GetMaxContactID(), image, and newPath.

Referenced by SetImage().

void SearchAcquaintance ( GtkWidget *  widget,
gpointer  data 
)

This method is an event handler for the combo box used in the contact feature When a contact is selected, it populates the controls in the frame with the appropriate details of the contact.

Parameters:
widget is the GtkWidget which has raised the event
data is the data associated with the event.

Definition at line 746 of file DataManager.c.

References allContactID, BUFFER200, BUFFER2500, buttonImage, contactID, flag, GetContact(), getImageFileName, image, newPath, textEmail, textFirstName, textHome, textLandline, textLastName, and textMobile.

Referenced by EditDeleteExportContact().

void SearchTodo ( GtkWidget *  widget,
gpointer  data 
)

This method is an event handler for the combo box used in the todo feature When a todo is selected, it populates the controls in the frame with the appropriate details of the task/todo item.

Parameters:
widget is the GtkWidget which has raised the event
data is the data associated with the event.

Definition at line 782 of file DataManager.c.

References allTodoID, BUFFER2500, BUFFER500, GetTodo(), textContent, textDate, textSubject, and todoID.

Referenced by Todo().

void SelectDate ( GtkWidget *  widget,
gpointer  data 
)

This method is an event handler for the date button used in todo feature for due date.

It creates a window and places a calender control in it and associates the control's event with respective handlers.

Parameters:
widget is the GtkWidget which has raised the event
data is the data associated with the event.

Definition at line 898 of file DataManager.c.

References BUFFER, CloseCalendar(), flag2, GetDate(), and window.

Referenced by Todo().

void SetImage ( GtkWidget *  widget,
gpointer  data 
)

This method is an event handler for the image button used to display the image associated with a contact.

Parameters:
widget is the GtkWidget which has raised the event
data is the data associated with the event.

Definition at line 704 of file DataManager.c.

References buttonImage, imageFileName, and ResizeAndSetImage().

Referenced by AddContact(), and EditDeleteExportContact().

GtkWidget * Todo (  ) 

This method returns the frame used in add/edit/delete todo functionality.

It adds all the necessary controls to the frame and then returns the final result

Returns:
the frame (GtkWidget) having all the controls required in the contact feature(ie add/edit/delete)

Definition at line 805 of file DataManager.c.

References allTodoID, BUFFER500, ButtonAddHandler(), comboSearchTodo, count, date, flag, GetAllTodoInfo(), GetData(), i, SearchTodo(), SelectDate(), subjectTodo, subTodo, textContent, textDate, and textSubject.

Referenced by ButtonAddHandler(), and handler().

void Validation ( GtkWidget *  widget,
gpointer  data 
)

This is the common event handler for the text boxes which supports numbers only.

The event handler will be called during the 'change' event

Parameters:
widget is the GtkWidget which has raised the event
data is the data associated with the event.

Definition at line 1168 of file DataManager.c.

Referenced by AddContact(), and EditDeleteExportContact().


Variable Documentation

Definition at line 115 of file DataManager.c.

Referenced by EditDeleteExportContact(), and SearchAcquaintance().

int* allTodoID

Definition at line 116 of file DataManager.c.

Referenced by SearchTodo(), and Todo().

GtkWidget* buttonImage

Definition at line 89 of file DataManager.c.

Referenced by AddContact(), EditDeleteExportContact(), SearchAcquaintance(), and SetImage().

int cnt = 0

Definition at line 105 of file DataManager.c.

Referenced by EditDeleteExportContact().

GtkWidget* comboSearch

Definition at line 91 of file DataManager.c.

Referenced by EditDeleteExportContact().

GtkWidget* comboSearchTodo

Definition at line 92 of file DataManager.c.

Referenced by Todo().

int contactID

Definition at line 103 of file DataManager.c.

Referenced by ButtonAddHandler(), and SearchAcquaintance().

int count = 0

Definition at line 106 of file DataManager.c.

Referenced by Todo().

char CS_DATABASE[20] = "cs3002_database"

Definition at line 98 of file DataManager.c.

Referenced by InitializePDMDB().

char CS_PASSWORD[20] = "cs3002_password"

Definition at line 97 of file DataManager.c.

Referenced by InitializePDMDB().

char CS_SERVER[20] = "localhost"

Definition at line 99 of file DataManager.c.

Referenced by InitializePDMDB().

char CS_USER[20] = "cs3002_user"

Definition at line 96 of file DataManager.c.

Referenced by InitializePDMDB().

char currentDate[11]

Definition at line 119 of file DataManager.c.

Referenced by handler(), and main().

char date[11]

Definition at line 108 of file DataManager.c.

Referenced by ButtonAddHandler(), GetDate(), handler(), and Todo().

MYSQL* default_sql_conn = NULL
char** firstname
int flag = 0
int flag2 = 0

Definition at line 102 of file DataManager.c.

Referenced by CloseCalendar(), and SelectDate().

GtkWidget* frameMain

Definition at line 75 of file DataManager.c.

Referenced by ButtonAddHandler(), handler(), and main().

char getImageFileName[BUFFER500]

Definition at line 111 of file DataManager.c.

Referenced by ButtonAddHandler(), and SearchAcquaintance().

char homeAddress[BUFFER2500]

Definition at line 117 of file DataManager.c.

Referenced by ButtonAddHandler(), and GetData().

int i = 0

Definition at line 107 of file DataManager.c.

Referenced by decode(), EditDeleteExportContact(), encode(), ExportContactFromDB(), and Todo().

GtkWidget* image
const gchar* imageFileName

Definition at line 114 of file DataManager.c.

Referenced by SetImage().

char ** lastname
char name[402]

Definition at line 113 of file DataManager.c.

Referenced by EditDeleteExportContact().

char newPath[1000]

Definition at line 117 of file DataManager.c.

Referenced by ButtonAddHandler(), ResizeAndSetImage(), and SearchAcquaintance().

char note[BUFFER2500]

Definition at line 118 of file DataManager.c.

Referenced by AddTodo(), ButtonAddHandler(), EditTodo(), GetData(), and GetTodo().

char** subjectTodo

Definition at line 110 of file DataManager.c.

Referenced by Todo().

char subTodo[BUFFER200]

Definition at line 112 of file DataManager.c.

Referenced by Todo().

GtkWidget* tableMain

Definition at line 74 of file DataManager.c.

Referenced by ButtonAddHandler(), handler(), and main().

GtkWidget* textContent

Definition at line 80 of file DataManager.c.

Referenced by SearchTodo(), and Todo().

GtkWidget* textDate

Definition at line 78 of file DataManager.c.

Referenced by ButtonAddHandler(), GetDate(), SearchTodo(), and Todo().

GtkWidget* textEmail
GtkWidget* textFirstName
GtkWidget* textHome

Definition at line 88 of file DataManager.c.

Referenced by AddContact(), EditDeleteExportContact(), and SearchAcquaintance().

GtkWidget* textLandline
GtkWidget* textLastName
GtkWidget* textMobile
GtkWidget* textSubject

Definition at line 79 of file DataManager.c.

Referenced by ButtonAddHandler(), SearchTodo(), and Todo().

int todoID

Definition at line 104 of file DataManager.c.

Referenced by ButtonAddHandler(), and SearchTodo().

GtkWidget* window

Definition at line 73 of file DataManager.c.

Referenced by ButtonAddHandler(), ExportContact(), main(), and SelectDate().

Generated on Wed Apr 7 23:50:17 2010 for DataManager by  doxygen 1.6.3