File: guiwrap.h

package info (click to toggle)
linneighborhood 0.6.4-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 2,164 kB
  • ctags: 2,195
  • sloc: ansic: 20,100; sh: 2,984; yacc: 318; makefile: 303
file content (80 lines) | stat: -rw-r--r-- 2,699 bytes parent folder | download | duplicates (3)
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
/* LinNeighborhood
 * Copyright (c) 1999-2002 Richard Stemmer and Hans Schmid
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 */

#ifndef _guiwrap_h_
#define _guiwrap_h_

#ifdef __cplusplus
extern "C" {
#endif


#include <gtk/gtk.h>
#include "define.h"

/* ------------------------------------------------------------------------- */

typedef enum _cursor_type {
        cursor_normal,
        cursor_watch
} cursor_type;

/* ------------------------------------------------------------------------- */

/* timer interval function prototype */
typedef void (*gui_timer_function) (gpointer data);

/* add periodical timer */
extern void gui_timer_start (guint32 interval, gui_timer_function callback,
                                      gpointer data);
/* remove periodical timer */
extern void gui_timer_stop (void);
/* mount dialog */
extern void gui_mount_dialog (char *resource, char *ip, char *group, unsigned char show_gui);
extern void gui_umount_dialog (char *mountpoint);
extern void gui_mount_dialog_init(void); 
extern void gui_smbumount_done(char *mount_point,char *errstr,char smbmountState,int tag);

extern unsigned char gui_log_window_active (void);
extern void gui_log_window_toggle (void);
extern void gui_log_window_open (void);
extern void gui_log_window_insert_string (char *str, unsigned char add_linefeed);

extern void gui_set_cursor (cursor_type cursor);

extern void gui_message_box (char *title, char *message);
extern void gui_message_box2 (char *message);

extern void gui_remove_entire_tree (void);

extern void gui_share_window_clean (void);
extern void gui_set_files (char *group, char *machine, char *share, char *path,
                            GSList *files);

/* ------------------------------------------------------------------------- */
extern void gui_set_locale (void);
extern void gui_init (int argc, char *argv[]);
extern void gui_start (void);

/* ------------------------------------------------------------------------- */

#ifdef __cplusplus
}
#endif

#endif   /* _guiwrap_h_ */