summaryrefslogtreecommitdiff
path: root/main/src/view/ivug-detail-info.h
blob: 6b7b9cb52688633502fbfc8d90c5fafb33606c6f (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
/*
 * 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 __IVUG_DETAIL_COMMON_H__
#define __IVUG_DETAIL_COMMON_H__

#include <unicode/udat.h>

#include "ivug-common.h"

typedef enum {
	IVUG_DETAIL_ERROR_TYPE = -1,
	IVUG_DETAIL_IMAGE_TYPE,
	IVUG_DETAIL_VIDEO_TYPE
} ivug_detail_file_t;

typedef struct {
/** Common info*/
	time_t		date;		// Seconds since 1970-1-1
	size_t		size;

	ivug_detail_file_t file_type;

	char *filesize;
	char *filepath;
	char *filename;
	char *file_ext;
	char *file_location;
	char *contains;
	char *create_date;


/**resolution */
    char *resolution;

/**Gps info */
	char *latitude;
	char *longitude;

}ivug_file_info_t;


#ifdef __cplusplus
extern "C" {
#endif

// TODO : Remove dependacy ivug-detail-view and ivug-detail-info.

void ivug_details_info_set_file_information(ivug_file_info_t * const pFileInfo, const char *path);

void ivug_details_info_set_gps_info(ivug_file_info_t * const pFileInfo, const char *path);

void ivug_details_info_set_resolution(ivug_file_info_t * const pFileInfo, const char *path, int stype);

void ivug_details_info_set_location(ivug_file_info_t * const pFileInfo, const char *path);

void ivug_details_info_set_filename(ivug_file_info_t * const pFileInfo, const char *path);


#ifdef __cplusplus
}
#endif


#endif	// __IVUG_DETAIL_COMMON_H__