This is the main file for the download manager. More...
#include <gtk/gtk.h>
#include <sqlite3.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <strings.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <time.h>
#include <signal.h>
#include <poll.h>
#include <pthread.h>
#include <netinet/in.h>
#include <netdb.h>
#include <errno.h>
#include <fcntl.h>
#include <arpa/inet.h>
#include "stack.h"
Go to the source code of this file.
Classes | |
struct | download_details |
This structure contains details for the thread handler to work. More... | |
Defines | |
#define | SIZE 5000 |
#define | BUFFERSIZE 4096 |
#define | BUFFER 4096 |
Functions | |
int | createdefaultpathwindow (int argc, char *argv[]) |
The function is used to create the default path window which deals with the default path settings. | |
int | createhelpwindow (int argc, char *argv[]) |
The function is used to create the help window which shows the various help options for using the software. | |
int | createinfowindow (int argc, char *argv[]) |
The function is used to create the information window which shows the information related to the software. | |
int | createproxywindow (int argc, char *argv[]) |
The function is used to create the proxy settings window which deals with the proxy settings for the software. | |
void | dialogerror (gchar msg[200]) |
The function is used to create a new dialog window which shows the error. | |
int | createnewdownloadwindow (int argc, char *argv[]) |
The function is used to create the new download window which is used to set the URL,path,name of the download. | |
int | createviewdownloadwindow (int argc, char *argv[]) |
The function is used to create the view download window which shows the information for all the files downloaded so far. | |
void | buttonclicked (GtkButton *button, gpointer user_data) |
The function is the signal handler for the clicks done on the buttons in various windows. | |
void | pathselected (GtkFileChooser *chooser, gpointer user_data) |
The function is the signal handler for the the file chooser when we choose the path of the directory from it. | |
gint | window_delete_event (GtkWidget *widget1, gpointer data) |
The function is the signal handler for the closing window when we click on the cross symbol on the top of the window. | |
gint | hidewindow (GtkWidget *widget1, gpointer data) |
The function is the signal handler for hiding all the windows except the main ones when they are closed. | |
char * | breakstring (char str[SIZE]) |
This is used to break the strings by adding to it when the length of the string is more than 30 bytes. | |
static int | callback (void *NotUsed, int argc, char **argv, char **azColName) |
The function is called as a result of executing the any query on the settings database to return the answer to the query. | |
static int | callback1 (void *NotUsed, int argc, char **argv, char **azColName) |
The function is called as a result of executing the any query on the downloads database to append the results to the liststore. | |
int | connect_to_db () |
The function connects the application to the settings.sqlite3 database. | |
int | connect_to_db1 () |
The function connects the application to the downloads.sqlite3 database. | |
char * | return_data (char id[20]) |
The function is used to fetch proxy,port,path from the database. | |
int | insert_data (char name[200], char path[200], int size, char date[200], char time[200]) |
The function is used to insert filename,path,size,date of download of the file in the database. | |
void | show_data () |
The function fires the query to the downloads database to get all the download details till now. | |
int | update_values (char id[20], char key[200]) |
The function is called as a result of executing the any query on the downloads database to append the results to the liststore. | |
int | getlength (char message[SIZE]) |
The function is used to get the length of the file requested. | |
void * | threadHandler (void *arg1) |
The function used to generate a new download thread for every file from the UI. | |
char * | hostextractor (char url[]) |
The function is used to get the host name from the URL. | |
char * | nameextractor (char namefile[SIZE]) |
The function is used to get the name of the file from the URL requested. | |
int | checkhttp (char url[]) |
The function is used to get the tell whether the URL requested is appended with HTTP or not. | |
void | close_properly (int signal) |
This function is used to delete the files whose downloading is going on when cntrl+c is pressed. | |
int | cleardownloaddetails () |
The function is used to clear the details of all downloads from the downloads database. | |
int | remainingdata (char message2[5000], int mlen) |
The function is used to return the data after the newline i.e after the http response from the proxy. | |
char * | hostextractor (char url[SIZE]) |
The function is used to get the host name from the URL. | |
int | checkhttp (char url[SIZE]) |
The function is used to get the tell whether the URL requested is appended with HTTP or not. | |
void | dialogsucess (gchar msg[200]) |
The function is used to create a new dialog window which shows the sucess messages. | |
void | menuitemclick (GtkMenuItem *menuitem, gpointer user_data) |
The function is the signal handler for the clicks done on the menu items on the main window. | |
int | main (int argc, char *argv[]) |
The function is used to create the main window which shows all the options plus the downloading details. | |
Variables | |
download_details | reqarray [10] |
sqlite3 * | database1 |
sqlite3 * | database2 |
char | tempvalue [50] |
char | proxy [SIZE] |
char | port [SIZE] |
char | dpath [SIZE] |
char | display [SIZE] |
char | tempbreak [SIZE] |
pthread_t | threadid [SIZE] |
char | host [200] |
Stack | s1 |
char | downloadpath [5][1000] |
int | flag [5] = {0,0,0,0,0} |
int | fd [SIZE] |
int | notfound |
char | finalname [SIZE] |
int | forbidden |
char | remains [5000] |
int | gateway |
int | moved |
int | bad |
int | goingon [5] |
GtkWidget * | menupane |
GtkWidget * | framedownload |
GtkWidget * | top_Level_Main_Window |
GtkWidget * | filemenu |
GtkWidget * | menu |
GtkWidget * | editmenu |
GtkWidget * | temp |
GtkWidget * | newdownloadmenu |
GtkWidget * | hpaneforprogressbar |
GtkWidget * | submenuforfile |
GtkWidget * | setproxymenu |
GtkWidget * | helpmenu |
GtkWidget * | submenuforhelp |
GtkWidget * | help |
GtkWidget * | setpathmenu |
GtkWidget * | exitmenu |
GtkWidget * | submenuforedit |
GtkWidget * | infomenu |
GtkWidget * | viewmenu |
GtkWidget * | cleardownloads |
GtkWidget * | viewdownloadsmenu |
GtkWidget * | submenuforview |
GtkWidget * | tabs |
GtkWidget * | tempbutton |
GtkWidget * | tempbutton1 |
GtkWidget * | tablabelproxy |
GtkWidget * | tablabelport |
GtkWidget * | tablabeldownload |
GtkWidget * | vboxforpbar |
GtkWidget * | vboxfortab1 |
GtkWidget * | vboxfortab2 |
GtkWidget * | vboxfortab3 |
GtkWidget * | labelproxy1 |
GtkWidget * | labelproxy2 |
GtkWidget * | labelport1 |
GtkWidget * | labelport2 |
GtkWidget * | labeldownload1 |
GtkWidget * | labeldownload2 |
GtkWidget * | tabproxybutton |
GtkWidget * | tabportbutton |
GtkWidget * | tabdownloadbutton |
GtkWidget * | tabviewdloadbutton |
GtkWidget * | tabnewdloadbutton |
GtkWidget * | tplabel [15] |
GtkWidget * | tooltipfortab1 |
GtkWidget * | tooltipfortab2 |
GtkWidget * | tooltipfortab3 |
GtkWidget * | progressbar [5] |
GtkWidget * | progressbartitle [5] |
GtkWidget * | progressbarstop [5] |
GtkWidget * | tempprogressbar [5] |
GtkWidget * | hboxforpbar [5] |
GtkWidget * | tabframe1 |
GtkWidget * | tabframe2 |
GtkWidget * | tabframe3 |
GtkWidget * | tmp [50] |
GtkWidget * | hsep [5] |
int | tp = 0 |
int | p = 0 |
int | t = 0 |
int | hp = 0 |
GtkWidget * | proxywindow |
GtkWidget * | noproxylabel |
GtkWidget * | noproxyentry |
GtkWidget * | noproxyhbox |
GtkWidget * | vboxforoptions |
GtkWidget * | proxyadd |
GtkWidget * | portadd |
GtkWidget * | proxylabel |
GtkWidget * | portlabel |
GtkWidget * | mainlabel |
GtkWidget * | submitproxy |
GtkWidget * | proxyhbox |
GtkWidget * | porthbox |
GtkWidget * | templabel |
GtkWidget * | templabel1 |
GtkWidget * | templabel2 |
GtkWidget * | templabel3 |
GtkWidget * | templabel4 |
GtkWidget * | templabel10 |
GtkWidget * | templabel11 |
GtkWidget * | hboxforsubmit |
GtkWidget * | framedownload1 |
GtkWidget * | dpathwindow |
GtkWidget * | dpathmainlabel |
GtkWidget * | pathchooser |
GtkWidget * | dpathentry |
GtkWidget * | dpathsubmit |
GtkWidget * | dpathexit |
GtkWidget * | vboxfordpath |
GtkWidget * | hboxforpath |
GtkWidget * | templabel5 |
GtkWidget * | templabel6 |
GtkWidget * | templabel7 |
GtkWidget * | templabel8 |
GtkWidget * | templabel9 |
GtkWidget * | newdownloadwindow |
GtkWidget * | ndmainlabel |
GtkWidget * | URLlabel |
GtkWidget * | savetolabel |
GtkWidget * | filenamelabel |
GtkWidget * | URLentry |
GtkWidget * | filenameentry |
GtkWidget * | savetoentry |
GtkWidget * | submitdownload |
GtkWidget * | exitdownload |
GtkWidget * | vboxfordownload |
GtkWidget * | hboxforURL |
GtkWidget * | hboxforsave |
GtkWidget * | hboxforfilename |
GtkWidget * | hboxforsubmitd |
GtkWidget * | templabel12 |
GtkWidget * | templabel13 |
GtkWidget * | templabel14 |
GtkWidget * | templabel15 |
GtkWidget * | templabel16 |
GtkWidget * | templabel17 |
GtkWidget * | templabel18 |
GtkWidget * | filechooser |
GtkWidget * | vdmainlabel |
GtkWidget * | treeview |
GtkListStore * | liststoredownload |
GtkWidget * | viewdownloadwindow |
GtkTreeIter | iter |
GtkCellRenderer * | renderer |
GtkTreePath * | path |
GtkTreeViewColumn * | col |
GtkWidget * | infonotebook |
GtkWidget * | releaselabel |
GtkWidget * | readmelabel |
GtkWidget * | infowindow |
GtkWidget * | releasepage |
GtkWidget * | readmepage |
GtkWidget * | releasenote [11] |
GtkWidget * | readmenote [12] |
GtkWidget * | helpwindow |
GtkWidget * | helplabels [16] |
GtkWidget * | helpvbox |
This is the main file for the download manager.
Definition in file downloadmanager.c.
#define BUFFER 4096 |
Definition at line 37 of file downloadmanager.c.
Referenced by cleardownloaddetails(), insert_data(), return_data(), show_data(), and update_values().
#define BUFFERSIZE 4096 |
Definition at line 36 of file downloadmanager.c.
Referenced by threadHandler().
#define SIZE 5000 |
Definition at line 35 of file downloadmanager.c.
Referenced by buttonclicked(), and threadHandler().
char * breakstring | ( | char | str[SIZE] | ) |
This is used to break the strings by adding
to it when the length of the string is more than 30 bytes.
The string is broken in chunks of 30 bytes.
str | The input string to be broken(character array) |
Definition at line 306 of file downloadmanager.c.
References tempbreak.
Referenced by buttonclicked(), and main().
void buttonclicked | ( | GtkButton * | button, | |
gpointer | user_data | |||
) |
The function is the signal handler for the clicks done on the buttons in various windows.
button | the object which received the signal | |
user_data | user data set when the signal handler was connected. |
Definition at line 1314 of file downloadmanager.c.
References breakstring(), checkhttp(), createdefaultpathwindow(), createnewdownloadwindow(), createproxywindow(), createviewdownloadwindow(), dialogerror(), dpath, dpathentry, dpathexit, dpathsubmit, dpathwindow, exitdownload, fd, filenameentry, flag, host, hostextractor(), download_details::id, isempty(), labeldownload2, labelport2, labelproxy2, nameextractor(), newdownloadwindow, pop(), port, portadd, progressbarstop, progressbartitle, proxy, proxyadd, proxywindow, push(), s1, savetoentry, SIZE, submitdownload, submitproxy, tabdownloadbutton, tabnewdloadbutton, tabportbutton, tabproxybutton, tabviewdloadbutton, threadHandler(), threadid, update_values(), and URLentry.
Referenced by createdefaultpathwindow(), createnewdownloadwindow(), createproxywindow(), and main().
static int callback | ( | void * | NotUsed, | |
int | argc, | |||
char ** | argv, | |||
char ** | azColName | |||
) | [static] |
The function is called as a result of executing the any query on the settings database to return the answer to the query.
NotUsed | Normally assigned value 0 can be used for other purposes | |
argc | Number of columns in the result | |
argv | The values of all the columns. | |
azColName | The column headers |
Definition at line 370 of file downloadmanager.c.
References tempvalue.
Referenced by cleardownloaddetails(), return_data(), and update_values().
static int callback1 | ( | void * | NotUsed, | |
int | argc, | |||
char ** | argv, | |||
char ** | azColName | |||
) | [static] |
The function is called as a result of executing the any query on the downloads database to append the results to the liststore.
NotUsed | Normally assigned value 0 can be used for other purposes. | |
argc | Number of columns in the result | |
argv | The values of all the columns. | |
azColName | The column headers |
Definition at line 389 of file downloadmanager.c.
References iter, and liststoredownload.
Referenced by insert_data(), and show_data().
int checkhttp | ( | char | url[SIZE] | ) |
The function is used to get the tell whether the URL requested is appended with HTTP or not.
url | exact URL filename from the UI. |
Definition at line 1296 of file downloadmanager.c.
int checkhttp | ( | char | url[] | ) |
The function is used to get the tell whether the URL requested is appended with HTTP or not.
url | exact URL filename from the UI. |
Referenced by buttonclicked().
int cleardownloaddetails | ( | ) |
The function is used to clear the details of all downloads from the downloads database.
Definition at line 405 of file downloadmanager.c.
References BUFFER, callback(), and database2.
Referenced by menuitemclick().
void close_properly | ( | int | signal | ) |
This function is used to delete the files whose downloading is going on when cntrl+c is pressed.
signal | The signal which is generated |
Definition at line 339 of file downloadmanager.c.
Referenced by main().
int connect_to_db | ( | ) |
The function connects the application to the settings.sqlite3 database.
Definition at line 427 of file downloadmanager.c.
References database1.
Referenced by main().
int connect_to_db1 | ( | ) |
The function connects the application to the downloads.sqlite3 database.
Definition at line 449 of file downloadmanager.c.
References database2.
Referenced by main().
int createdefaultpathwindow | ( | int | argc, | |
char * | argv[] | |||
) |
The function is used to create the default path window which deals with the default path settings.
argc | The number of parameter passed to the window for initialization | |
argv | array of the parameters(names of them) |
Definition at line 1939 of file downloadmanager.c.
References buttonclicked(), dpath, dpathentry, dpathexit, dpathmainlabel, dpathsubmit, dpathwindow, hboxforpath, hboxforsubmit, hidewindow(), pathchooser, pathselected(), templabel5, templabel6, templabel7, templabel8, templabel9, and vboxfordpath.
Referenced by buttonclicked(), main(), and menuitemclick().
int createhelpwindow | ( | int | argc, | |
char * | argv[] | |||
) |
The function is used to create the help window which shows the various help options for using the software.
argc | The number of parameter passed to the window for initialization | |
argv | array of the parameters(names of them) |
Definition at line 1875 of file downloadmanager.c.
References helplabels, helpvbox, helpwindow, and hidewindow().
Referenced by menuitemclick().
int createinfowindow | ( | int | argc, | |
char * | argv[] | |||
) |
The function is used to create the information window which shows the information related to the software.
argc | The number of parameter passed to the window for initialization | |
argv | array of the parameters(names of them) |
Definition at line 2162 of file downloadmanager.c.
References hidewindow(), infonotebook, infowindow, readmelabel, readmenote, readmepage, releaselabel, releasenote, and releasepage.
Referenced by menuitemclick().
int createnewdownloadwindow | ( | int | argc, | |
char * | argv[] | |||
) |
The function is used to create the new download window which is used to set the URL,path,name of the download.
argc | The number of parameter passed to the window for initialization | |
argv | array of the parameters(names of them) |
Definition at line 1747 of file downloadmanager.c.
References buttonclicked(), dpath, exitdownload, filechooser, filenameentry, filenamelabel, hboxforfilename, hboxforsave, hboxforsubmitd, hboxforURL, hidewindow(), ndmainlabel, newdownloadwindow, pathselected(), savetoentry, savetolabel, submitdownload, templabel12, templabel13, templabel14, templabel15, templabel16, templabel17, templabel18, URLentry, URLlabel, and vboxfordownload.
Referenced by buttonclicked(), and menuitemclick().
int createproxywindow | ( | int | argc, | |
char * | argv[] | |||
) |
The function is used to create the proxy settings window which deals with the proxy settings for the software.
argc | The number of parameter passed to the window for initialization | |
argv | array of the parameters(names of them) |
Definition at line 2045 of file downloadmanager.c.
References buttonclicked(), hboxforsubmit, hidewindow(), mainlabel, noproxyentry, noproxyhbox, noproxylabel, port, portadd, porthbox, portlabel, proxy, proxyadd, proxyhbox, proxylabel, proxywindow, submitproxy, templabel, templabel1, templabel10, templabel11, templabel2, templabel3, templabel4, and vboxforoptions.
Referenced by buttonclicked(), main(), and menuitemclick().
int createviewdownloadwindow | ( | int | argc, | |
char * | argv[] | |||
) |
The function is used to create the view download window which shows the information for all the files downloaded so far.
argc | The number of parameter passed to the window for initialization | |
argv | array of the parameters(names of them) |
Definition at line 1653 of file downloadmanager.c.
References col, hidewindow(), liststoredownload, renderer, show_data(), treeview, and viewdownloadwindow.
Referenced by buttonclicked(), and menuitemclick().
void dialogerror | ( | gchar | msg[200] | ) |
The function is used to create a new dialog window which shows the error.
msg | Error message to be displayed |
Definition at line 1634 of file downloadmanager.c.
Referenced by buttonclicked().
void dialogsucess | ( | gchar | msg[200] | ) |
The function is used to create a new dialog window which shows the sucess messages.
msg | Sucess message to be displayed |
Definition at line 1617 of file downloadmanager.c.
Referenced by menuitemclick().
int getlength | ( | char | message[SIZE] | ) |
The function is used to get the length of the file requested.
message | the response string received from the server. |
Definition at line 634 of file downloadmanager.c.
References bad, forbidden, gateway, moved, and notfound.
Referenced by threadHandler().
gint hidewindow | ( | GtkWidget * | widget1, | |
gpointer | data | |||
) |
The function is the signal handler for hiding all the windows except the main ones when they are closed.
widget1 | the object which received the signal | |
data | user data set when the signal handler was connected. |
Definition at line 619 of file downloadmanager.c.
Referenced by createdefaultpathwindow(), createhelpwindow(), createinfowindow(), createnewdownloadwindow(), createproxywindow(), and createviewdownloadwindow().
char* hostextractor | ( | char | url[SIZE] | ) |
The function is used to get the host name from the URL.
url | exact URL filename from the UI. |
Definition at line 1226 of file downloadmanager.c.
References host.
char* hostextractor | ( | char | url[] | ) |
The function is used to get the host name from the URL.
url | exact URL filename from the UI. |
Referenced by buttonclicked().
int insert_data | ( | char | name[200], | |
char | path[200], | |||
int | size, | |||
char | date[200], | |||
char | time[200] | |||
) |
The function is used to insert filename,path,size,date of download of the file in the database.
name | filename to be downloaded. | |
path | path of the file to be downloaded. | |
size | size of the file to be downloaded. | |
date | date of download. | |
time | time taken to download the file |
Definition at line 497 of file downloadmanager.c.
References BUFFER, callback1(), and database2.
Referenced by threadHandler().
int main | ( | int | argc, | |
char * | argv[] | |||
) |
The function is used to create the main window which shows all the options plus the downloading details.
argc | The number of parameter passed to the window for initialization | |
argv | array of the parameters(names of them) |
Definition at line 2300 of file downloadmanager.c.
References breakstring(), buttonclicked(), cleardownloads, close_properly(), connect_to_db(), connect_to_db1(), createdefaultpathwindow(), createproxywindow(), database1, database2, dpath, editmenu, exitmenu, filemenu, framedownload, hboxforpbar, help, helpmenu, hpaneforprogressbar, hsep, infomenu, initialize(), labeldownload1, labeldownload2, labelport1, labelport2, labelproxy1, labelproxy2, menu, menuitemclick(), menupane, newdownloadmenu, port, progressbar, progressbarstop, progressbartitle, proxy, push(), return_data(), s1, setpathmenu, setproxymenu, submenuforedit, submenuforfile, submenuforhelp, submenuforview, t, tabdownloadbutton, tabframe1, tabframe2, tabframe3, tablabeldownload, tablabelport, tablabelproxy, tabnewdloadbutton, tabportbutton, tabproxybutton, tabs, tabviewdloadbutton, tempprogressbar, tmp, tooltipfortab1, tooltipfortab2, tooltipfortab3, top_Level_Main_Window, tp, tplabel, vboxforpbar, vboxfortab1, vboxfortab2, vboxfortab3, viewdownloadsmenu, viewmenu, and window_delete_event().
void menuitemclick | ( | GtkMenuItem * | menuitem, | |
gpointer | user_data | |||
) |
The function is the signal handler for the clicks done on the menu items on the main window.
menuitem | the object which received the signal | |
user_data | user data set when the signal handler was connected. |
Definition at line 2256 of file downloadmanager.c.
References cleardownloaddetails(), cleardownloads, createdefaultpathwindow(), createhelpwindow(), createinfowindow(), createnewdownloadwindow(), createproxywindow(), createviewdownloadwindow(), dialogsucess(), help, infomenu, newdownloadmenu, setpathmenu, setproxymenu, and viewdownloadsmenu.
Referenced by main().
char * nameextractor | ( | char | namefile[SIZE] | ) |
The function is used to get the name of the file from the URL requested.
namefile | exact URL filename from the UI. |
Definition at line 1258 of file downloadmanager.c.
References finalname.
Referenced by buttonclicked().
void pathselected | ( | GtkFileChooser * | chooser, | |
gpointer | user_data | |||
) |
The function is the signal handler for the the file chooser when we choose the path of the directory from it.
chooser | the object which received the signal. | |
user_data | user data set when the signal handler was connected. |
Definition at line 572 of file downloadmanager.c.
References dpathentry, filechooser, path, pathchooser, and savetoentry.
Referenced by createdefaultpathwindow(), and createnewdownloadwindow().
int remainingdata | ( | char | message2[5000], | |
int | mlen | |||
) |
The function is used to return the data after the newline i.e after the http response from the proxy.
message2 | The first response sent by the proxy to the http request | |
mlen | The size of the message 2 paramater. |
Definition at line 697 of file downloadmanager.c.
References remains.
Referenced by threadHandler().
char * return_data | ( | char | id[20] | ) |
The function is used to fetch proxy,port,path from the database.
id | The id whose value is to be fetched(dpath,proxy,port). |
Definition at line 471 of file downloadmanager.c.
References BUFFER, callback(), database1, and tempvalue.
Referenced by main().
void show_data | ( | ) |
The function fires the query to the downloads database to get all the download details till now.
Definition at line 521 of file downloadmanager.c.
References BUFFER, callback1(), and database2.
Referenced by createviewdownloadwindow().
void * threadHandler | ( | void * | arg1 | ) |
The function used to generate a new download thread for every file from the UI.
arg1 | the defualt void pointer passed to a string. |
Definition at line 739 of file downloadmanager.c.
References bad, BUFFERSIZE, fd, download_details::filename, flag, download_details::fname, forbidden, download_details::fpath, gateway, getlength(), goingon, download_details::host, hp, download_details::id, insert_data(), moved, notfound, port, progressbar, progressbartitle, proxy, push(), remainingdata(), remains, download_details::request, s1, and SIZE.
Referenced by buttonclicked().
int update_values | ( | char | id[20], | |
char | key[200] | |||
) |
The function is called as a result of executing the any query on the downloads database to append the results to the liststore.
id | The field we want to update like dpath,proxy or port. | |
key | The value to be updated to. |
Definition at line 546 of file downloadmanager.c.
References BUFFER, callback(), and database1.
Referenced by buttonclicked().
gint window_delete_event | ( | GtkWidget * | widget1, | |
gpointer | data | |||
) |
The function is the signal handler for the closing window when we click on the cross symbol on the top of the window.
widget1 | the object which received the signal | |
data | user data set when the signal handler was connected. |
Definition at line 602 of file downloadmanager.c.
Referenced by main().
int bad |
Definition at line 76 of file downloadmanager.c.
Referenced by getlength(), and threadHandler().
GtkWidget* cleardownloads |
Definition at line 99 of file downloadmanager.c.
Referenced by main(), and menuitemclick().
GtkTreeViewColumn* col |
Definition at line 182 of file downloadmanager.c.
Referenced by createviewdownloadwindow().
sqlite3* database1 |
Definition at line 55 of file downloadmanager.c.
Referenced by connect_to_db(), main(), return_data(), and update_values().
sqlite3 * database2 |
Definition at line 55 of file downloadmanager.c.
Referenced by cleardownloaddetails(), connect_to_db1(), insert_data(), main(), and show_data().
char display[SIZE] |
Definition at line 62 of file downloadmanager.c.
char downloadpath[5][1000] |
Definition at line 67 of file downloadmanager.c.
char dpath[SIZE] |
Definition at line 61 of file downloadmanager.c.
Referenced by buttonclicked(), createdefaultpathwindow(), createnewdownloadwindow(), and main().
GtkWidget* dpathentry |
Definition at line 151 of file downloadmanager.c.
Referenced by buttonclicked(), createdefaultpathwindow(), and pathselected().
GtkWidget * dpathexit |
Definition at line 152 of file downloadmanager.c.
Referenced by buttonclicked(), and createdefaultpathwindow().
GtkWidget* dpathmainlabel |
Definition at line 149 of file downloadmanager.c.
Referenced by createdefaultpathwindow().
GtkWidget* dpathsubmit |
Definition at line 152 of file downloadmanager.c.
Referenced by buttonclicked(), and createdefaultpathwindow().
GtkWidget* dpathwindow |
Definition at line 148 of file downloadmanager.c.
Referenced by buttonclicked(), and createdefaultpathwindow().
GtkWidget* editmenu |
Definition at line 85 of file downloadmanager.c.
Referenced by main().
GtkWidget* exitdownload |
Definition at line 168 of file downloadmanager.c.
Referenced by buttonclicked(), and createnewdownloadwindow().
GtkWidget* exitmenu |
Definition at line 95 of file downloadmanager.c.
Referenced by main().
int fd[SIZE] |
Definition at line 69 of file downloadmanager.c.
Referenced by buttonclicked(), close_properly(), and threadHandler().
GtkWidget* filechooser |
Definition at line 172 of file downloadmanager.c.
Referenced by createnewdownloadwindow(), and pathselected().
GtkWidget* filemenu |
Definition at line 83 of file downloadmanager.c.
Referenced by main().
GtkWidget* filenameentry |
Definition at line 165 of file downloadmanager.c.
Referenced by buttonclicked(), and createnewdownloadwindow().
GtkWidget* filenamelabel |
Definition at line 163 of file downloadmanager.c.
Referenced by createnewdownloadwindow().
char finalname[SIZE] |
Definition at line 71 of file downloadmanager.c.
Referenced by nameextractor().
int flag[5] = {0,0,0,0,0} |
Definition at line 68 of file downloadmanager.c.
Referenced by buttonclicked(), and threadHandler().
int forbidden |
Definition at line 72 of file downloadmanager.c.
Referenced by getlength(), and threadHandler().
GtkWidget* framedownload |
Definition at line 81 of file downloadmanager.c.
Referenced by main().
GtkWidget* framedownload1 |
Definition at line 145 of file downloadmanager.c.
int gateway |
Definition at line 74 of file downloadmanager.c.
Referenced by getlength(), and threadHandler().
int goingon[5] |
Definition at line 77 of file downloadmanager.c.
Referenced by close_properly(), and threadHandler().
GtkWidget * hboxforfilename |
Definition at line 170 of file downloadmanager.c.
Referenced by createnewdownloadwindow().
GtkWidget* hboxforpath |
Definition at line 154 of file downloadmanager.c.
Referenced by createdefaultpathwindow().
GtkWidget* hboxforpbar[5] |
Definition at line 120 of file downloadmanager.c.
Referenced by main().
GtkWidget * hboxforsave |
Definition at line 170 of file downloadmanager.c.
Referenced by createnewdownloadwindow().
GtkWidget * hboxforsubmit |
Definition at line 144 of file downloadmanager.c.
Referenced by createdefaultpathwindow(), and createproxywindow().
GtkWidget * hboxforsubmitd |
Definition at line 170 of file downloadmanager.c.
Referenced by createnewdownloadwindow().
GtkWidget* hboxforURL |
Definition at line 170 of file downloadmanager.c.
Referenced by createnewdownloadwindow().
GtkWidget* help |
Definition at line 93 of file downloadmanager.c.
Referenced by main(), and menuitemclick().
GtkWidget* helplabels[16] |
Definition at line 196 of file downloadmanager.c.
Referenced by createhelpwindow().
GtkWidget* helpmenu |
Definition at line 91 of file downloadmanager.c.
Referenced by main().
GtkWidget* helpvbox |
Definition at line 197 of file downloadmanager.c.
Referenced by createhelpwindow().
GtkWidget* helpwindow |
Definition at line 195 of file downloadmanager.c.
Referenced by createhelpwindow().
char host[200] |
Definition at line 65 of file downloadmanager.c.
Referenced by buttonclicked(), and hostextractor().
int hp = 0 |
Definition at line 127 of file downloadmanager.c.
Referenced by threadHandler().
GtkWidget* hpaneforprogressbar |
Definition at line 88 of file downloadmanager.c.
Referenced by main().
GtkWidget* hsep[5] |
Definition at line 123 of file downloadmanager.c.
Referenced by main().
GtkWidget* infomenu |
Definition at line 97 of file downloadmanager.c.
Referenced by main(), and menuitemclick().
GtkWidget* infonotebook |
Definition at line 185 of file downloadmanager.c.
Referenced by createinfowindow().
GtkWidget* infowindow |
Definition at line 188 of file downloadmanager.c.
Referenced by createinfowindow().
GtkTreeIter iter |
Definition at line 179 of file downloadmanager.c.
Referenced by callback1().
GtkWidget* labeldownload1 |
Definition at line 108 of file downloadmanager.c.
Referenced by main().
GtkWidget * labeldownload2 |
Definition at line 108 of file downloadmanager.c.
Referenced by buttonclicked(), and main().
GtkWidget* labelport1 |
Definition at line 107 of file downloadmanager.c.
Referenced by main().
GtkWidget * labelport2 |
Definition at line 107 of file downloadmanager.c.
Referenced by buttonclicked(), and main().
GtkWidget* labelproxy1 |
Definition at line 106 of file downloadmanager.c.
Referenced by main().
GtkWidget * labelproxy2 |
Definition at line 106 of file downloadmanager.c.
Referenced by buttonclicked(), and main().
GtkListStore* liststoredownload |
Definition at line 177 of file downloadmanager.c.
Referenced by callback1(), and createviewdownloadwindow().
GtkWidget* mainlabel |
Definition at line 139 of file downloadmanager.c.
Referenced by createproxywindow().
GtkWidget* menu |
Definition at line 84 of file downloadmanager.c.
Referenced by main().
GtkWidget* menupane |
Definition at line 80 of file downloadmanager.c.
Referenced by main().
int moved |
Definition at line 75 of file downloadmanager.c.
Referenced by getlength(), and threadHandler().
GtkWidget* ndmainlabel |
Definition at line 160 of file downloadmanager.c.
Referenced by createnewdownloadwindow().
GtkWidget* newdownloadmenu |
Definition at line 87 of file downloadmanager.c.
Referenced by main(), and menuitemclick().
GtkWidget* newdownloadwindow |
Definition at line 159 of file downloadmanager.c.
Referenced by buttonclicked(), and createnewdownloadwindow().
GtkWidget* noproxyentry |
Definition at line 132 of file downloadmanager.c.
Referenced by createproxywindow().
GtkWidget* noproxyhbox |
Definition at line 133 of file downloadmanager.c.
Referenced by createproxywindow().
GtkWidget* noproxylabel |
Definition at line 131 of file downloadmanager.c.
Referenced by createproxywindow().
int notfound |
Definition at line 70 of file downloadmanager.c.
Referenced by getlength(), and threadHandler().
int p = 0 |
Definition at line 125 of file downloadmanager.c.
GtkTreePath* path |
Definition at line 181 of file downloadmanager.c.
Referenced by pathselected().
GtkWidget* pathchooser |
Definition at line 150 of file downloadmanager.c.
Referenced by createdefaultpathwindow(), and pathselected().
char port[SIZE] |
Definition at line 60 of file downloadmanager.c.
Referenced by buttonclicked(), createproxywindow(), main(), and threadHandler().
GtkWidget* portadd |
Definition at line 136 of file downloadmanager.c.
Referenced by buttonclicked(), and createproxywindow().
GtkWidget* porthbox |
Definition at line 142 of file downloadmanager.c.
Referenced by createproxywindow().
GtkWidget* portlabel |
Definition at line 138 of file downloadmanager.c.
Referenced by createproxywindow().
GtkWidget* progressbar[5] |
Definition at line 116 of file downloadmanager.c.
Referenced by main(), and threadHandler().
GtkWidget* progressbarstop[5] |
Definition at line 118 of file downloadmanager.c.
Referenced by buttonclicked(), and main().
GtkWidget* progressbartitle[5] |
Definition at line 117 of file downloadmanager.c.
Referenced by buttonclicked(), main(), and threadHandler().
char proxy[SIZE] |
Definition at line 59 of file downloadmanager.c.
Referenced by buttonclicked(), createproxywindow(), main(), and threadHandler().
GtkWidget* proxyadd |
Definition at line 135 of file downloadmanager.c.
Referenced by buttonclicked(), and createproxywindow().
GtkWidget* proxyhbox |
Definition at line 141 of file downloadmanager.c.
Referenced by createproxywindow().
GtkWidget* proxylabel |
Definition at line 137 of file downloadmanager.c.
Referenced by createproxywindow().
GtkWidget* proxywindow |
Definition at line 130 of file downloadmanager.c.
Referenced by buttonclicked(), and createproxywindow().
GtkWidget* readmelabel |
Definition at line 187 of file downloadmanager.c.
Referenced by createinfowindow().
GtkWidget* readmenote[12] |
Definition at line 192 of file downloadmanager.c.
Referenced by createinfowindow().
GtkWidget* readmepage |
Definition at line 190 of file downloadmanager.c.
Referenced by createinfowindow().
GtkWidget* releaselabel |
Definition at line 186 of file downloadmanager.c.
Referenced by createinfowindow().
GtkWidget* releasenote[11] |
Definition at line 191 of file downloadmanager.c.
Referenced by createinfowindow().
GtkWidget* releasepage |
Definition at line 189 of file downloadmanager.c.
Referenced by createinfowindow().
char remains[5000] |
Definition at line 73 of file downloadmanager.c.
Referenced by remainingdata(), and threadHandler().
GtkCellRenderer* renderer |
Definition at line 180 of file downloadmanager.c.
Referenced by createviewdownloadwindow().
Definition at line 52 of file downloadmanager.c.
Stack s1 |
Definition at line 66 of file downloadmanager.c.
Referenced by buttonclicked(), main(), and threadHandler().
GtkWidget* savetoentry |
Definition at line 166 of file downloadmanager.c.
Referenced by buttonclicked(), createnewdownloadwindow(), and pathselected().
GtkWidget* savetolabel |
Definition at line 162 of file downloadmanager.c.
Referenced by createnewdownloadwindow().
GtkWidget* setpathmenu |
Definition at line 94 of file downloadmanager.c.
Referenced by main(), and menuitemclick().
GtkWidget* setproxymenu |
Definition at line 90 of file downloadmanager.c.
Referenced by main(), and menuitemclick().
GtkWidget* submenuforedit |
Definition at line 96 of file downloadmanager.c.
Referenced by main().
GtkWidget* submenuforfile |
Definition at line 89 of file downloadmanager.c.
Referenced by main().
GtkWidget* submenuforhelp |
Definition at line 92 of file downloadmanager.c.
Referenced by main().
GtkWidget* submenuforview |
Definition at line 101 of file downloadmanager.c.
Referenced by main().
GtkWidget* submitdownload |
Definition at line 167 of file downloadmanager.c.
Referenced by buttonclicked(), and createnewdownloadwindow().
GtkWidget* submitproxy |
Definition at line 140 of file downloadmanager.c.
Referenced by buttonclicked(), and createproxywindow().
int t = 0 |
Definition at line 126 of file downloadmanager.c.
Referenced by main().
GtkWidget* tabdownloadbutton |
Definition at line 111 of file downloadmanager.c.
Referenced by buttonclicked(), and main().
GtkWidget* tabframe1 |
Definition at line 121 of file downloadmanager.c.
Referenced by main().
GtkWidget * tabframe2 |
Definition at line 121 of file downloadmanager.c.
Referenced by main().
GtkWidget * tabframe3 |
Definition at line 121 of file downloadmanager.c.
Referenced by main().
GtkWidget * tablabeldownload |
Definition at line 104 of file downloadmanager.c.
Referenced by main().
GtkWidget * tablabelport |
Definition at line 104 of file downloadmanager.c.
Referenced by main().
GtkWidget* tablabelproxy |
Definition at line 104 of file downloadmanager.c.
Referenced by main().
GtkWidget* tabnewdloadbutton |
Definition at line 113 of file downloadmanager.c.
Referenced by buttonclicked(), and main().
GtkWidget* tabportbutton |
Definition at line 110 of file downloadmanager.c.
Referenced by buttonclicked(), and main().
GtkWidget* tabproxybutton |
Definition at line 109 of file downloadmanager.c.
Referenced by buttonclicked(), and main().
GtkWidget* tabs |
Definition at line 102 of file downloadmanager.c.
Referenced by main().
GtkWidget* tabviewdloadbutton |
Definition at line 112 of file downloadmanager.c.
Referenced by buttonclicked(), and main().
GtkWidget* temp |
Definition at line 86 of file downloadmanager.c.
Referenced by pop().
char tempbreak[SIZE] |
Definition at line 63 of file downloadmanager.c.
Referenced by breakstring().
GtkWidget* tempbutton |
Definition at line 103 of file downloadmanager.c.
GtkWidget * tempbutton1 |
Definition at line 103 of file downloadmanager.c.
GtkWidget* templabel |
Definition at line 143 of file downloadmanager.c.
Referenced by createproxywindow().
GtkWidget * templabel1 |
Definition at line 143 of file downloadmanager.c.
Referenced by createproxywindow().
GtkWidget * templabel10 |
Definition at line 143 of file downloadmanager.c.
Referenced by createproxywindow().
GtkWidget * templabel11 |
Definition at line 143 of file downloadmanager.c.
Referenced by createproxywindow().
GtkWidget* templabel12 |
Definition at line 171 of file downloadmanager.c.
Referenced by createnewdownloadwindow().
GtkWidget * templabel13 |
Definition at line 171 of file downloadmanager.c.
Referenced by createnewdownloadwindow().
GtkWidget * templabel14 |
Definition at line 171 of file downloadmanager.c.
Referenced by createnewdownloadwindow().
GtkWidget * templabel15 |
Definition at line 171 of file downloadmanager.c.
Referenced by createnewdownloadwindow().
GtkWidget * templabel16 |
Definition at line 171 of file downloadmanager.c.
Referenced by createnewdownloadwindow().
GtkWidget * templabel17 |
Definition at line 171 of file downloadmanager.c.
Referenced by createnewdownloadwindow().
GtkWidget * templabel18 |
Definition at line 171 of file downloadmanager.c.
Referenced by createnewdownloadwindow().
GtkWidget * templabel2 |
Definition at line 143 of file downloadmanager.c.
Referenced by createproxywindow().
GtkWidget * templabel3 |
Definition at line 143 of file downloadmanager.c.
Referenced by createproxywindow().
GtkWidget * templabel4 |
Definition at line 143 of file downloadmanager.c.
Referenced by createproxywindow().
GtkWidget* templabel5 |
Definition at line 156 of file downloadmanager.c.
Referenced by createdefaultpathwindow().
GtkWidget * templabel6 |
Definition at line 156 of file downloadmanager.c.
Referenced by createdefaultpathwindow().
GtkWidget * templabel7 |
Definition at line 156 of file downloadmanager.c.
Referenced by createdefaultpathwindow().
GtkWidget * templabel8 |
Definition at line 156 of file downloadmanager.c.
Referenced by createdefaultpathwindow().
GtkWidget * templabel9 |
Definition at line 156 of file downloadmanager.c.
Referenced by createdefaultpathwindow().
GtkWidget* tempprogressbar[5] |
Definition at line 119 of file downloadmanager.c.
Referenced by main().
char tempvalue[50] |
Definition at line 56 of file downloadmanager.c.
Referenced by callback(), and return_data().
pthread_t threadid[SIZE] |
Definition at line 64 of file downloadmanager.c.
Referenced by buttonclicked().
GtkWidget* tmp[50] |
Definition at line 122 of file downloadmanager.c.
Referenced by main().
GtkWidget* tooltipfortab1 |
Definition at line 115 of file downloadmanager.c.
Referenced by main().
GtkWidget * tooltipfortab2 |
Definition at line 115 of file downloadmanager.c.
Referenced by main().
GtkWidget * tooltipfortab3 |
Definition at line 115 of file downloadmanager.c.
Referenced by main().
GtkWidget* top_Level_Main_Window |
Definition at line 82 of file downloadmanager.c.
Referenced by main().
int tp = 0 |
Definition at line 124 of file downloadmanager.c.
Referenced by main().
GtkWidget* tplabel[15] |
Definition at line 114 of file downloadmanager.c.
Referenced by main().
GtkWidget* treeview |
Definition at line 176 of file downloadmanager.c.
Referenced by createviewdownloadwindow().
GtkWidget* URLentry |
Definition at line 164 of file downloadmanager.c.
Referenced by buttonclicked(), and createnewdownloadwindow().
GtkWidget* URLlabel |
Definition at line 161 of file downloadmanager.c.
Referenced by createnewdownloadwindow().
GtkWidget* vboxfordownload |
Definition at line 169 of file downloadmanager.c.
Referenced by createnewdownloadwindow().
GtkWidget* vboxfordpath |
Definition at line 153 of file downloadmanager.c.
Referenced by createdefaultpathwindow().
GtkWidget* vboxforoptions |
Definition at line 134 of file downloadmanager.c.
Referenced by createproxywindow().
GtkWidget* vboxforpbar |
Definition at line 105 of file downloadmanager.c.
Referenced by main().
GtkWidget * vboxfortab1 |
Definition at line 105 of file downloadmanager.c.
Referenced by main().
GtkWidget * vboxfortab2 |
Definition at line 105 of file downloadmanager.c.
Referenced by main().
GtkWidget * vboxfortab3 |
Definition at line 105 of file downloadmanager.c.
Referenced by main().
GtkWidget* vdmainlabel |
Definition at line 175 of file downloadmanager.c.
GtkWidget* viewdownloadsmenu |
Definition at line 100 of file downloadmanager.c.
Referenced by main(), and menuitemclick().
GtkWidget* viewdownloadwindow |
Definition at line 178 of file downloadmanager.c.
Referenced by createviewdownloadwindow().
GtkWidget* viewmenu |
Definition at line 98 of file downloadmanager.c.
Referenced by main().