summaryrefslogtreecommitdiff
path: root/composer/include/email-composer-attachment.h
blob: 1de00053a2627896aa0429a7be1d802fc91c19c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
 * Copyright 2012  Samsung Electronics Co., Ltd
 *
 * Licensed under the Flora License, Version 1.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.tizenopensource.org/license
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef __DEF_email_composer_attachment_H_
#define __DEF_email_composer_attachment_H_

int _composer_get_attachments_total_size(EmailComposerUGD *ugd);
int _composer_get_files_size(Eina_List *files_list);
void _composer_attachment_create_list(EmailComposerUGD *ugd, Eina_List *list, Eina_Bool is_inline);
void _composer_attachment_reset(EmailComposerUGD *ugd);
int _composer_get_inline_images_size(EmailComposerUGD *ugd);
void _composer_attachment_create_list_box(EmailComposerUGD *ugd, email_attachment_data_t *attachment_data);
void _composer_attachment_add_thumbnail(EmailComposerUGD *ugd, Evas_Object *parent, char *filePath);
Evas_Object *_composer_attachment_add_delete_icon(EmailComposerUGD *ugd, Evas_Object *parent);
void _composer_attachment_add_filename(EmailComposerUGD *ugd, email_attachment_data_t * attachment_data, Evas_Object *parent);
void _composer_attachment_set_attach_data(EmailComposerUGD *ugd, Evas_Object *parent, email_attachment_data_t *attachment_data);
void _composer_attachment_create_contracted_box(EmailComposerUGD *ugd);
Evas_Object *_composer_attachment_make_thumbnail(EmailComposerUGD *ugd, char *filePath, Evas_Object *parent);
bool _composer_attachment_duplicate_check(EmailComposerUGD *ugd, char *pszAttachedFilePath);
void _composer_attachment_expand_items(EmailComposerUGD *ugd);
void _composer_attachment_contract_items(EmailComposerUGD *ugd);
int _composer_attachment_make_ethumb(const char *source, char *target);
void _composer_ethumb_generate_cb(void *data, Ethumb *e, Eina_Bool success);

#endif				/* __DEF_email_composer_attachment_H__ */