~ubuntu-branches/debian/jessie/file-roller/jessie

« back to all changes in this revision

Viewing changes to src/main.h

  • Committer: Package Import Robot
  • Author(s): Michael Biebl, Josselin Mouette, Michael Biebl
  • Date: 2011-10-13 22:43:53 UTC
  • mfrom: (5.1.5 experimental)
  • Revision ID: package-import@ubuntu.com-20111013224353-7fub412oa8jwkcgt
Tags: 3.0.2-2
[ Josselin Mouette ]
* file-roller.mime: dropped. We don’t do necromancy anymore.
* Drop desktop-check-mime-types call too.

[ Michael Biebl ]
* Upload to unstable.
* debian/control.in:
  - Set pkg-gnome-maintainers@lists.alioth.debian.org as Maintainer.
* debian/watch:
  - Switch to .xz tarballs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2
 
 
3
 
/*
4
 
 *  File-Roller
5
 
 *
6
 
 *  Copyright (C) 2001, 2008 The Free Software Foundation, Inc.
7
 
 *
8
 
 *  This program is free software; you can redistribute it and/or modify
9
 
 *  it under the terms of the GNU General Public License as published by
10
 
 *  the Free Software Foundation; either version 2 of the License, or
11
 
 *  (at your option) any later version.
12
 
 *
13
 
 *  This program is distributed in the hope that it will be useful,
14
 
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
15
 
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
 
 *  GNU General Public License for more details.
17
 
 *
18
 
 *  You should have received a copy of the GNU General Public License
19
 
 *  along with this program; if not, write to the Free Software
20
 
 *  Foundation, Inc., 59 Temple Street #330, Boston, MA 02111-1307, USA.
21
 
 */
22
 
 
23
 
#ifndef MAIN_H
24
 
#define MAIN_H
25
 
 
26
 
 
27
 
#include <glib.h>
28
 
#include <glib/gi18n.h>
29
 
#include <gio/gio.h>
30
 
#include "preferences.h"
31
 
#include "fr-process.h"
32
 
#include "fr-window.h"
33
 
 
34
 
 
35
 
typedef struct {
36
 
        FrWindow  *window;
37
 
        FrProcess *process;
38
 
        char      *filename;
39
 
        char      *e_filename;
40
 
        char      *temp_dir;
41
 
} ViewerData;
42
 
 
43
 
typedef struct {
44
 
        FrWindow  *window;
45
 
        FrProcess *process;
46
 
        char      *command;
47
 
        GAppInfo  *app;
48
 
        GList     *file_list;
49
 
        char      *temp_dir;
50
 
} CommandData;
51
 
 
52
 
 
53
 
void  viewer_done      (ViewerData  *vdata);
54
 
void  command_done     (CommandData *cdata);
55
 
 
56
 
 
57
 
extern GList       *WindowList;
58
 
extern GList       *CommandList;
59
 
extern gint         ForceDirectoryCreation;
60
 
extern GHashTable  *ProgramsCache;
61
 
extern GPtrArray   *Registered_Commands;
62
 
 
63
 
extern FrMimeTypeDescription mime_type_desc[];
64
 
extern FrExtensionType file_ext_type[];
65
 
extern int single_file_save_type[]; /* File types that can be saved when
66
 
                                     * a single file is selected.
67
 
                                     * Includes single file compressors
68
 
                                     * such as gzip, compress, etc. */
69
 
extern int save_type[];             /* File types that can be saved. */
70
 
extern int open_type[];             /* File types that can be opened. */
71
 
extern int create_type[];           /* File types that can be created. */
72
 
 
73
 
GType        get_command_type_from_mime_type         (const char    *mime_type,
74
 
                                                      FrCommandCaps  requested_capabilities);
75
 
GType        get_preferred_command_for_mime_type     (const char    *mime_type,
76
 
                                                      FrCommandCaps  requested_capabilities);
77
 
void         update_registered_commands_capabilities (void);
78
 
const char * get_mime_type_from_extension            (const char    *ext);
79
 
const char * get_archive_filename_extension          (const char    *uri);
80
 
int          get_mime_type_index                     (const char    *mime_type);
81
 
void         sort_mime_types_by_extension            (int           *a);
82
 
void         sort_mime_types_by_description          (int           *a);
83
 
                                              
84
 
#endif /* MAIN_H */