TnyFolderStats

TnyFolderStats — A stats object about a folder

Synopsis




                    TnyFolderStats;
TnyFolderStats*     tny_folder_stats_new                (TnyFolder *folder);
guint               tny_folder_stats_get_unread_count   (TnyFolderStats *self);
guint               tny_folder_stats_get_all_count      (TnyFolderStats *self);
gsize               tny_folder_stats_get_local_size     (TnyFolderStats *self);
void                tny_folder_stats_set_local_size     (TnyFolderStats *self,
                                                         gsize local_size);
TnyFolder*          tny_folder_stats_get_folder         (TnyFolderStats *self);

Object Hierarchy


  GObject
   +----TnyFolderStats

Description

A object with some statistical information about a TnyFolder

Details

TnyFolderStats

typedef struct _TnyFolderStats TnyFolderStats;


tny_folder_stats_new ()

TnyFolderStats*     tny_folder_stats_new                (TnyFolder *folder);

Creates a stats object for for folder

folder : a TnyFolder instance
Returns : a new TnyFolderStats instance

tny_folder_stats_get_unread_count ()

guint               tny_folder_stats_get_unread_count   (TnyFolderStats *self);

Get the amount of unread messages in self

self : a TnyFolderStats instance
Returns : the amount of unread messages

tny_folder_stats_get_all_count ()

guint               tny_folder_stats_get_all_count      (TnyFolderStats *self);

Get the amount of messages in self

self : a TnyFolderStats instance
Returns : the amount of messages

tny_folder_stats_get_local_size ()

gsize               tny_folder_stats_get_local_size     (TnyFolderStats *self);

Get the local disk space that self is consuming

self : a TnyFolderStats instance
Returns : The local size

tny_folder_stats_set_local_size ()

void                tny_folder_stats_set_local_size     (TnyFolderStats *self,
                                                         gsize local_size);

Set the local disk space that self is consuming (should probably only be used by the TnyFolder implementation internally: it'll define the value that tny_folder_stats_get_local_size will return).

self : a TnyFolderStats instance
local_size : the local size of the folder

tny_folder_stats_get_folder ()

TnyFolder*          tny_folder_stats_get_folder         (TnyFolderStats *self);

Get the folder of self. The return value of this method must be unreferenced after use

self : a TnyFolderStats instance
Returns : the TnyFolder instance related to this statsset