/* * 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 #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__