| Reference Manual of the tinymail framework | ||||
|---|---|---|---|---|
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);
TnyFolderStats* tny_folder_stats_new (TnyFolder *folder);
Creates a stats object for for folder
folder : |
a TnyFolder instance |
| Returns : | a new TnyFolderStats instance |
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 |
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 |
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 |
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 |
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 |