TnyMsgHeaderListModel

TnyMsgHeaderListModel — A GtkTreeModel suitable for storing TnyMsgHeaderIface instances

Synopsis




            TnyMsgHeaderListModel;
            TnyMsgHeaderListModelClass;
TnyMsgHeaderListModel* tny_msg_header_list_model_new
                                            (void);
void        tny_msg_header_list_model_set_folder
                                            (TnyMsgHeaderListModel *self,
                                             TnyMsgFolderIface *folder,
                                             gboolean refresh);

Object Hierarchy


  GObject
   +----TnyMsgHeaderListModel

Implemented Interfaces

TnyMsgHeaderListModel implements TnyListIface and GtkTreeModel.

Description

This GtkTreeModel implementation will attempt to aggressively uncache TnyMsgHeaderIface instances once their corresponding row in the GtkTreeView become invisible. This reduces memory usage.

Details

TnyMsgHeaderListModel

typedef struct _TnyMsgHeaderListModel TnyMsgHeaderListModel;


TnyMsgHeaderListModelClass

typedef struct {
	GObjectClass parent;
} TnyMsgHeaderListModelClass;


tny_msg_header_list_model_new ()

TnyMsgHeaderListModel* tny_msg_header_list_model_new
                                            (void);

Returns : a new TnyMsgHeaderListModel instance suitable for showing lots of TnyMsgHeaderIface instances

tny_msg_header_list_model_set_folder ()

void        tny_msg_header_list_model_set_folder
                                            (TnyMsgHeaderListModel *self,
                                             TnyMsgFolderIface *folder,
                                             gboolean refresh);

Set the folder where the TnyMsgHeaderIface instances are located

self : A TnyMsgHeaderListModel instance
folder : a TnyMsgFolderIface instance
refresh : refresh first

See Also

TnyMsgViewIface