Add DRAFT stubs for Vehicle plugin
[profile/ivi/wrt-plugins-tizen.git] / src / standards / Tizen / Mediacontent / JSMediaLyrics.h
1 /*
2 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License. 
15 */
16
17
18  
19 #ifndef _JS_TIZEN_MEDIA_LYRICS_H_
20 #define _JS_TIZEN_MEDIA_LYRICS_H_
21
22 #include <JavaScriptCore/JavaScript.h>
23 #include <CommonsJavaScript/PrivateObject.h>
24 #include <API/Mediacontent/MediacontentLyrics.h>
25
26
27 using namespace TizenApis::Api::Mediacontent;
28 using namespace WrtDeviceApis::Commons;
29 using namespace WrtDeviceApis::CommonsJavaScript;
30
31 namespace TizenApis {
32 namespace Tizen1_0 {
33 namespace Mediacontent {
34
35 typedef PrivateObject<MediacontentLyricsPtr, NoOwnership> LyricsPrivObject;
36
37 class JSMediaLyrics
38 {
39         public:
40
41         static const JSClassDefinition* getClassInfo();
42
43         static const JSClassRef getClassRef();
44
45         static MediacontentLyricsPtr getLyricsObject(JSObjectRef object);
46
47         static JSObjectRef createJSObject(JSContextRef context, 
48                 const TizenApis::Api::Mediacontent::MediacontentLyricsPtr mediacontentLyrics);
49
50
51         private:
52         /**
53         * This member variable contains the values which has to be passed when 
54         * the this class is embedded into JS Engine.
55         */
56         static JSClassDefinition m_classInfo;
57
58         /**
59         * This structure describes a statically declared function property.
60         */
61         static JSStaticFunction m_function[];
62
63         /**
64         * This member variable contains the initialization values for the 
65         * properties of this class. The values are given according to the
66         * data structure JSPropertySpec.
67         */
68         static JSStaticValue m_property[];
69
70         static JSClassRef m_jsClassRef;
71
72         /**
73         * The callback invoked when an object is first created.
74         */
75         static void initialize(JSContextRef context, JSObjectRef object);
76
77         /**
78         * The callback invoked when an object is finalized.
79         */
80         static void finalize(JSObjectRef object);
81
82
83
84         /**
85         * Getters and setters for properties
86         */
87
88         static JSValueRef       getPropertyLyricsType(
89                                                 JSContextRef context,
90                                                 JSObjectRef object,
91                                                 JSStringRef propertyName,
92                                                 JSValueRef* exception);
93
94         static JSValueRef       getPropertyTimeStamps(
95                                                 JSContextRef context,
96                                                 JSObjectRef object,
97                                                 JSStringRef propertyName,
98                                                 JSValueRef* exception);
99
100         static JSValueRef       getPropertyTexts(
101                                                 JSContextRef context,
102                                                 JSObjectRef object,
103                                                 JSStringRef propertyName,
104                                                 JSValueRef* exception); 
105
106
107  
108 };
109
110 }
111 }
112 }
113
114 #endif /* _JS_TIZEN_MEDIA_LYRICS_H_ */