-
Notifications
You must be signed in to change notification settings - Fork 0
/
task_setting.h
executable file
·46 lines (37 loc) · 1.12 KB
/
task_setting.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
* task_setting.h
*
* Created on: 2017年12月25日
* Author: tom
*/
#ifndef DEBUG_TASK_SETTING_H_
#define DEBUG_TASK_SETTING_H_
#include <glib-object.h>
#include <gtk/gtk.h>
#include "MY_DECLARE.h"
G_BEGIN_DECLS
typedef enum{
TASK_SOURCE_URL,
TASK_SOURCE_FILE,
TASK_SOURCE_LINKER
}TASK_SOURCE;
typedef struct {
guint source;
gchar *xpath,*source_name,*fmt_filename,*regex_pattern,*regex_test_text,*fmt_output;
gboolean search_xpath,output_modify,output_file,terminal_print,title_insist,nonnull_break,link_wait,same_uri_skip;
}task_set;
#define MY_TYPE_TASK_SETTING my_task_setting_get_type()
MY_DECLARE_DERIVABLE_TYPE(MyTaskSetting,my_task_setting,MY,TASK_SETTING,GtkDialog);
typedef struct _MyTaskSettingClass{
GtkDialogClass parent_class;
GArray *(*test)(MyTaskSetting *setting,gchar *regex_pattren,gchar *output_fmt,gchar *eval_content,void *user_data);
};
typedef struct _MyTaskSetting{
GtkDialog parent_instance;
gpointer priv;
task_set set;
};
MyTaskSetting *my_task_setting_new(task_set *set);
void my_task_setting_get_set(MyTaskSetting *self ,task_set *set);
G_END_DECLS
#endif /* DEBUG_TASK_SETTING_H_ */