summaryrefslogtreecommitdiff
path: root/src/wallpaper-ui-service-main.h
blob: c3e07ac7db16895f017b5a2bc43330408cc3a7eb (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
/*
 *  indicator
 *
 * Copyright (c) 2000 - 2015 Samsung Electronics Co., Ltd. All rights reserved.
 *
 * Contact: Sung park <sung1103.park@samsung.com>
 *
 * Licensed under the Apache License, Version 2.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.apache.org/licenses/LICENSE-2.0
 *
 * 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 __WALLPAPER_PREVIEW_H__
#define __WALLPAPER_PREVIEW_H__

#include "wallpaper-ui-service.h"

#include <app.h>
#include <Elementary.h>
#include <Ecore_X.h>
#include <Eina.h>
#include <Evas.h>
#if !DISABLE_LOGING_WALLPAPER
#include <samsung_log_manager.h>
#include <samsung_log_manager_uri.h>
#endif

#include "wallpaper-ui-service-debug.h"

typedef void *filter_handle;
typedef void *media_handle;

typedef struct {
	Evas_Object *content;

	Elm_Object_Item *item;
	bool bSelected;
	char *path;
	int index;
	void *data;
} Thumbnail;

typedef struct {
	Evas_Object *content;

	Elm_Object_Item *item;
	char *path;
	Evas_Object *check;
	Eina_Bool check_state;
	bool is_last;
} default_item_s;

#define GENGRID_ITEM_SIZE (126)
#define MAX_LENGTH_LINE 1600

#ifndef VCONFKEY_WALLPAPER_HOME_PREVIEW_WALLPAPER_IS_DEFAULT
#define VCONFKEY_WALLPAPER_HOME_PREVIEW_WALLPAPER_IS_DEFAULT "db/lockscreen/home_wallpaper_is_default"
#endif

#ifndef VCONFKEY_LOCKSCREEN_WALLPAPER_TYPE
#define VCONFKEY_LOCKSCREEN_WALLPAPER_TYPE "db/lockscreen/wallpaper_type"
#endif

#ifndef VCONFKEY_LOCKSCREEN_WALLPAPER_COUNT
#define VCONFKEY_LOCKSCREEN_WALLPAPER_COUNT "db/lockscreen/wallpaper_count"
#endif

#ifndef DEFAULT_INTEREST_PATH
#define DEFAULT_INTEREST_PATH "/opt/usr/apps/org.tizen.wallpaper-service/data/default_images/myinterest_default.png"
#endif

#ifndef WALLPAPER_SHARE_LOGGING_H_
#define WALLPAPER_SHARE_LOGGING_H_
void wallpaper_share_logging(char* uri, char* cAppid, char* cFeature, char* cExtra, char* cValue);
#endif /* SETTING_SHARE_LOGGING_H_ */

void wallpaper_destory(void *data);
static void wallpaper_back_key_cb(void *data, Evas_Object *obj, void *event_info);

#endif