mirror of https://github.com/Gnucash/gnucash
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
83 lines
2.4 KiB
83 lines
2.4 KiB
/* File import from libegg to gnumeric by import-egg. Do not edit. */
|
|
|
|
/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
|
|
#ifndef __EGG_RECENT_MODEL_H__
|
|
#define __EGG_RECENT_MODEL_H__
|
|
|
|
#include "egg-recent-item.h"
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
#define EGG_TYPE_RECENT_MODEL (egg_recent_model_get_type ())
|
|
#define EGG_RECENT_MODEL(obj) G_TYPE_CHECK_INSTANCE_CAST (obj, EGG_TYPE_RECENT_MODEL, EggRecentModel)
|
|
#define EGG_RECENT_MODEL_CLASS(klass) G_TYPE_CHECK_CLASS_CAST (klass, EGG_TYPE_RECENT_MODEL, EggRecentModelClass)
|
|
#define EGG_IS_RECENT_MODEL(obj) G_TYPE_CHECK_INSTANCE_TYPE (obj, egg_recent_model_get_type ())
|
|
|
|
typedef struct _EggRecentModel EggRecentModel;
|
|
typedef struct _EggRecentModelPrivate EggRecentModelPrivate;
|
|
typedef struct _EggRecentModelClass EggRecentModelClass;
|
|
|
|
struct _EggRecentModel {
|
|
GObject parent_instance;
|
|
|
|
EggRecentModelPrivate *priv;
|
|
};
|
|
|
|
struct _EggRecentModelClass {
|
|
GObjectClass parent_class;
|
|
|
|
void (*changed) (EggRecentModel *model, GList *list);
|
|
};
|
|
|
|
typedef enum {
|
|
EGG_RECENT_MODEL_SORT_MRU,
|
|
EGG_RECENT_MODEL_SORT_LRU,
|
|
EGG_RECENT_MODEL_SORT_NONE
|
|
} EggRecentModelSort;
|
|
|
|
|
|
/* Standard group names */
|
|
#define EGG_RECENT_GROUP_LAUNCHERS "Launchers"
|
|
|
|
|
|
GType egg_recent_model_get_type (void);
|
|
|
|
/* constructors */
|
|
EggRecentModel * egg_recent_model_new (EggRecentModelSort sort);
|
|
|
|
/* public methods */
|
|
void egg_recent_model_set_filter_mime_types (EggRecentModel *model,
|
|
...);
|
|
|
|
void egg_recent_model_set_filter_groups (EggRecentModel *model, ...);
|
|
|
|
void egg_recent_model_set_filter_uri_schemes (EggRecentModel *model,
|
|
...);
|
|
|
|
void egg_recent_model_set_sort (EggRecentModel *model,
|
|
EggRecentModelSort sort);
|
|
|
|
gboolean egg_recent_model_add_full (EggRecentModel *model,
|
|
EggRecentItem *item);
|
|
|
|
gboolean egg_recent_model_add (EggRecentModel *model,
|
|
const gchar *uri);
|
|
|
|
gboolean egg_recent_model_delete (EggRecentModel *model,
|
|
const gchar *uri);
|
|
|
|
void egg_recent_model_clear (EggRecentModel *model);
|
|
|
|
GList * egg_recent_model_get_list (EggRecentModel *model);
|
|
|
|
void egg_recent_model_changed (EggRecentModel *model);
|
|
|
|
void egg_recent_model_set_limit (EggRecentModel *model, int limit);
|
|
int egg_recent_model_get_limit (EggRecentModel *model);
|
|
|
|
void egg_recent_model_remove_expired (EggRecentModel *model);
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* __EGG_RECENT_MODEL_H__ */
|