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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
|
/*
* 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_PARAMETER_H__
#define __IVUG_PARAMETER_H__
#ifdef __cplusplus
extern "C" {
#endif
#include <stdbool.h>
#include <bundle.h>
typedef enum {
IVUG_MODE_INVAILD = 0x00,
IVUG_MODE_NORMAL, // normal
IVUG_MODE_SINGLE, // just show one slide
IVUG_MODE_DISPLAY, // from "take a photo" in messenger
IVUG_MODE_FILE, // file viewer(can flick)
IVUG_MODE_CAMERA, // camera(can flick)
IVUG_MODE_SETAS, // SetAs in setting menu.
} ivug_mode;
typedef enum {
IVUG_VIEW_BY_INVAILD = 0x00,
IVUG_VIEW_BY_FILE,
IVUG_VIEW_BY_ALL,
IVUG_VIEW_BY_FOLDER,
IVUG_VIEW_BY_PLACES,
} ivug_view_by;
//set as ug
typedef enum {
IVUG_SET_AS_UG_TYPE_INVALID = 0x00,
IVUG_SET_AS_UG_TYPE_WALLPAPER,
IVUG_SET_AS_UG_TYPE_MAX,
} ivug_setas_type;
typedef enum {
IVUG_MEDIA_TYPE_ALL = 0x00, //default value
IVUG_MEDIA_TYPE_IMAGE,
IVUG_MEDIA_TYPE_VIDEO,
IVUG_MEDIA_TYPE_MAX,
} ivug_media_type;
typedef enum {
IVUG_MEDIA_SORT_NONE = 0x00, /**< No sort */
IVUG_MEDIA_ASC_BY_NAME, /**< Ascending sort as file name */
IVUG_MEDIA_DESC_BY_NAME, /**< Descending sort as file name */
IVUG_MEDIA_ASC_BY_DATE, /**< Ascending sort as created date */
IVUG_MEDIA_DESC_BY_DATE, /**< Descending sort as created date */
} ivug_sort_type;
typedef struct {
ivug_mode mode;
char* filepath;
UUID album_id; //cluster id of media service
ivug_view_by view_by;
ivug_setas_type setas_type;
ivug_media_type media_type;
ivug_sort_type sort_type; // TODO : extract from here. sort type can be used in case of default
/* for places view */
double max_longitude;
double min_longitude;
double max_latitude;
double min_latitude;
int start_index;
} ivug_parameter;
ivug_parameter*
ivug_param_create_from_bundle(bundle* b);
void
ivug_param_delete(ivug_parameter* data);
#ifdef __cplusplus
}
#endif
#endif // __IVUG_PARAMETER_H__
|