summaryrefslogtreecommitdiff
path: root/vp-main/include/serviceParser/vp-service-parser.h
blob: b2291debef402f807680b26f6a1016583fc176c9 (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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
/*
* Copyright (c) 2000-2015 Samsung Electronics Co., Ltd All Rights Reserved
*
* 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 __VP_SERVICE_PARSER__
#define	 __VP_SERVICE_PARSER__

#include <glib.h>
#include <Eina.h>
#include <app.h>
#include <Ecore_X.h>

typedef enum
{
	VP_LAUNCH_TYPE_NONE			= 0,
	VP_LAUNCH_TYPE_STORE,
	VP_LAUNCH_TYPE_LIST,
	VP_LAUNCH_TYPE_SIMPLE,
	VP_LAUNCH_TYPE_EMAIL,
	VP_LAUNCH_TYPE_MMS,
	VP_LAUNCH_TYPE_MYFILE,
	VP_LAUNCH_TYPE_GALLERY,
	VP_LAUNCH_TYPE_IMAGE_VIEWER,
	VP_LAUNCH_TYPE_IMAGE_VIEWER_TRIM,
	VP_LAUNCH_TYPE_MULTI_PATH,
	VP_LAUNCH_TYPE_MAX,
}VpLaunchType;


typedef enum
{
	VP_VIDEO_SORT_TYPE_BY_NONE					= 0,

	VP_VIDEO_SORT_TYPE_BY_NAME_DESC,
	VP_VIDEO_SORT_TYPE_BY_NAME_ASC,
	VP_VIDEO_SORT_TYPE_BY_DATE_DESC,
	VP_VIDEO_SORT_TYPE_BY_DATE_ASC,

	VP_VIDEO_SORT_TYPE_BY_MAX,
}VpVideoSortType;


typedef enum
{
	VP_VIDEO_PLAY_LIST_TYPE_NONE				= 0,

	VP_VIDEO_PLAY_LIST_TYPE_FOLDER,
	VP_VIDEO_PLAY_LIST_TYPE_ALL_FOLDER_GALLERY,
	VP_VIDEO_PLAY_LIST_TYPE_TAG_GALLERY,
	VP_VIDEO_PLAY_LIST_TYPE_FAVORITE,
	VP_VIDEO_PLAY_LIST_TYPE_MAX,
}VpVideoPlayListType;


typedef struct
{
	VpLaunchType		eLaunchType;		// launch type

	VpVideoSortType		eSortType;			// only use gallery, image viewer and my files(?)
	VpVideoPlayListType	eListType;			// only use gallery, image viewer and my files(?)
	Ecore_X_Window		nParentXID;

	Eina_Bool		bLaunchMultiWindow;	// launch multi winodw
	Eina_Bool		bStreaming;			// launch streaming
	Eina_Bool		bStoreDownload;
	double			dStoreDL_FileSize;
	int				nStorePlayedTime;
	Eina_Bool		bStopAfterRepeat;

	char			*pMediaUri;			// play file path or url
	char			*szMediaTitle;			// media file title
	char			*szDeviceID;
	char			*szDMRID;
	char			*szCookie;
	char			*szProxy;

	char			**szMultiPath;
	int			nMultiPath;

	char			**szMultiTitle;
	int			nMultiTitle;

	char			**szIsSameAP;		// Samsung link : remote / local content,
	int			nSameAP;

	char			**szMultiSubTitle;
	int			nMultiSubTitle;

	char			**szMultiPosition;
	int			nMultiPosition;

	char			**szMultiDuration;
	int			nMultiDuration;

	char		*pStoreOrderId;
	char		*pStoreServerId;
	char		*pStoreAppId;
	char		*pStoreMvId;
}VpServiceData;


#ifdef _cplusplus
extern "C"
{
#endif


Eina_Bool	VpServiceParserGetServiceData( app_control_h pAppSvcHandle, VpServiceData *pReceiveData );
void		VpServiceParserDestroyServiceData( VpServiceData *pServiceData );


#ifdef _cplusplus
}
#endif


#endif //__VP_SERVICE_PARSER__