Top | ![]() |
![]() |
![]() |
![]() |
struct | CamelVeeSubfolderData |
struct | CamelVeeMessageInfoData |
struct | CamelVeeDataCache |
void (*CamelForeachInfoData) (CamelVeeMessageInfoData *mi_data
,,
CamelFolder *subfolder);
gpointer user_data
A callback prototype for camel_vee_data_cache_foreach_message_info_data()
CamelVeeSubfolderData *
camel_vee_subfolder_data_new (CamelFolder *folder
);
Creates a new CamelVeeSubfolderData object for the given folder
.
The folder
is referenced for later use.
a new CamelVeeSubfolderData. Use g_object_unref()
[transfer full]
Since: 3.6
CamelFolder * camel_vee_subfolder_data_get_folder (CamelVeeSubfolderData *data
);
Since: 3.6
constgchar * camel_vee_subfolder_data_get_folder_id (CamelVeeSubfolderData *data
);
Since: 3.6
CamelVeeMessageInfoData * camel_vee_message_info_data_new (CamelVeeSubfolderData *subfolder_data
,const
);gchar *orig_message_uid
a new CamelVeeMessageInfoData which references
message info with UID orig_message_uid
froma folder managed by subfolder_data
.
Unref the returned object with g_object_unref()
[transfer full]
Since: 3.6
CamelVeeSubfolderData *
camel_vee_message_info_data_get_subfolder_data
(CamelVeeMessageInfoData *data
);
Since: 3.6
constgchar * camel_vee_message_info_data_get_orig_message_uid (CamelVeeMessageInfoData *data
);
Since: 3.6
constgchar * camel_vee_message_info_data_get_vee_message_uid (CamelVeeMessageInfoData *data
);
Since: 3.6
CamelVeeDataCache *
camel_vee_data_cache_new (void
);
a new CamelVeeDataCache; unref it
with g_object_unref()
[transfer full]
Since: 3.6
void camel_vee_data_cache_add_subfolder (CamelVeeDataCache *data_cache
,);
CamelFolder *subfolder
Adds the subfolder
to the data_cache
to be tracked by it. The subfolder
is referenced for later use. The function does nothing when the subfolder
is already in the data_cache
. The subfolders can be removed with
camel_vee_data_cache_remove_subfolder()
.
Since: 3.6
void camel_vee_data_cache_remove_subfolder (CamelVeeDataCache *data_cache
,);
CamelFolder *subfolder
Removes given subfolder
from the data_cache
, which had been
previously added with camel_vee_data_cache_add_subfolder()
.
The function does nothing, when the subfolder
is not part
of the data_cache
.
Since: 3.6
CamelVeeSubfolderData * camel_vee_data_cache_get_subfolder_data (CamelVeeDataCache *data_cache
,);
CamelFolder *folder
Returns a CamelVeeSubfolderData for the given folder
.
a referenced CamelVeeSubfolderData; unref it
with g_object_unref()
[transfer full]
Since: 3.6
gboolean camel_vee_data_cache_contains_message_info_data (CamelVeeDataCache *data_cache
,,
CamelFolder *folderconst
);gchar *orig_message_uid
Returns whether data_cache contains given orig_message_uid
for the given folder
.
Unlike camel_vee_data_cache_get_message_info_data()
, this only
returns FALSE
camel_vee_data_cache_get_message_info_data()
auto-adds it to data_cache.
data_cache |
||
folder |
a |
|
orig_message_uid |
a message UID from the |
Since: 3.6
CamelVeeMessageInfoData * camel_vee_data_cache_get_message_info_data (CamelVeeDataCache *data_cache
,,
CamelFolder *folderconst
);gchar *orig_message_uid
Returns a referenced CamelVeeMessageInfoData referencing the given folder
and orig_message_uid
. If it's not part of the data_cache
, then it is
created and auto-added. Use camel_vee_data_cache_contains_message_info_data()
when you only want to check the existence, without adding it to the data_cache
.
data_cache |
||
folder |
a |
|
orig_message_uid |
a message UID from the |
a referenced CamelVeeMessageInfoData; unref it
with g_object_unref()
[transfer full]
Since: 3.6
CamelVeeMessageInfoData * camel_vee_data_cache_get_message_info_data_by_vuid (CamelVeeDataCache *data_cache
,const
);gchar *vee_message_uid
a referenced CamelVeeMessageInfoData,
which corresponds to the given vee_message_uid
, or NULL
g_object_unref()
[transfer full][nullable]
Since: 3.6
void camel_vee_data_cache_foreach_message_info_data (CamelVeeDataCache *data_cache
,,
CamelFolder *fromfolderCamelForeachInfoData func
,);
gpointer user_data
Calls the func
for each message info data from the given fromfolder
data_cache |
||
fromfolder |
a |
|
func |
a CamelForeachInfoData function to call. |
[scope call][closure user_data] |
user_data |
user data to pass to the |
Since: 3.6
void camel_vee_data_cache_remove_message_info_data (CamelVeeDataCache *data_cache
,CamelVeeMessageInfoData *mi_data
);
Removes given mi_data
from the data_cache
.
Since: 3.6
struct CamelVeeSubfolderData { };
Contains only private data that should be read and manipulated using the functions below.
Since: 3.6
struct CamelVeeMessageInfoData { };
Contains only private data that should be read and manipulated using the functions below.
Since: 3.6
struct CamelVeeDataCache { };
Contains only private data that should be read and manipulated using the functions below.
Since: 3.6