summaryrefslogtreecommitdiff
path: root/main/src/control/ivug-parameter.h
blob: 7a973360da46d4a5d246fcfc65f3037896ca86d8 (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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
/*
 * 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__

#include <stdbool.h>
#include <app.h>
#include "ivug-datatypes.h"

typedef enum {
	IVUG_MODE_INVAILD = 0x00,
	IVUG_MODE_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_SLIDESHOW,			// Slideshow
} ivug_mode;

//set as ug
typedef enum {
	IVUG_SET_AS_UG_TYPE_INVALID = 0x00,
	IVUG_SET_AS_UG_TYPE_WALLPAPER,
	IVUG_SET_AS_UG_TYPE_CALLER_ID,
	IVUG_SET_AS_UG_TYPE_VIDEO_CALL_ID,
	IVUG_SET_AS_UG_TYPE_CROP,			// For OSP
	IVUG_SET_AS_UG_TYPE_WALLPAPER_ONLY,
	IVUG_SET_AS_UG_TYPE_MAX,
} ivug_setas_type;

typedef struct {
	ivug_mode mode;
	ivug_setas_type setas_type;		// Only needed when mode is IVUG_MODE_SETAS

	bool bStandalone;	// launched by appsvc

	ivug_view_by view_by;

	char* filepath;
	UUID album_id;	//cluster id of media service

	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 */
	bool footsteps;
	double max_longitude;
	double min_longitude;
	double max_latitude;
	double min_latitude;

	/* for set as view crop box*/
	unsigned int width;
	unsigned int height;
	bool bRatioFix;

	int start_index;

} ivug_parameter;


#ifdef __cplusplus
extern "C" {
#endif

ivug_parameter*
ivug_param_create_from_bundle(service_h service);

void
ivug_param_delete(ivug_parameter* data);

#ifdef __cplusplus
}
#endif



#endif // __IVUG_PARAMETER_H__