GContentType

GContentType

Synopsis




gboolean            g_content_type_equals               (const char *type1,
                                                         const char *type2);
gboolean            g_content_type_is_a                 (const char *type,
                                                         const char *supertype);
gboolean            g_content_type_is_unknown           (const char *type);
char*               g_content_type_get_description      (const char *type);
char*               g_content_type_get_mime_type        (const char *type);
GIcon*              g_content_type_get_icon             (const char *type);
gboolean            g_content_type_can_be_executable    (const char *type);
char*               g_content_type_guess                (const char *filename,
                                                         const guchar *data,
                                                         gsize data_size,
                                                         gboolean *result_uncertain);
GList*              g_content_types_get_registered      (void);

Description

Details

g_content_type_equals ()

gboolean            g_content_type_equals               (const char *type1,
                                                         const char *type2);

type1 :

type2 :

Returns :


g_content_type_is_a ()

gboolean            g_content_type_is_a                 (const char *type,
                                                         const char *supertype);

type :

supertype :

Returns :


g_content_type_is_unknown ()

gboolean            g_content_type_is_unknown           (const char *type);

type :

Returns :


g_content_type_get_description ()

char*               g_content_type_get_description      (const char *type);

type :

Returns :


g_content_type_get_mime_type ()

char*               g_content_type_get_mime_type        (const char *type);

type :

Returns :


g_content_type_get_icon ()

GIcon*              g_content_type_get_icon             (const char *type);

type :

Returns :

GIcon corresponding to the content type.

g_content_type_can_be_executable ()

gboolean            g_content_type_can_be_executable    (const char *type);

type :

Returns :

TRUE if the file type corresponds to something that can be executable, FALSE otherwise. Note that for instance things like textfiles can be executables (i.e. scripts)

g_content_type_guess ()

char*               g_content_type_guess                (const char *filename,
                                                         const guchar *data,
                                                         gsize data_size,
                                                         gboolean *result_uncertain);

filename :

data :

data_size :

result_uncertain :

Returns :


g_content_types_get_registered ()

GList*              g_content_types_get_registered      (void);

Returns :

GList containing all of the registered content types.