2008-12-09 19:46:00 +00:00
|
|
|
/* vim: set sw=3 ts=3 sts=3 expandtab: */
|
2008-04-01 21:30:41 +00:00
|
|
|
#ifndef ECDB_H
|
|
|
|
#define ECDB_H
|
|
|
|
|
|
|
|
#include "config.h"
|
2008-08-04 23:28:43 +00:00
|
|
|
#include <Evas.h>
|
|
|
|
#include <Edje.h>
|
2008-04-01 21:30:41 +00:00
|
|
|
#include <Ecore.h>
|
|
|
|
#include <Ecore_Data.h>
|
|
|
|
#include <Ecore_File.h>
|
2008-08-04 22:18:34 +00:00
|
|
|
#include <Ecore_Evas.h>
|
2009-02-20 04:23:07 +00:00
|
|
|
#include <Ecore_Config.h>
|
2008-12-09 01:12:16 +00:00
|
|
|
#include <Ecore_X.h>
|
|
|
|
#include <Eina.h>
|
2008-04-01 21:30:41 +00:00
|
|
|
#include <Efreet_Mime.h>
|
2008-08-04 22:18:34 +00:00
|
|
|
#include <Efreet.h>
|
2008-08-06 02:21:20 +00:00
|
|
|
#include <Ewl.h>
|
2009-04-18 23:18:17 +00:00
|
|
|
#include <E_DBus.h>
|
|
|
|
#include <E_Hal.h>
|
2008-08-04 22:18:34 +00:00
|
|
|
#include <libburn/libburn.h>
|
|
|
|
#include <libisofs/libisofs.h>
|
|
|
|
|
2008-04-01 21:30:41 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <libgen.h>
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <time.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
#include <limits.h>
|
2009-01-08 02:33:00 +00:00
|
|
|
//#define PATH_MAX 4095
|
2008-04-01 21:30:41 +00:00
|
|
|
#include <pthread.h>
|
|
|
|
|
2009-02-05 04:11:22 +00:00
|
|
|
typedef struct _Ecdb_Page Ecdb_Page;
|
|
|
|
struct _Ecdb_Page
|
|
|
|
{
|
|
|
|
Evas_Object *gui;
|
|
|
|
Evas_Object *welcome;
|
|
|
|
Evas_Object *filelist;
|
|
|
|
Evas_Object *data;
|
|
|
|
Evas_Object *audio;
|
|
|
|
Evas_Object *erase;
|
|
|
|
Evas_Object *image;
|
|
|
|
};
|
|
|
|
|
2008-04-01 21:30:41 +00:00
|
|
|
/* ECDB Global Variables */
|
|
|
|
typedef struct _Ecdb_Main Ecdb_Main;
|
|
|
|
struct _Ecdb_Main
|
|
|
|
{
|
2009-02-20 04:23:07 +00:00
|
|
|
char *theme_path;
|
|
|
|
double scalef;
|
|
|
|
char *engine;
|
|
|
|
int fps;
|
2008-12-09 05:47:59 +00:00
|
|
|
Ecore_Evas *main_win_ee;
|
2009-02-20 04:23:07 +00:00
|
|
|
Ecore_X_Window xwin;
|
2008-12-18 18:54:50 +00:00
|
|
|
Eina_List *drives;
|
2009-02-05 04:11:22 +00:00
|
|
|
|
|
|
|
/* Drag and drop stuff here */
|
2008-12-23 22:42:15 +00:00
|
|
|
Eina_List *evas_dnd_candidates;
|
|
|
|
Eina_List *ewl_dnd_candidates;
|
|
|
|
Evas_Object *evas_drop_object;
|
|
|
|
Ewl_Widget *ewl_drop_object;
|
2009-02-05 04:11:22 +00:00
|
|
|
|
|
|
|
/* Change this to a list at some point, but for now save some time
|
|
|
|
* and leave it singular
|
|
|
|
*/
|
|
|
|
Ecdb_Page *page;
|
2009-04-18 23:18:17 +00:00
|
|
|
|
|
|
|
/* System dbus connection */
|
|
|
|
E_DBus_Connection *conn;
|
|
|
|
|
|
|
|
/* E_DBus signal handlers */
|
|
|
|
E_DBus_Signal_Handler *dev_added;
|
|
|
|
E_DBus_Signal_Handler *dev_removed;
|
2009-04-19 01:54:14 +00:00
|
|
|
|
|
|
|
/* Used to help with initialization */
|
|
|
|
unsigned int init_count;
|
2008-04-01 21:30:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
extern Ecdb_Main *em;
|
|
|
|
|
2008-04-07 01:04:15 +00:00
|
|
|
/* Callbacks */
|
|
|
|
extern int ECDB_DRIVE_ACTION_FINISHED;
|
|
|
|
extern int ECDB_DRIVE_ACTION_BEGUN;
|
|
|
|
extern int ECDB_DRIVE_ACTION_UPDATE;
|
2009-02-26 03:30:21 +00:00
|
|
|
extern unsigned int ECDB_FILELIST_SIZE_CHANGED;
|
2008-04-07 01:04:15 +00:00
|
|
|
|
2008-05-15 00:14:33 +00:00
|
|
|
#include "ecdb_common.h"
|
2009-01-30 03:59:48 +00:00
|
|
|
#include "ecdb_projects.h"
|
2008-04-01 21:30:41 +00:00
|
|
|
#include "ecdb_drives.h"
|
|
|
|
#include "ecdb_image.h"
|
|
|
|
#include "ecdb_burn.h"
|
2008-11-03 14:56:30 +00:00
|
|
|
#include "ecdb_erase.h"
|
2008-04-01 21:30:41 +00:00
|
|
|
#include "ecdb_misc.h"
|
2008-05-23 03:33:04 +00:00
|
|
|
#include "ecdb_audio.h"
|
2008-06-06 03:02:27 +00:00
|
|
|
#include "ecdb_gui.h"
|
2008-12-18 22:16:55 +00:00
|
|
|
#include "ecdb_widgets.h"
|
2008-12-21 01:48:31 +00:00
|
|
|
#include "ecdb_erase_gui.h"
|
2008-12-21 03:52:57 +00:00
|
|
|
#include "ecdb_burn_image_gui.h"
|
2008-12-22 01:12:16 +00:00
|
|
|
#include "ecdb_burn_data_gui.h"
|
|
|
|
#include "ecdb_filelist_custom.h"
|
2009-02-19 02:02:43 +00:00
|
|
|
#include "ecdb_about.h"
|
2009-02-20 04:23:07 +00:00
|
|
|
#include "ecdb_config_dialog.h"
|
2009-04-18 23:18:17 +00:00
|
|
|
#include "ecdb_hal.h"
|
2008-04-01 21:30:41 +00:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|