summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGun Kim <gune.kim@samsung.com>2013-09-30 13:12:09 +0900
committerGun Kim <gune.kim@samsung.com>2013-09-30 13:12:09 +0900
commitb06f75b85e6e052965758f49564a2072eae4288d (patch)
tree641e611d9a7ca678564b82ce19b1dd39646df8a7
parent10904bb49e2eac469dcbcafcebe1881ebc008ac1 (diff)
downloadnative-template-tizen.tar.gz
native-template-tizen.tar.bz2
native-template-tizen.zip
[Title] added native templatetizen
[Type] [Module] [Priority] [Jira#] [Redmine#] [Problem] [Cause] [Solution] [TestCase] Change-Id: I320f1bb071d1ecce2c475f79a30e71a29163eff9
-rw-r--r--Template/Tizen Native/Empty Application/empty/description.xml11
-rw-r--r--Template/Tizen Native/Empty Application/empty/project/inc/App.h56
-rw-r--r--Template/Tizen Native/Empty Application/empty/project/inc/AppFrame.h27
-rwxr-xr-xTemplate/Tizen Native/Empty Application/empty/project/manifest.xml24
-rwxr-xr-xTemplate/Tizen Native/Empty Application/empty/project/shared/res/screen-density-xhigh/mainmenu.pngbin0 -> 57662 bytes
-rw-r--r--Template/Tizen Native/Empty Application/empty/project/src/App.cpp108
-rw-r--r--Template/Tizen Native/Empty Application/empty/project/src/AppEntry.cpp37
-rw-r--r--Template/Tizen Native/Empty Application/empty/project/src/AppFrame.cpp47
-rw-r--r--Template/Tizen Native/Empty Application/empty/sample.xml57
-rw-r--r--Template/Tizen Native/Empty Application/empty/screenshot.pngbin0 -> 2952 bytes
-rw-r--r--Template/Tizen Native/Form-based Application/formapp/description.xml11
-rw-r--r--Template/Tizen Native/Form-based Application/formapp/project/inc/App.h52
-rw-r--r--Template/Tizen Native/Form-based Application/formapp/project/inc/AppForm.h26
-rw-r--r--Template/Tizen Native/Form-based Application/formapp/project/inc/AppFrame.h18
-rw-r--r--Template/Tizen Native/Form-based Application/formapp/project/inc/AppResourceId.h6
-rw-r--r--Template/Tizen Native/Form-based Application/formapp/project/inc/tizenx.h13
-rw-r--r--Template/Tizen Native/Form-based Application/formapp/project/manifest.xml23
-rw-r--r--Template/Tizen Native/Form-based Application/formapp/project/res/screen-size-normal/IDL_FORM.xml22
-rwxr-xr-xTemplate/Tizen Native/Form-based Application/formapp/project/shared/res/screen-density-xhigh/mainmenu.pngbin0 -> 57662 bytes
-rw-r--r--Template/Tizen Native/Form-based Application/formapp/project/src/App.cpp107
-rw-r--r--Template/Tizen Native/Form-based Application/formapp/project/src/AppEntry.cpp37
-rw-r--r--Template/Tizen Native/Form-based Application/formapp/project/src/AppForm.cpp77
-rw-r--r--Template/Tizen Native/Form-based Application/formapp/project/src/AppFrame.cpp50
-rw-r--r--Template/Tizen Native/Form-based Application/formapp/project/src/AppResourceId.cpp5
-rw-r--r--Template/Tizen Native/Form-based Application/formapp/sample.xml68
-rw-r--r--Template/Tizen Native/Form-based Application/formapp/screenshot.pngbin0 -> 3139 bytes
-rw-r--r--Template/Tizen Native/Form-based Application/scenebasedformapp/description.xml11
-rw-r--r--Template/Tizen Native/Form-based Application/scenebasedformapp/project/inc/App.h52
-rw-r--r--Template/Tizen Native/Form-based Application/scenebasedformapp/project/inc/AppFormFactory.h16
-rw-r--r--Template/Tizen Native/Form-based Application/scenebasedformapp/project/inc/AppFrame.h18
-rw-r--r--Template/Tizen Native/Form-based Application/scenebasedformapp/project/inc/AppMainForm.h31
-rw-r--r--Template/Tizen Native/Form-based Application/scenebasedformapp/project/inc/AppPanelFactory.h16
-rw-r--r--Template/Tizen Native/Form-based Application/scenebasedformapp/project/inc/AppResourceId.h8
-rw-r--r--Template/Tizen Native/Form-based Application/scenebasedformapp/project/inc/tizenx.h13
-rw-r--r--Template/Tizen Native/Form-based Application/scenebasedformapp/project/manifest.xml23
-rw-r--r--Template/Tizen Native/Form-based Application/scenebasedformapp/project/res/screen-size-normal/IDL_FORM.xml23
-rw-r--r--Template/Tizen Native/Form-based Application/scenebasedformapp/project/res/screen-size-normal/workflow.xml9
-rwxr-xr-xTemplate/Tizen Native/Form-based Application/scenebasedformapp/project/shared/res/screen-density-xhigh/mainmenu.pngbin0 -> 57662 bytes
-rw-r--r--Template/Tizen Native/Form-based Application/scenebasedformapp/project/src/App.cpp106
-rw-r--r--Template/Tizen Native/Form-based Application/scenebasedformapp/project/src/AppEntry.cpp37
-rw-r--r--Template/Tizen Native/Form-based Application/scenebasedformapp/project/src/AppFormFactory.cpp35
-rw-r--r--Template/Tizen Native/Form-based Application/scenebasedformapp/project/src/AppFrame.cpp44
-rw-r--r--Template/Tizen Native/Form-based Application/scenebasedformapp/project/src/AppMainForm.cpp98
-rw-r--r--Template/Tizen Native/Form-based Application/scenebasedformapp/project/src/AppPanelFactory.cpp23
-rw-r--r--Template/Tizen Native/Form-based Application/scenebasedformapp/project/src/AppResourceId.cpp5
-rw-r--r--Template/Tizen Native/Form-based Application/scenebasedformapp/sample.xml98
-rw-r--r--Template/Tizen Native/Form-based Application/scenebasedformapp/screenshot.pngbin0 -> 3139 bytes
-rw-r--r--Template/Tizen Native/IME Application/imeapp/description.xml11
-rw-r--r--Template/Tizen Native/IME Application/imeapp/project/inc/App.h98
-rw-r--r--Template/Tizen Native/IME Application/imeapp/project/inc/AppForm.h62
-rw-r--r--Template/Tizen Native/IME Application/imeapp/project/inc/AppFrame.h24
-rw-r--r--Template/Tizen Native/IME Application/imeapp/project/inc/tizenx.h13
-rw-r--r--Template/Tizen Native/IME Application/imeapp/project/manifest.xml37
-rw-r--r--Template/Tizen Native/IME Application/imeapp/project/res/screen-density-xhigh/icon_clear.pngbin0 -> 4184 bytes
-rw-r--r--Template/Tizen Native/IME Application/imeapp/project/res/screen-density-xhigh/icon_setting.pngbin0 -> 5981 bytes
-rwxr-xr-xTemplate/Tizen Native/IME Application/imeapp/project/setting/setting.1.0.0.xml18
-rwxr-xr-xTemplate/Tizen Native/IME Application/imeapp/project/shared/res/screen-density-xhigh/mainmenu.pngbin0 -> 57662 bytes
-rw-r--r--Template/Tizen Native/IME Application/imeapp/project/src/App.cpp230
-rw-r--r--Template/Tizen Native/IME Application/imeapp/project/src/AppEntry.cpp36
-rw-r--r--Template/Tizen Native/IME Application/imeapp/project/src/AppForm.cpp363
-rw-r--r--Template/Tizen Native/IME Application/imeapp/project/src/AppFrame.cpp60
-rw-r--r--Template/Tizen Native/IME Application/imeapp/sample.xml71
-rw-r--r--Template/Tizen Native/IME Application/imeapp/screenshot.pngbin0 -> 5407 bytes
-rwxr-xr-xTemplate/Tizen Native/Library/npplugin/description.xml22
-rw-r--r--Template/Tizen Native/Library/npplugin/project/LICENSE470
-rwxr-xr-xTemplate/Tizen Native/Library/npplugin/project/inc/external/npapi.h1006
-rwxr-xr-xTemplate/Tizen Native/Library/npplugin/project/inc/external/npfunctions.h223
-rwxr-xr-xTemplate/Tizen Native/Library/npplugin/project/inc/external/npruntime.h393
-rwxr-xr-xTemplate/Tizen Native/Library/npplugin/project/inc/external/nptypes.h121
-rwxr-xr-xTemplate/Tizen Native/Library/npplugin/project/inc/npapi.h26
-rwxr-xr-xTemplate/Tizen Native/Library/npplugin/project/src/npapi.cpp105
-rwxr-xr-xTemplate/Tizen Native/Library/npplugin/sample.xml50
-rwxr-xr-xTemplate/Tizen Native/Library/npplugin/screenshot.pngbin0 -> 16034 bytes
-rwxr-xr-xTemplate/Tizen Native/Library/sharedlibrary/description.xml25
-rwxr-xr-xTemplate/Tizen Native/Library/sharedlibrary/project/inc/App.h29
-rw-r--r--Template/Tizen Native/Library/sharedlibrary/project/src/App.cpp19
-rw-r--r--Template/Tizen Native/Library/sharedlibrary/sample.xml39
-rwxr-xr-xTemplate/Tizen Native/Library/sharedlibrary/screenshot.pngbin0 -> 16034 bytes
-rwxr-xr-xTemplate/Tizen Native/Library/staticlibrary/description.xml25
-rwxr-xr-xTemplate/Tizen Native/Library/staticlibrary/project/inc/App.h24
-rw-r--r--Template/Tizen Native/Library/staticlibrary/project/src/App.cpp11
-rw-r--r--Template/Tizen Native/Library/staticlibrary/sample.xml36
-rwxr-xr-xTemplate/Tizen Native/Library/staticlibrary/screenshot.pngbin0 -> 16034 bytes
-rwxr-xr-xTemplate/Tizen Native/OpenGL Application/glplayerformapp/description.xml15
-rw-r--r--Template/Tizen Native/OpenGL Application/glplayerformapp/project/inc/AppResourceId.h5
-rwxr-xr-xTemplate/Tizen Native/OpenGL Application/glplayerformapp/project/inc/GLPlayerTemplate.h67
-rwxr-xr-xTemplate/Tizen Native/OpenGL Application/glplayerformapp/project/inc/GLPlayerTemplateForm.h25
-rwxr-xr-xTemplate/Tizen Native/OpenGL Application/glplayerformapp/project/inc/GLPlayerTemplateFrame.h17
-rwxr-xr-xTemplate/Tizen Native/OpenGL Application/glplayerformapp/project/inc/GlRendererTemplate.h33
-rw-r--r--Template/Tizen Native/OpenGL Application/glplayerformapp/project/inc/tizenx.h15
-rwxr-xr-xTemplate/Tizen Native/OpenGL Application/glplayerformapp/project/manifest.xml23
-rwxr-xr-xTemplate/Tizen Native/OpenGL Application/glplayerformapp/project/res/screen-size-normal/IDL_FORM.xml26
-rwxr-xr-xTemplate/Tizen Native/OpenGL Application/glplayerformapp/project/shared/res/screen-density-xhigh/mainmenu.pngbin0 -> 57662 bytes
-rw-r--r--Template/Tizen Native/OpenGL Application/glplayerformapp/project/src/AppResourceId.cpp3
-rwxr-xr-xTemplate/Tizen Native/OpenGL Application/glplayerformapp/project/src/GLPlayerTemplate.cpp166
-rw-r--r--Template/Tizen Native/OpenGL Application/glplayerformapp/project/src/GLPlayerTemplateEntry.cpp37
-rwxr-xr-xTemplate/Tizen Native/OpenGL Application/glplayerformapp/project/src/GLPlayerTemplateForm.cpp79
-rwxr-xr-xTemplate/Tizen Native/OpenGL Application/glplayerformapp/project/src/GLPlayerTemplateFrame.cpp51
-rw-r--r--Template/Tizen Native/OpenGL Application/glplayerformapp/project/src/GlRendererTemplate.cpp195
-rwxr-xr-xTemplate/Tizen Native/OpenGL Application/glplayerformapp/sample.xml88
-rw-r--r--Template/Tizen Native/OpenGL Application/glplayerformapp/screenshot.pngbin0 -> 4385 bytes
-rwxr-xr-xTemplate/Tizen Native/OpenGL Application/glplayerframeapp/description.xml16
-rw-r--r--Template/Tizen Native/OpenGL Application/glplayerframeapp/project/inc/AppResourceId.h5
-rwxr-xr-xTemplate/Tizen Native/OpenGL Application/glplayerframeapp/project/inc/GLPlayerTemplate.h69
-rwxr-xr-xTemplate/Tizen Native/OpenGL Application/glplayerframeapp/project/inc/GLPlayerTemplateFrame.h17
-rwxr-xr-xTemplate/Tizen Native/OpenGL Application/glplayerframeapp/project/inc/GlRendererTemplate.h33
-rw-r--r--Template/Tizen Native/OpenGL Application/glplayerframeapp/project/inc/tizenx.h15
-rwxr-xr-xTemplate/Tizen Native/OpenGL Application/glplayerframeapp/project/manifest.xml23
-rwxr-xr-xTemplate/Tizen Native/OpenGL Application/glplayerframeapp/project/res/screen-size-normal/IDL_FORM.xml26
-rwxr-xr-xTemplate/Tizen Native/OpenGL Application/glplayerframeapp/project/shared/res/screen-density-xhigh/mainmenu.pngbin0 -> 57662 bytes
-rw-r--r--Template/Tizen Native/OpenGL Application/glplayerframeapp/project/src/AppResourceId.cpp3
-rwxr-xr-xTemplate/Tizen Native/OpenGL Application/glplayerframeapp/project/src/GLPlayerTemplate.cpp166
-rw-r--r--Template/Tizen Native/OpenGL Application/glplayerframeapp/project/src/GLPlayerTemplateEntry.cpp37
-rwxr-xr-xTemplate/Tizen Native/OpenGL Application/glplayerframeapp/project/src/GLPlayerTemplateFrame.cpp37
-rw-r--r--Template/Tizen Native/OpenGL Application/glplayerframeapp/project/src/GlRendererTemplate.cpp195
-rwxr-xr-xTemplate/Tizen Native/OpenGL Application/glplayerframeapp/sample.xml78
-rw-r--r--Template/Tizen Native/OpenGL Application/glplayerframeapp/screenshot.pngbin0 -> 4385 bytes
-rw-r--r--Template/Tizen Native/Service Application/dynamicboxapp/description.xml11
-rwxr-xr-xTemplate/Tizen Native/Service Application/dynamicboxapp/project/inc/App.h39
-rw-r--r--Template/Tizen Native/Service Application/dynamicboxapp/project/inc/AppWidgetFrame.h22
-rwxr-xr-xTemplate/Tizen Native/Service Application/dynamicboxapp/project/inc/AppWidgetPopupProvider.h22
-rw-r--r--Template/Tizen Native/Service Application/dynamicboxapp/project/inc/AppWidgetPopupProviderFactory.h17
-rwxr-xr-xTemplate/Tizen Native/Service Application/dynamicboxapp/project/inc/AppWidgetProvider.h25
-rw-r--r--Template/Tizen Native/Service Application/dynamicboxapp/project/inc/AppWidgetProviderFactory.h17
-rw-r--r--Template/Tizen Native/Service Application/dynamicboxapp/project/inc/tizenx.h14
-rwxr-xr-xTemplate/Tizen Native/Service Application/dynamicboxapp/project/manifest.xml34
-rw-r--r--Template/Tizen Native/Service Application/dynamicboxapp/project/shared/res/screen-density-xhigh/1x1.pngbin0 -> 440 bytes
-rw-r--r--Template/Tizen Native/Service Application/dynamicboxapp/project/shared/res/screen-density-xhigh/2x1.pngbin0 -> 556 bytes
-rw-r--r--Template/Tizen Native/Service Application/dynamicboxapp/project/shared/res/screen-density-xhigh/2x2.pngbin0 -> 965 bytes
-rwxr-xr-xTemplate/Tizen Native/Service Application/dynamicboxapp/project/shared/res/screen-density-xhigh/mainmenu.pngbin0 -> 57662 bytes
-rwxr-xr-xTemplate/Tizen Native/Service Application/dynamicboxapp/project/src/App.cpp78
-rwxr-xr-xTemplate/Tizen Native/Service Application/dynamicboxapp/project/src/AppEntry.cpp35
-rwxr-xr-xTemplate/Tizen Native/Service Application/dynamicboxapp/project/src/AppWidgetFrame.cpp69
-rwxr-xr-xTemplate/Tizen Native/Service Application/dynamicboxapp/project/src/AppWidgetPopupProvider.cpp66
-rw-r--r--Template/Tizen Native/Service Application/dynamicboxapp/project/src/AppWidgetPopupProviderFactory.cpp24
-rwxr-xr-xTemplate/Tizen Native/Service Application/dynamicboxapp/project/src/AppWidgetProvider.cpp74
-rw-r--r--Template/Tizen Native/Service Application/dynamicboxapp/project/src/AppWidgetProviderFactory.cpp25
-rw-r--r--Template/Tizen Native/Service Application/dynamicboxapp/sample.xml99
-rw-r--r--Template/Tizen Native/Service Application/dynamicboxapp/screenshot.pngbin0 -> 16034 bytes
-rw-r--r--Template/Tizen Native/Service Application/serviceapp/description.xml11
-rw-r--r--Template/Tizen Native/Service Application/serviceapp/project/inc/App.h37
-rw-r--r--Template/Tizen Native/Service Application/serviceapp/project/inc/tizenx.h13
-rwxr-xr-xTemplate/Tizen Native/Service Application/serviceapp/project/manifest.xml20
-rwxr-xr-xTemplate/Tizen Native/Service Application/serviceapp/project/shared/res/screen-density-xhigh/mainmenu.pngbin0 -> 57662 bytes
-rw-r--r--Template/Tizen Native/Service Application/serviceapp/project/src/App.cpp69
-rw-r--r--Template/Tizen Native/Service Application/serviceapp/project/src/Entry.cpp43
-rw-r--r--Template/Tizen Native/Service Application/serviceapp/sample.xml48
-rwxr-xr-xTemplate/Tizen Native/Service Application/serviceapp/screenshot.pngbin0 -> 16034 bytes
-rw-r--r--Template/Tizen Native/Tab-based Application/scenebasedtabapp/description.xml11
-rw-r--r--Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/inc/App.h52
-rw-r--r--Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/inc/AppFormFactory.h16
-rw-r--r--Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/inc/AppFrame.h18
-rw-r--r--Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/inc/AppMainForm.h28
-rw-r--r--Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/inc/AppPanelFactory.h17
-rw-r--r--Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/inc/AppResourceId.h14
-rw-r--r--Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/inc/AppTab1.h24
-rw-r--r--Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/inc/AppTab2.h25
-rw-r--r--Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/inc/AppTab3.h25
-rw-r--r--Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/inc/tizenx.h13
-rw-r--r--Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/manifest.xml23
-rw-r--r--Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/res/screen-size-normal/IDL_FORM.xml22
-rw-r--r--Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/res/screen-size-normal/IDL_PANEL1.xml19
-rw-r--r--Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/res/screen-size-normal/IDL_PANEL2.xml19
-rw-r--r--Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/res/screen-size-normal/IDL_PANEL3.xml19
-rw-r--r--Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/res/screen-size-normal/workflow.xml17
-rwxr-xr-xTemplate/Tizen Native/Tab-based Application/scenebasedtabapp/project/shared/res/screen-density-xhigh/mainmenu.pngbin0 -> 57662 bytes
-rw-r--r--Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/src/App.cpp106
-rw-r--r--Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/src/AppEntry.cpp37
-rw-r--r--Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/src/AppFormFactory.cpp34
-rw-r--r--Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/src/AppFrame.cpp44
-rw-r--r--Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/src/AppMainForm.cpp83
-rw-r--r--Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/src/AppPanelFactory.cpp51
-rw-r--r--Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/src/AppResourceId.cpp11
-rw-r--r--Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/src/AppTab1.cpp83
-rw-r--r--Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/src/AppTab2.cpp83
-rw-r--r--Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/src/AppTab3.cpp83
-rw-r--r--Template/Tizen Native/Tab-based Application/scenebasedtabapp/sample.xml128
-rw-r--r--Template/Tizen Native/Tab-based Application/scenebasedtabapp/screenshot.pngbin0 -> 3208 bytes
-rw-r--r--Template/Tizen Native/Tab-based Application/tabapp/description.xml11
-rw-r--r--Template/Tizen Native/Tab-based Application/tabapp/project/inc/App.h52
-rw-r--r--Template/Tizen Native/Tab-based Application/tabapp/project/inc/AppForm.h29
-rw-r--r--Template/Tizen Native/Tab-based Application/tabapp/project/inc/AppFrame.h18
-rw-r--r--Template/Tizen Native/Tab-based Application/tabapp/project/inc/AppResourceId.h8
-rw-r--r--Template/Tizen Native/Tab-based Application/tabapp/project/inc/tizenx.h13
-rwxr-xr-xTemplate/Tizen Native/Tab-based Application/tabapp/project/manifest.xml22
-rw-r--r--Template/Tizen Native/Tab-based Application/tabapp/project/res/screen-size-normal/IDL_FORM.xml52
-rwxr-xr-xTemplate/Tizen Native/Tab-based Application/tabapp/project/shared/res/screen-density-xhigh/mainmenu.pngbin0 -> 57662 bytes
-rw-r--r--Template/Tizen Native/Tab-based Application/tabapp/project/src/App.cpp107
-rw-r--r--Template/Tizen Native/Tab-based Application/tabapp/project/src/AppEntry.cpp37
-rw-r--r--Template/Tizen Native/Tab-based Application/tabapp/project/src/AppForm.cpp102
-rw-r--r--Template/Tizen Native/Tab-based Application/tabapp/project/src/AppFrame.cpp50
-rw-r--r--Template/Tizen Native/Tab-based Application/tabapp/project/src/AppResourceId.cpp6
-rw-r--r--Template/Tizen Native/Tab-based Application/tabapp/sample.xml68
-rw-r--r--Template/Tizen Native/Tab-based Application/tabapp/screenshot.pngbin0 -> 3208 bytes
-rw-r--r--Template/Tizen Native/Theme Application/home/description.xml11
-rwxr-xr-xTemplate/Tizen Native/Theme Application/home/project/inc/AppResourceId.h6
-rwxr-xr-xTemplate/Tizen Native/Theme Application/home/project/inc/Home.h51
-rwxr-xr-xTemplate/Tizen Native/Theme Application/home/project/inc/HomeFrame.h17
-rwxr-xr-xTemplate/Tizen Native/Theme Application/home/project/inc/MainForm.h20
-rw-r--r--Template/Tizen Native/Theme Application/home/project/inc/tizenx.h13
-rwxr-xr-xTemplate/Tizen Native/Theme Application/home/project/manifest.xml25
-rwxr-xr-xTemplate/Tizen Native/Theme Application/home/project/res/screen-size-normal/IDL_FORM.xml18
-rwxr-xr-xTemplate/Tizen Native/Theme Application/home/project/shared/res/screen-density-xhigh/mainmenu.pngbin0 -> 57662 bytes
-rwxr-xr-xTemplate/Tizen Native/Theme Application/home/project/src/AppResourceId.cpp3
-rwxr-xr-xTemplate/Tizen Native/Theme Application/home/project/src/Home.cpp114
-rwxr-xr-xTemplate/Tizen Native/Theme Application/home/project/src/HomeEntry.cpp37
-rwxr-xr-xTemplate/Tizen Native/Theme Application/home/project/src/HomeFrame.cpp49
-rwxr-xr-xTemplate/Tizen Native/Theme Application/home/project/src/MainForm.cpp44
-rw-r--r--Template/Tizen Native/Theme Application/home/sample.xml68
-rw-r--r--Template/Tizen Native/Theme Application/home/screenshot.pngbin0 -> 4058 bytes
-rw-r--r--Template/Tizen Native/Theme Application/lock/description.xml11
-rwxr-xr-xTemplate/Tizen Native/Theme Application/lock/project/inc/AppResourceId.h7
-rwxr-xr-xTemplate/Tizen Native/Theme Application/lock/project/inc/Lock.h51
-rwxr-xr-xTemplate/Tizen Native/Theme Application/lock/project/inc/LockFrame.h17
-rwxr-xr-xTemplate/Tizen Native/Theme Application/lock/project/inc/MainForm.h25
-rw-r--r--Template/Tizen Native/Theme Application/lock/project/inc/tizenx.h13
-rwxr-xr-xTemplate/Tizen Native/Theme Application/lock/project/manifest.xml25
-rwxr-xr-xTemplate/Tizen Native/Theme Application/lock/project/res/screen-size-normal/IDL_FORM.xml23
-rwxr-xr-xTemplate/Tizen Native/Theme Application/lock/project/shared/res/screen-density-xhigh/mainmenu.pngbin0 -> 57662 bytes
-rwxr-xr-xTemplate/Tizen Native/Theme Application/lock/project/src/AppResourceId.cpp4
-rwxr-xr-xTemplate/Tizen Native/Theme Application/lock/project/src/Lock.cpp112
-rwxr-xr-xTemplate/Tizen Native/Theme Application/lock/project/src/LockEntry.cpp37
-rwxr-xr-xTemplate/Tizen Native/Theme Application/lock/project/src/LockFrame.cpp48
-rwxr-xr-xTemplate/Tizen Native/Theme Application/lock/project/src/MainForm.cpp59
-rw-r--r--Template/Tizen Native/Theme Application/lock/sample.xml68
-rw-r--r--Template/Tizen Native/Theme Application/lock/screenshot.pngbin0 -> 5223 bytes
226 files changed, 10328 insertions, 0 deletions
diff --git a/Template/Tizen Native/Empty Application/empty/description.xml b/Template/Tizen Native/Empty Application/empty/description.xml
new file mode 100644
index 0000000..5bf2e7b
--- /dev/null
+++ b/Template/Tizen Native/Empty Application/empty/description.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8"?>
+<?xml-stylesheet type="text/xsl" href="../../../../description.xsl"?>
+
+<Overview version="0.17.1">
+ <SampleName>Empty Project</SampleName>
+ <SampleVersion>1.0</SampleVersion>
+ <Preview>screenshot.png</Preview>
+ <Description>
+ This is empty project.
+ </Description>
+</Overview>
diff --git a/Template/Tizen Native/Empty Application/empty/project/inc/App.h b/Template/Tizen Native/Empty Application/empty/project/inc/App.h
new file mode 100644
index 0000000..f724bd8
--- /dev/null
+++ b/Template/Tizen Native/Empty Application/empty/project/inc/App.h
@@ -0,0 +1,56 @@
+#ifndef _$(baseNameUpper)_APP_H_
+#define _$(baseNameUpper)_APP_H_
+
+#include <FApp.h>
+#include <FBase.h>
+#include <FSystem.h>
+#include <FUi.h>
+
+
+
+// The $(baseName)App class must inherit from the UiApp class,
+// which provides the basic features necessary to define a UI application.
+
+class $(baseName)App
+ : public Tizen::App::UiApp
+ , public Tizen::System::IScreenEventListener
+{
+public:
+ // The platform calls this method to create the application instance.
+ static Tizen::App::UiApp* CreateInstance(void);
+ $(baseName)App(void);
+ virtual ~$(baseName)App(void);
+
+private:
+ // Called when the UI application is initializing.
+ virtual bool OnAppInitializing(Tizen::App::AppRegistry& appRegistry);
+
+ // Called when the UI application initialization is finished.
+ virtual bool OnAppInitialized(void);
+
+ // Called when the END key is pressed to terminate the UI application (if the device has the END key).
+ virtual bool OnAppWillTerminate(void);
+
+ // Called when the UI application is terminating.
+ virtual bool OnAppTerminating(Tizen::App::AppRegistry& appRegistry, bool forcedTermination = false);
+
+ // Called when the UI application's frame moves to the foreground.
+ virtual void OnForeground(void);
+
+ // Called when the UI application's frame is moved from the foreground to the background.
+ virtual void OnBackground(void);
+
+ // Called when system memory is no longer sufficient to run the UI application. Clean up unnecessary resources to release memory, or terminate the application.
+ virtual void OnLowMemory(void);
+
+ // Called when the battery level changes.
+ virtual void OnBatteryLevelChanged(Tizen::System::BatteryLevel batteryLevel);
+
+ // Called when the screen switches on.
+ virtual void OnScreenOn(void);
+
+ // Called when the screen switches off.
+ virtual void OnScreenOff(void);
+};
+
+#endif // _$(baseNameUpper)_APP_H_
diff --git a/Template/Tizen Native/Empty Application/empty/project/inc/AppFrame.h b/Template/Tizen Native/Empty Application/empty/project/inc/AppFrame.h
new file mode 100644
index 0000000..399b350
--- /dev/null
+++ b/Template/Tizen Native/Empty Application/empty/project/inc/AppFrame.h
@@ -0,0 +1,27 @@
+#ifndef _$(baseNameUpper)_FRAME_H_
+#define _$(baseNameUpper)_FRAME_H_
+
+#include <FBase.h>
+#include <FUi.h>
+#include <FApp.h>
+
+class $(baseName)Frame
+ : public Tizen::Ui::Controls::Frame
+ , public Tizen::Ui::IPropagatedKeyEventListener
+{
+public:
+ $(baseName)Frame(void);
+ virtual ~$(baseName)Frame(void);
+
+private:
+ virtual result OnInitializing(void);
+ virtual result OnTerminating(void);
+ // key events for back-key
+ virtual bool OnKeyPressed(Tizen::Ui::Control& source, const Tizen::Ui::KeyEventInfo& keyEventInfo) { return false; };
+ virtual bool OnKeyReleased(Tizen::Ui::Control& source, const Tizen::Ui::KeyEventInfo& keyEventInfo);
+ virtual bool OnPreviewKeyPressed(Tizen::Ui::Control& source, const Tizen::Ui::KeyEventInfo& keyEventInfo) { return false; };
+ virtual bool OnPreviewKeyReleased(Tizen::Ui::Control& source, const Tizen::Ui::KeyEventInfo& keyEventInfo) { return false; };
+ virtual bool TranslateKeyEventInfo(Tizen::Ui::Control& source, Tizen::Ui::KeyEventInfo& keyEventInfo) { return false; };
+};
+
+#endif //_$(baseNameUpper)_FRAME_H_
diff --git a/Template/Tizen Native/Empty Application/empty/project/manifest.xml b/Template/Tizen Native/Empty Application/empty/project/manifest.xml
new file mode 100755
index 0000000..0d593ec
--- /dev/null
+++ b/Template/Tizen Native/Empty Application/empty/project/manifest.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Manifest xmlns="http://schemas.tizen.org/2012/12/manifest">
+ <Id>$(manifestAppId)</Id>
+ <Version>1.0.0</Version>
+ <Type>C++App</Type>
+ <Requirements>
+ <Feature Name="http://tizen.org/feature/platform.native.api.version">2.2</Feature>
+ </Requirements>
+ <Apps>
+ <ApiVersion>2.2</ApiVersion>
+ <Privileges></Privileges>
+ <UiApp Name="$(projectName)" Main="True" MenuIconVisible="True">
+ <UiScalability CoordinateSystem="Logical" BaseScreenSize="Normal" LogicalCoordinate="720"></UiScalability>
+ <UiTheme SystemTheme="White"></UiTheme>
+ <DisplayNames>
+ <DisplayName Locale="eng-GB">$(projectName)</DisplayName>
+ </DisplayNames>
+ <Icons>
+ <Icon Section="MainMenu" >mainmenu.png</Icon>
+ </Icons>
+
+ </UiApp>
+ </Apps>
+</Manifest>
diff --git a/Template/Tizen Native/Empty Application/empty/project/shared/res/screen-density-xhigh/mainmenu.png b/Template/Tizen Native/Empty Application/empty/project/shared/res/screen-density-xhigh/mainmenu.png
new file mode 100755
index 0000000..9765b1b
--- /dev/null
+++ b/Template/Tizen Native/Empty Application/empty/project/shared/res/screen-density-xhigh/mainmenu.png
Binary files differ
diff --git a/Template/Tizen Native/Empty Application/empty/project/src/App.cpp b/Template/Tizen Native/Empty Application/empty/project/src/App.cpp
new file mode 100644
index 0000000..0e0c1e3
--- /dev/null
+++ b/Template/Tizen Native/Empty Application/empty/project/src/App.cpp
@@ -0,0 +1,108 @@
+#include <new>
+#include "$(baseName)App.h"
+#include "$(baseName)Frame.h"
+
+using namespace Tizen::App;
+using namespace Tizen::System;
+
+$(baseName)App::$(baseName)App(void)
+{
+}
+
+$(baseName)App::~$(baseName)App(void)
+{
+}
+
+UiApp*
+$(baseName)App::CreateInstance(void)
+{
+ // Create the application instance through the constructor.
+ return new (std::nothrow) $(baseName)App();
+}
+
+bool
+$(baseName)App::OnAppInitializing(AppRegistry& appRegistry)
+{
+ // TODO: Initialize application-specific data.
+ // The permanent data and context of the application can be obtained from the application registry (appRegistry).
+ //
+ // If this method is successful, return true; otherwise, return false and the application is terminated.
+
+
+ // Uncomment the following statement to listen to the screen on and off events:
+ // PowerManager::SetScreenEventListener(*this);
+
+
+ // Create the application frame.
+ $(baseName)Frame* p$(baseName)Frame = new (std::nothrow) $(baseName)Frame;
+ TryReturn(p$(baseName)Frame != null, false, "The memory is insufficient.");
+ p$(baseName)Frame->Construct();
+ p$(baseName)Frame->SetName(L"$(baseName)");
+ AddFrame(*p$(baseName)Frame);
+
+ // TODO: Add your application initialization code here.
+ return true;
+}
+
+bool
+$(baseName)App::OnAppInitialized(void)
+{
+ return true;
+}
+
+bool
+$(baseName)App::OnAppWillTerminate(void)
+{
+ // TODO: Deallocate or release resources in devices that have the END key.
+ return true;
+}
+
+bool
+$(baseName)App::OnAppTerminating(AppRegistry& appRegistry, bool forcedTermination)
+{
+ // TODO: Deallocate all resources allocated by the application.
+ // The permanent data and context of the application can be saved through the application registry (appRegistry).
+ return true;
+}
+
+void
+$(baseName)App::OnForeground(void)
+{
+ // TODO: Start or resume drawing when the application is moved to the foreground.
+}
+
+void
+$(baseName)App::OnBackground(void)
+{
+ // TODO: Stop drawing when the application is moved to the background to save the CPU and battery consumption.
+}
+
+void
+$(baseName)App::OnLowMemory(void)
+{
+ // TODO: Free unnecessary resources or close the application.
+}
+
+void
+$(baseName)App::OnBatteryLevelChanged(BatteryLevel batteryLevel)
+{
+ // TODO: Handle all battery level changes here.
+ // Stop using multimedia features (such as camera and mp3 playback) if the battery level is CRITICAL.
+}
+
+void
+$(baseName)App::OnScreenOn(void)
+{
+ // TODO: Retrieve the released resources or resume the operations that were paused or stopped in the OnScreenOff() event handler.
+}
+
+void
+$(baseName)App::OnScreenOff(void)
+{
+ // TODO: Release resources (such as 3D, media, and sensors) to allow the device to enter the sleep mode
+ // to save the battery (unless you have a good reason to do otherwise).
+ // Only perform quick operations in this event handler. Any lengthy operations can be risky;
+ // for example, invoking a long asynchronous method within this event handler can cause problems
+ // because the device can enter the sleep mode before the callback is invoked.
+
+}
diff --git a/Template/Tizen Native/Empty Application/empty/project/src/AppEntry.cpp b/Template/Tizen Native/Empty Application/empty/project/src/AppEntry.cpp
new file mode 100644
index 0000000..33a3c6f
--- /dev/null
+++ b/Template/Tizen Native/Empty Application/empty/project/src/AppEntry.cpp
@@ -0,0 +1,37 @@
+//
+//This file contains the Tizen application entry point by default. You do not need to modify this file.
+//
+#include <new>
+#include "$(baseName)App.h"
+
+using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif // __cplusplus
+
+//
+// The framework calls this method as the entry method of the Tizen application.
+//
+_EXPORT_ int
+OspMain(int argc, char* pArgv[])
+{
+ AppLog("Application started.");
+ ArrayList args(SingleObjectDeleter);
+ args.Construct();
+ for (int i = 0; i < argc; i++)
+ {
+ args.Add(new (std::nothrow) String(pArgv[i]));
+ }
+
+ result r = Tizen::App::UiApp::Execute($(baseName)App::CreateInstance, &args);
+ TryLog(r == E_SUCCESS, "[%s] Application execution failed.", GetErrorMessage(r));
+ AppLog("Application finished.");
+
+ return static_cast< int >(r);
+}
+#ifdef __cplusplus
+}
+#endif // __cplusplus
diff --git a/Template/Tizen Native/Empty Application/empty/project/src/AppFrame.cpp b/Template/Tizen Native/Empty Application/empty/project/src/AppFrame.cpp
new file mode 100644
index 0000000..e2a4f43
--- /dev/null
+++ b/Template/Tizen Native/Empty Application/empty/project/src/AppFrame.cpp
@@ -0,0 +1,47 @@
+#include "$(baseName)Frame.h"
+
+using namespace Tizen::App;
+using namespace Tizen::Ui;
+
+$(baseName)Frame::$(baseName)Frame(void)
+{
+}
+
+$(baseName)Frame::~$(baseName)Frame(void)
+{
+}
+
+result
+$(baseName)Frame::OnInitializing(void)
+{
+ result r = E_SUCCESS;
+
+ // TODO: Add your frame initialization code here.
+
+ SetPropagatedKeyEventListener(this);
+ return r;
+}
+
+result
+$(baseName)Frame::OnTerminating(void)
+{
+ result r = E_SUCCESS;
+
+ // TODO: Add your frame termination code here.
+ return r;
+}
+
+bool
+$(baseName)Frame::OnKeyReleased(Tizen::Ui::Control& source, const Tizen::Ui::KeyEventInfo& keyEventInfo)
+{
+ KeyCode keyCode = keyEventInfo.GetKeyCode();
+
+ if (keyCode == KEY_BACK)
+ {
+ UiApp* pApp = UiApp::GetInstance();
+ AppAssert(pApp);
+ pApp->Terminate();
+ }
+
+ return false;
+}
diff --git a/Template/Tizen Native/Empty Application/empty/sample.xml b/Template/Tizen Native/Empty Application/empty/sample.xml
new file mode 100644
index 0000000..886da07
--- /dev/null
+++ b/Template/Tizen Native/Empty Application/empty/sample.xml
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<template>
+
+ <slp-property>
+ <property-group>
+ <sample-name>Empty Application</sample-name>
+ <category>Application Template</category>
+ <sdk-version>1.00</sdk-version>
+ <project-type>org.tizen.nativecpp.buildArtefactType.app</project-type>
+ <sample-description>description.xml</sample-description>
+ </property-group>
+ </slp-property>
+ <process type="org.tizen.nativeappcommon.TizenCopyFolder">
+ <simple name="projectName" value="$(projectName)"/>
+ <simple name="folderPath" value="project"/>
+ <complex-array name="replaceableFiles">
+ <element>
+ <simple name="sourcePath" value="src/App.cpp"/>
+ <simple name="targetPath" value="src/$(baseName)App.cpp"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="src/AppEntry.cpp"/>
+ <simple name="targetPath" value="src/$(baseName)Entry.cpp"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="src/AppFrame.cpp"/>
+ <simple name="targetPath" value="src/$(baseName)Frame.cpp"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="inc/App.h"/>
+ <simple name="targetPath" value="inc/$(baseName)App.h"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="inc/AppFrame.h"/>
+ <simple name="targetPath" value="inc/$(baseName)Frame.h"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="manifest.xml"/>
+ <simple name="targetPath" value="manifest.xml"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ </complex-array>
+ </process>
+ <process type="org.tizen.nativecpp.SetDefaultFrameworks">
+ <simple name="projectName" value="$(projectName)"/>
+ <complex-array name="frameworkList">
+ <element>
+ <simple name="framework" value="osp"/>
+ </element>
+ </complex-array>
+ </process>
+</template>
diff --git a/Template/Tizen Native/Empty Application/empty/screenshot.png b/Template/Tizen Native/Empty Application/empty/screenshot.png
new file mode 100644
index 0000000..759e0eb
--- /dev/null
+++ b/Template/Tizen Native/Empty Application/empty/screenshot.png
Binary files differ
diff --git a/Template/Tizen Native/Form-based Application/formapp/description.xml b/Template/Tizen Native/Form-based Application/formapp/description.xml
new file mode 100644
index 0000000..71dca09
--- /dev/null
+++ b/Template/Tizen Native/Form-based Application/formapp/description.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8"?>
+<?xml-stylesheet type="text/xsl" href="../../../../description.xsl"?>
+
+<Overview version="0.17.1">
+ <SampleName>Form-based Application</SampleName>
+ <SampleVersion>1.0</SampleVersion>
+ <Preview>screenshot.png</Preview>
+ <Description>
+ This template is suitable for creating a simple project based on a form. The template contains the basic application functionality as well as the functionality for drawing a form on the device screen.
+ </Description>
+</Overview>
diff --git a/Template/Tizen Native/Form-based Application/formapp/project/inc/App.h b/Template/Tizen Native/Form-based Application/formapp/project/inc/App.h
new file mode 100644
index 0000000..a7ddfd6
--- /dev/null
+++ b/Template/Tizen Native/Form-based Application/formapp/project/inc/App.h
@@ -0,0 +1,52 @@
+#ifndef _$(baseNameUpper)_APP_H_
+#define _$(baseNameUpper)_APP_H_
+
+$(pcheader)
+
+
+// The [$(baseName)]App class must inherit from the UiApp class,
+// which provides the basic features necessary to define a UI application.
+
+class $(baseName)App
+ : public Tizen::App::UiApp
+ , public Tizen::System::IScreenEventListener
+{
+public:
+ // The platform calls this method to create the application instance.
+ static Tizen::App::UiApp* CreateInstance(void);
+ $(baseName)App(void);
+ virtual ~$(baseName)App(void);
+
+private:
+ // Called when the UI application is initializing.
+ virtual bool OnAppInitializing(Tizen::App::AppRegistry& appRegistry);
+
+ // Called when the UI application initialization is finished.
+ virtual bool OnAppInitialized(void);
+
+ // Called when the END key is pressed to terminate the UI application (if the device has the END key).
+ virtual bool OnAppWillTerminate(void);
+
+ // Called when the UI application is terminating.
+ virtual bool OnAppTerminating(Tizen::App::AppRegistry& appRegistry, bool forcedTermination = false);
+
+ // Called when the UI application's frame moves to the foreground.
+ virtual void OnForeground(void);
+
+ // Called when the UI application's frame is moved from the foreground to the background.
+ virtual void OnBackground(void);
+
+ // Called when system memory is no longer sufficient to run the UI application. Clean up unnecessary resources to release memory, or terminate the application.
+ virtual void OnLowMemory(void);
+
+ // Called when the battery level changes.
+ virtual void OnBatteryLevelChanged(Tizen::System::BatteryLevel batteryLevel);
+
+ // Called when the screen switches on.
+ virtual void OnScreenOn(void);
+
+ // Called when the screen switches off.
+ virtual void OnScreenOff(void);
+};
+
+#endif // _$(baseNameUpper)_APP_H_
diff --git a/Template/Tizen Native/Form-based Application/formapp/project/inc/AppForm.h b/Template/Tizen Native/Form-based Application/formapp/project/inc/AppForm.h
new file mode 100644
index 0000000..8caebcd
--- /dev/null
+++ b/Template/Tizen Native/Form-based Application/formapp/project/inc/AppForm.h
@@ -0,0 +1,26 @@
+#ifndef _$(baseNameUpper)_FORM_H_
+#define _$(baseNameUpper)_FORM_H_
+
+$(pcheader)
+
+class $(baseName)Form
+ : public Tizen::Ui::Controls::Form
+ , public Tizen::Ui::IActionEventListener
+ , public Tizen::Ui::Controls::IFormBackEventListener
+{
+public:
+ $(baseName)Form(void);
+ virtual ~$(baseName)Form(void);
+ bool Initialize(void);
+
+private:
+ virtual result OnInitializing(void);
+ virtual result OnTerminating(void);
+ virtual void OnFormBackRequested(Tizen::Ui::Controls::Form& source);
+ virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);
+
+protected:
+ static const int IDA_BUTTON_OK = 101;
+};
+
+#endif //_$(baseNameUpper)_FORM_H_
diff --git a/Template/Tizen Native/Form-based Application/formapp/project/inc/AppFrame.h b/Template/Tizen Native/Form-based Application/formapp/project/inc/AppFrame.h
new file mode 100644
index 0000000..1546774
--- /dev/null
+++ b/Template/Tizen Native/Form-based Application/formapp/project/inc/AppFrame.h
@@ -0,0 +1,18 @@
+#ifndef _$(baseNameUpper)_FRAME_H_
+#define _$(baseNameUpper)_FRAME_H_
+
+$(pcheader)
+
+class $(baseName)Frame
+ : public Tizen::Ui::Controls::Frame
+{
+public:
+ $(baseName)Frame(void);
+ virtual ~$(baseName)Frame(void);
+
+private:
+ virtual result OnInitializing(void);
+ virtual result OnTerminating(void);
+};
+
+#endif //_$(baseNameUpper)FRAME_H_
diff --git a/Template/Tizen Native/Form-based Application/formapp/project/inc/AppResourceId.h b/Template/Tizen Native/Form-based Application/formapp/project/inc/AppResourceId.h
new file mode 100644
index 0000000..ddccdb7
--- /dev/null
+++ b/Template/Tizen Native/Form-based Application/formapp/project/inc/AppResourceId.h
@@ -0,0 +1,6 @@
+#ifndef _APP_RESOURCE_ID_H_
+#define _APP_RESOURCE_ID_H_
+
+extern const wchar_t* IDL_FORM;
+extern const wchar_t* IDC_BUTTON_OK;
+#endif // _APP_RESOURCE_ID_H_
diff --git a/Template/Tizen Native/Form-based Application/formapp/project/inc/tizenx.h b/Template/Tizen Native/Form-based Application/formapp/project/inc/tizenx.h
new file mode 100644
index 0000000..fc7052d
--- /dev/null
+++ b/Template/Tizen Native/Form-based Application/formapp/project/inc/tizenx.h
@@ -0,0 +1,13 @@
+// precompiled header file
+#ifndef TIZENX_H_
+#define TIZENX_H_
+
+#include <FApp.h>
+#include <FBase.h>
+#include <FSystem.h>
+#include <FUi.h>
+#include <FUiIme.h>
+#include <FGraphics.h>
+#include <gl.h>
+
+#endif
diff --git a/Template/Tizen Native/Form-based Application/formapp/project/manifest.xml b/Template/Tizen Native/Form-based Application/formapp/project/manifest.xml
new file mode 100644
index 0000000..f3b0b28
--- /dev/null
+++ b/Template/Tizen Native/Form-based Application/formapp/project/manifest.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Manifest xmlns="http://schemas.tizen.org/2012/12/manifest">
+ <Id>$(manifestAppId)</Id>
+ <Version>1.0.0</Version>
+ <Type>C++App</Type>
+ <Requirements>
+ <Feature Name="http://tizen.org/feature/platform.native.api.version">2.2</Feature>
+ </Requirements>
+ <Apps>
+ <ApiVersion>2.2</ApiVersion>
+ <Privileges></Privileges>
+ <UiApp Name="$(projectName)" Main="True" MenuIconVisible="True">
+ <UiScalability CoordinateSystem="Logical" BaseScreenSize="Normal" LogicalCoordinate="720"></UiScalability>
+ <UiTheme SystemTheme="White"></UiTheme>
+ <DisplayNames>
+ <DisplayName Locale="eng-GB">$(projectName)</DisplayName>
+ </DisplayNames>
+ <Icons>
+ <Icon Section="MainMenu" >mainmenu.png</Icon>
+ </Icons>
+ </UiApp>
+ </Apps>
+</Manifest>
diff --git a/Template/Tizen Native/Form-based Application/formapp/project/res/screen-size-normal/IDL_FORM.xml b/Template/Tizen Native/Form-based Application/formapp/project/res/screen-size-normal/IDL_FORM.xml
new file mode 100644
index 0000000..e1fea44
--- /dev/null
+++ b/Template/Tizen Native/Form-based Application/formapp/project/res/screen-size-normal/IDL_FORM.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+-->
+<!DOCTYPE Scene SYSTEM "UIForm.dtd">
+<Scene Bversion="3.0.0.v20120410" Dversion="20120315">
+ <LogicalCoordinate>720</LogicalCoordinate>
+ <Form id="IDL_FORM">
+ <property backgroundColor="" backgroundOpacity="100" orientation="Automatic" softKey0NormalIcon="" softKey0PressedIcon="" softKey0Text="" softKey1NormalIcon="" softKey1PressedIcon="" softKey1Text="" title="" titleAlign="ALIGN_CENTER" titleIcon="" translucentFooter="false" translucentHeader="false" translucentIndicator="false"/>
+ <layout mode="Portrait" style="FORM_STYLE_PORTRAIT_INDICATOR | FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE |FORM_STYLE_HEADER" type="LAYOUT_RELATIVE"/>
+ <layout mode="Landscape" style="FORM_STYLE_PORTRAIT_INDICATOR | FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE |FORM_STYLE_HEADER" type="LAYOUT_RELATIVE"/>
+ </Form>
+ <Header>
+ <property backgroundBitmapPath="" color="" colorOpacity="0" descriptionText="" descriptionTextColor="" disabledButtonColor="" disabledButtonColorOpacity="0" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="0" disabledItemTextColor="" headerStyle="HEADER_STYLE_TITLE" highlightedButtonColor="" highlightedButtonColorOpacity="0" highlightedButtonTextColor="" highlightedItemColor="" highlightedItemColorOpacity="0" highlightedItemTextColor="" normalButtonColor="" normalButtonColorOpacity="0" normalButtonTextColor="" normalItemColor="" normalItemColorOpacity="0" normalItemTextColor="" pressedButtonColor="" pressedButtonColorOpacity="0" pressedButtonTextColor="" pressedItemColor="" pressedItemColorOpacity="0" pressedItemTextColor="" selectedItemColor="" selectedItemColorOpacity="0" selectedItemTextColor="" titleIconPath="" titleText="Hello Tizen!" titleTextColor=""/>
+ <itemSet/>
+ </Header>
+ <Button id="IDC_BUTTON_OK" parent="IDL_FORM">
+ <property disableTextColor="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="0" highlightedBGBitmapPath="" highlightedColor="" highlightedColorOpacity="0" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="" normalBitmapPath="" normalColor="" normalColorOpacity="0" normalTextColor="" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="0" pressedTextColor="" text="OK" textSize="32" verticalAlign="ALIGN_MIDDLE"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="true" centerVertical="true" height="135" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="420" x="0" y="0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="true" centerVertical="true" height="102" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="400" x="0" y="0"/>
+ </Button>
+</Scene>
diff --git a/Template/Tizen Native/Form-based Application/formapp/project/shared/res/screen-density-xhigh/mainmenu.png b/Template/Tizen Native/Form-based Application/formapp/project/shared/res/screen-density-xhigh/mainmenu.png
new file mode 100755
index 0000000..9765b1b
--- /dev/null
+++ b/Template/Tizen Native/Form-based Application/formapp/project/shared/res/screen-density-xhigh/mainmenu.png
Binary files differ
diff --git a/Template/Tizen Native/Form-based Application/formapp/project/src/App.cpp b/Template/Tizen Native/Form-based Application/formapp/project/src/App.cpp
new file mode 100644
index 0000000..25a9006
--- /dev/null
+++ b/Template/Tizen Native/Form-based Application/formapp/project/src/App.cpp
@@ -0,0 +1,107 @@
+#include <new>
+#include "$(baseName)App.h"
+#include "$(baseName)Frame.h"
+
+using namespace Tizen::App;
+using namespace Tizen::System;
+
+$(baseName)App::$(baseName)App(void)
+{
+}
+
+$(baseName)App::~$(baseName)App(void)
+{
+}
+
+UiApp*
+$(baseName)App::CreateInstance(void)
+{
+ // TODO: Create the application instance through the constructor.
+ return new (std::nothrow) $(baseName)App();
+}
+
+bool
+$(baseName)App::OnAppInitializing(AppRegistry& appRegistry)
+{
+ // TODO: Initialize application-specific data.
+ // The permanent data and context of the application can be obtained from the application registry (appRegistry).
+ //
+ // If this method is successful, return true; otherwise, return false and the application is terminated.
+
+
+ // Uncomment the following statement to listen to the screen on and off events:
+ // PowerManager::SetScreenEventListener(*this);
+
+ return true;
+}
+
+bool
+$(baseName)App::OnAppInitialized(void)
+{
+ // TODO: Create the application frame.
+
+ $(baseName)Frame* p$(baseName)Frame = new (std::nothrow) $(baseName)Frame;
+ TryReturn(p$(baseName)Frame != null, false, "The memory is insufficient.");
+ p$(baseName)Frame->Construct();
+ p$(baseName)Frame->SetName(L"$(baseName)");
+ AddFrame(*p$(baseName)Frame);
+
+ return true;
+}
+
+bool
+$(baseName)App::OnAppWillTerminate(void)
+{
+ // TODO: Deallocate or release resources in devices that have the END key.
+ return true;
+}
+
+bool
+$(baseName)App::OnAppTerminating(AppRegistry& appRegistry, bool forcedTermination)
+{
+ // TODO: Deallocate all resources allocated by the application.
+ // The permanent data and context of the application can be saved through the application registry (appRegistry).
+ return true;
+}
+
+void
+$(baseName)App::OnForeground(void)
+{
+ // TODO: Start or resume drawing when the application is moved to the foreground.
+}
+
+void
+$(baseName)App::OnBackground(void)
+{
+ // TODO: Stop drawing when the application is moved to the background to save the CPU and battery consumption.
+}
+
+void
+$(baseName)App::OnLowMemory(void)
+{
+ // TODO: Free unnecessary resources or close the application.
+}
+
+void
+$(baseName)App::OnBatteryLevelChanged(BatteryLevel batteryLevel)
+{
+ // TODO: Handle all battery level changes here.
+ // Stop using multimedia features (such as camera and mp3 playback) if the battery level is CRITICAL.
+}
+
+void
+$(baseName)App::OnScreenOn(void)
+{
+ // TODO: Retrieve the released resources or resume the operations that were paused or stopped in the OnScreenOff() event handler.
+}
+
+void
+$(baseName)App::OnScreenOff(void)
+{
+ // TODO: Release resources (such as 3D, media, and sensors) to allow the device to enter the sleep mode
+ // to save the battery (unless you have a good reason to do otherwise).
+ // Only perform quick operations in this event handler. Any lengthy operations can be risky;
+ // for example, invoking a long asynchronous method within this event handler can cause problems
+ // because the device can enter the sleep mode before the callback is invoked.
+
+}
diff --git a/Template/Tizen Native/Form-based Application/formapp/project/src/AppEntry.cpp b/Template/Tizen Native/Form-based Application/formapp/project/src/AppEntry.cpp
new file mode 100644
index 0000000..33a3c6f
--- /dev/null
+++ b/Template/Tizen Native/Form-based Application/formapp/project/src/AppEntry.cpp
@@ -0,0 +1,37 @@
+//
+//This file contains the Tizen application entry point by default. You do not need to modify this file.
+//
+#include <new>
+#include "$(baseName)App.h"
+
+using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif // __cplusplus
+
+//
+// The framework calls this method as the entry method of the Tizen application.
+//
+_EXPORT_ int
+OspMain(int argc, char* pArgv[])
+{
+ AppLog("Application started.");
+ ArrayList args(SingleObjectDeleter);
+ args.Construct();
+ for (int i = 0; i < argc; i++)
+ {
+ args.Add(new (std::nothrow) String(pArgv[i]));
+ }
+
+ result r = Tizen::App::UiApp::Execute($(baseName)App::CreateInstance, &args);
+ TryLog(r == E_SUCCESS, "[%s] Application execution failed.", GetErrorMessage(r));
+ AppLog("Application finished.");
+
+ return static_cast< int >(r);
+}
+#ifdef __cplusplus
+}
+#endif // __cplusplus
diff --git a/Template/Tizen Native/Form-based Application/formapp/project/src/AppForm.cpp b/Template/Tizen Native/Form-based Application/formapp/project/src/AppForm.cpp
new file mode 100644
index 0000000..1a0ac74
--- /dev/null
+++ b/Template/Tizen Native/Form-based Application/formapp/project/src/AppForm.cpp
@@ -0,0 +1,77 @@
+#include "$(baseName)Form.h"
+#include "AppResourceId.h"
+
+using namespace Tizen::Base;
+using namespace Tizen::App;
+using namespace Tizen::Ui;
+using namespace Tizen::Ui::Controls;
+
+$(baseName)Form::$(baseName)Form(void)
+{
+}
+
+$(baseName)Form::~$(baseName)Form(void)
+{
+}
+
+bool
+$(baseName)Form::Initialize(void)
+{
+ result r = Construct(IDL_FORM);
+ TryReturn(r == E_SUCCESS, false, "Failed to construct form");
+
+ return true;
+}
+result
+$(baseName)Form::OnInitializing(void)
+{
+ result r = E_SUCCESS;
+
+ // TODO: Add your initialization code here
+
+ // Setup back event listener
+ SetFormBackEventListener(this);
+
+ // Get a button via resource ID
+ Tizen::Ui::Controls::Button* pButtonOk = static_cast< Button* >(GetControl(IDC_BUTTON_OK));
+ if (pButtonOk != null)
+ {
+ pButtonOk->SetActionId(IDA_BUTTON_OK);
+ pButtonOk->AddActionEventListener(*this);
+ }
+
+ return r;
+}
+
+result
+$(baseName)Form::OnTerminating(void)
+{
+ result r = E_SUCCESS;
+
+ // TODO: Add your termination code here
+
+ return r;
+}
+
+void
+$(baseName)Form::OnActionPerformed(const Tizen::Ui::Control& source, int actionId)
+{
+ switch(actionId)
+ {
+ case IDA_BUTTON_OK:
+ AppLog("OK Button is clicked!\n");
+ break;
+ default:
+ break;
+ }
+}
+
+void
+$(baseName)Form::OnFormBackRequested(Tizen::Ui::Controls::Form& source)
+{
+ UiApp* pApp = UiApp::GetInstance();
+ AppAssert(pApp);
+ pApp->Terminate();
+}
+
+
diff --git a/Template/Tizen Native/Form-based Application/formapp/project/src/AppFrame.cpp b/Template/Tizen Native/Form-based Application/formapp/project/src/AppFrame.cpp
new file mode 100644
index 0000000..a7f41f9
--- /dev/null
+++ b/Template/Tizen Native/Form-based Application/formapp/project/src/AppFrame.cpp
@@ -0,0 +1,50 @@
+#include <new>
+#include "$(baseName)Frame.h"
+#include "$(baseName)Form.h"
+
+using namespace Tizen::Base;
+using namespace Tizen::Ui;
+using namespace Tizen::Ui::Controls;
+
+$(baseName)Frame::$(baseName)Frame(void)
+{
+}
+
+$(baseName)Frame::~$(baseName)Frame(void)
+{
+}
+
+result
+$(baseName)Frame::OnInitializing(void)
+{
+ result r = E_SUCCESS;
+
+ // Create a form
+ $(baseName)Form* p$(baseName)Form = new (std::nothrow) $(baseName)Form();
+ TryReturn(p$(baseName)Form != null, false, "The memory is insufficient.");
+ p$(baseName)Form->Initialize();
+
+ // Add the form to the frame
+ AddControl(p$(baseName)Form);
+
+ // Set the current form
+ SetCurrentForm(p$(baseName)Form);
+
+ // Draw the form
+ p$(baseName)Form->Invalidate(true);
+
+ // TODO: Add your frame initialization code here.
+
+ return r;
+}
+
+result
+$(baseName)Frame::OnTerminating(void)
+{
+ result r = E_SUCCESS;
+
+ // TODO: Add your frame termination code here.
+ return r;
+}
+
+
diff --git a/Template/Tizen Native/Form-based Application/formapp/project/src/AppResourceId.cpp b/Template/Tizen Native/Form-based Application/formapp/project/src/AppResourceId.cpp
new file mode 100644
index 0000000..c74807d
--- /dev/null
+++ b/Template/Tizen Native/Form-based Application/formapp/project/src/AppResourceId.cpp
@@ -0,0 +1,5 @@
+#include "AppResourceId.h"
+
+const wchar_t* IDL_FORM = L"IDL_FORM";
+const wchar_t* IDC_BUTTON_OK = L"IDC_BUTTON_OK";
+
diff --git a/Template/Tizen Native/Form-based Application/formapp/sample.xml b/Template/Tizen Native/Form-based Application/formapp/sample.xml
new file mode 100644
index 0000000..ddb244a
--- /dev/null
+++ b/Template/Tizen Native/Form-based Application/formapp/sample.xml
@@ -0,0 +1,68 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<template>
+
+ <slp-property>
+ <property-group>
+ <sample-name>Without SceneManager</sample-name>
+ <category>Application Template</category>
+ <sdk-version>1.00</sdk-version>
+ <project-type>org.tizen.nativecpp.buildArtefactType.app</project-type>
+ <sample-description>description.xml</sample-description>
+ </property-group>
+ </slp-property>
+
+ <process type="org.tizen.nativeappcommon.TizenCopyFolder">
+ <simple name="projectName" value="$(projectName)"/>
+ <simple name="folderPath" value="project"/>
+ <complex-array name="replaceableFiles">
+ <element>
+ <simple name="sourcePath" value="src/App.cpp"/>
+ <simple name="targetPath" value="src/$(baseName)App.cpp"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="src/AppEntry.cpp"/>
+ <simple name="targetPath" value="src/$(baseName)Entry.cpp"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="src/AppForm.cpp"/>
+ <simple name="targetPath" value="src/$(baseName)Form.cpp"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="src/AppFrame.cpp"/>
+ <simple name="targetPath" value="src/$(baseName)Frame.cpp"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="inc/App.h"/>
+ <simple name="targetPath" value="inc/$(baseName)App.h"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="inc/AppForm.h"/>
+ <simple name="targetPath" value="inc/$(baseName)Form.h"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="inc/AppFrame.h"/>
+ <simple name="targetPath" value="inc/$(baseName)Frame.h"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="manifest.xml"/>
+ <simple name="targetPath" value="manifest.xml"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ </complex-array>
+ </process>
+ <process type="org.tizen.nativecpp.SetDefaultFrameworks">
+ <simple name="projectName" value="$(projectName)"/>
+ <complex-array name="frameworkList">
+ <element>
+ <simple name="framework" value="osp"/>
+ </element>
+ </complex-array>
+ </process>
+</template>
diff --git a/Template/Tizen Native/Form-based Application/formapp/screenshot.png b/Template/Tizen Native/Form-based Application/formapp/screenshot.png
new file mode 100644
index 0000000..6a3ac1f
--- /dev/null
+++ b/Template/Tizen Native/Form-based Application/formapp/screenshot.png
Binary files differ
diff --git a/Template/Tizen Native/Form-based Application/scenebasedformapp/description.xml b/Template/Tizen Native/Form-based Application/scenebasedformapp/description.xml
new file mode 100644
index 0000000..3511726
--- /dev/null
+++ b/Template/Tizen Native/Form-based Application/scenebasedformapp/description.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8"?>
+<?xml-stylesheet type="text/xsl" href="../../../../description.xsl"?>
+
+<Overview version="0.17.1">
+ <SampleName>Form-based Application with SceneManager</SampleName>
+ <SampleVersion>1.0</SampleVersion>
+ <Preview>screenshot.png</Preview>
+ <Description>
+ This template is suitable for creating a simple project based on a form. The template contains the basic application functionality as well as the functionality for drawing a form on the device screen.
+ </Description>
+</Overview>
diff --git a/Template/Tizen Native/Form-based Application/scenebasedformapp/project/inc/App.h b/Template/Tizen Native/Form-based Application/scenebasedformapp/project/inc/App.h
new file mode 100644
index 0000000..3aea21e
--- /dev/null
+++ b/Template/Tizen Native/Form-based Application/scenebasedformapp/project/inc/App.h
@@ -0,0 +1,52 @@
+#ifndef _$(baseNameUpper)_APP_H_
+#define _$(baseNameUpper)_APP_H_
+
+$(pcheader)
+
+
+// The $(baseName)App class must inherit from the UiApp class,
+// which provides the basic features necessary to define a UI application.
+
+class $(baseName)App
+ : public Tizen::App::UiApp
+ , public Tizen::System::IScreenEventListener
+{
+public:
+ // The platform calls this method to create the application instance.
+ static Tizen::App::UiApp* CreateInstance(void);
+ $(baseName)App(void);
+ virtual ~$(baseName)App(void);
+
+private:
+ // Called when the UI application is initializing.
+ virtual bool OnAppInitializing(Tizen::App::AppRegistry& appRegistry);
+
+ // Called when the UI application initialization is finished.
+ virtual bool OnAppInitialized(void);
+
+ // Called when the END key is pressed to terminate the UI application (if the device has the END key).
+ virtual bool OnAppWillTerminate(void);
+
+ // Called when the UI application is terminating.
+ virtual bool OnAppTerminating(Tizen::App::AppRegistry& appRegistry, bool forcedTermination = false);
+
+ // Called when the UI application's frame moves to the foreground.
+ virtual void OnForeground(void);
+
+ // Called when the UI application's frame is moved from the foreground to the background.
+ virtual void OnBackground(void);
+
+ // Called when system memory is no longer sufficient to run the UI application. Clean up unnecessary resources to release memory, or terminate the application.
+ virtual void OnLowMemory(void);
+
+ // Called when the battery level changes.
+ virtual void OnBatteryLevelChanged(Tizen::System::BatteryLevel batteryLevel);
+
+ // Called when the screen switches on.
+ virtual void OnScreenOn(void);
+
+ // Called when the screen switches off.
+ virtual void OnScreenOff(void);
+};
+
+#endif // _$(baseNameUpper)_APP_H_
diff --git a/Template/Tizen Native/Form-based Application/scenebasedformapp/project/inc/AppFormFactory.h b/Template/Tizen Native/Form-based Application/scenebasedformapp/project/inc/AppFormFactory.h
new file mode 100644
index 0000000..fc4f245
--- /dev/null
+++ b/Template/Tizen Native/Form-based Application/scenebasedformapp/project/inc/AppFormFactory.h
@@ -0,0 +1,16 @@
+#ifndef _$(baseNameUpper)_FORM_FACTORY_H_
+#define _$(baseNameUpper)_FORM_FACTORY_H_
+
+$(pcheader)
+
+class $(baseName)FormFactory
+ : public Tizen::Ui::Scenes::IFormFactory
+{
+public:
+ $(baseName)FormFactory(void);
+ virtual ~$(baseName)FormFactory(void);
+
+ virtual Tizen::Ui::Controls::Form* CreateFormN(const Tizen::Base::String& formId, const Tizen::Ui::Scenes::SceneId& sceneId);
+};
+
+#endif // _$(baseNameUpper)_FORM_FACTORY_H_
diff --git a/Template/Tizen Native/Form-based Application/scenebasedformapp/project/inc/AppFrame.h b/Template/Tizen Native/Form-based Application/scenebasedformapp/project/inc/AppFrame.h
new file mode 100644
index 0000000..f51678c
--- /dev/null
+++ b/Template/Tizen Native/Form-based Application/scenebasedformapp/project/inc/AppFrame.h
@@ -0,0 +1,18 @@
+#ifndef _$(baseNameUpper)_FRAME_H_
+#define _$(baseNameUpper)_FRAME_H_
+
+$(pcheader)
+
+class $(baseName)Frame
+ : public Tizen::Ui::Controls::Frame
+{
+public:
+ $(baseName)Frame(void);
+ virtual ~$(baseName)Frame(void);
+
+private:
+ virtual result OnInitializing(void);
+ virtual result OnTerminating(void);
+};
+
+#endif //_$(baseNameUpper)_FRAME_H_
diff --git a/Template/Tizen Native/Form-based Application/scenebasedformapp/project/inc/AppMainForm.h b/Template/Tizen Native/Form-based Application/scenebasedformapp/project/inc/AppMainForm.h
new file mode 100644
index 0000000..3c49e4c
--- /dev/null
+++ b/Template/Tizen Native/Form-based Application/scenebasedformapp/project/inc/AppMainForm.h
@@ -0,0 +1,31 @@
+#ifndef _$(baseNameUpper)_MAIN_FORM_H_
+#define _$(baseNameUpper)_MAIN_FORM_H_
+
+$(pcheader)
+
+class $(baseName)MainForm
+ : public Tizen::Ui::Controls::Form
+ , public Tizen::Ui::IActionEventListener
+ , public Tizen::Ui::Controls::IFormBackEventListener
+ , public Tizen::Ui::Scenes::ISceneEventListener
+{
+public:
+ $(baseName)MainForm(void);
+ virtual ~$(baseName)MainForm(void);
+ bool Initialize(void);
+
+private:
+ virtual result OnInitializing(void);
+ virtual result OnTerminating(void);
+ virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);
+ virtual void OnFormBackRequested(Tizen::Ui::Controls::Form& source);
+ virtual void OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previousSceneId,
+ const Tizen::Ui::Scenes::SceneId& currentSceneId, Tizen::Base::Collection::IList* pArgs);
+ virtual void OnSceneDeactivated(const Tizen::Ui::Scenes::SceneId& currentSceneId,
+ const Tizen::Ui::Scenes::SceneId& nextSceneId);
+
+protected:
+ static const int IDA_BUTTON_OK = 101;
+};
+
+#endif //_$(baseNameUpper)_MAIN_FORM_H_
diff --git a/Template/Tizen Native/Form-based Application/scenebasedformapp/project/inc/AppPanelFactory.h b/Template/Tizen Native/Form-based Application/scenebasedformapp/project/inc/AppPanelFactory.h
new file mode 100644
index 0000000..a892de0
--- /dev/null
+++ b/Template/Tizen Native/Form-based Application/scenebasedformapp/project/inc/AppPanelFactory.h
@@ -0,0 +1,16 @@
+#ifndef _$(baseNameUpper)_PANEL_FACTORY_H_
+#define _$(baseNameUpper)_PANEL_FACTORY_H_
+
+$(pcheader)
+
+class $(baseName)PanelFactory
+ : public Tizen::Ui::Scenes::IPanelFactory
+{
+public:
+ $(baseName)PanelFactory(void);
+ virtual ~$(baseName)PanelFactory(void);
+
+ virtual Tizen::Ui::Controls::Panel* CreatePanelN(const Tizen::Base::String& panelId, const Tizen::Ui::Scenes::SceneId& sceneId);
+};
+
+#endif // _$(baseNameUpper)_PANEL_FACTORY_H_
diff --git a/Template/Tizen Native/Form-based Application/scenebasedformapp/project/inc/AppResourceId.h b/Template/Tizen Native/Form-based Application/scenebasedformapp/project/inc/AppResourceId.h
new file mode 100644
index 0000000..2fbcbdd
--- /dev/null
+++ b/Template/Tizen Native/Form-based Application/scenebasedformapp/project/inc/AppResourceId.h
@@ -0,0 +1,8 @@
+#ifndef _APP_RESOURCE_ID_H_
+#define _APP_RESOURCE_ID_H_
+
+extern const wchar_t* IDL_FORM;
+extern const wchar_t* IDSCNT_MAIN_SCENE;
+extern const wchar_t* IDC_BUTTON_OK;
+
+#endif // _APP_RESOURCE_ID_H_
diff --git a/Template/Tizen Native/Form-based Application/scenebasedformapp/project/inc/tizenx.h b/Template/Tizen Native/Form-based Application/scenebasedformapp/project/inc/tizenx.h
new file mode 100644
index 0000000..fc7052d
--- /dev/null
+++ b/Template/Tizen Native/Form-based Application/scenebasedformapp/project/inc/tizenx.h
@@ -0,0 +1,13 @@
+// precompiled header file
+#ifndef TIZENX_H_
+#define TIZENX_H_
+
+#include <FApp.h>
+#include <FBase.h>
+#include <FSystem.h>
+#include <FUi.h>
+#include <FUiIme.h>
+#include <FGraphics.h>
+#include <gl.h>
+
+#endif
diff --git a/Template/Tizen Native/Form-based Application/scenebasedformapp/project/manifest.xml b/Template/Tizen Native/Form-based Application/scenebasedformapp/project/manifest.xml
new file mode 100644
index 0000000..f3b0b28
--- /dev/null
+++ b/Template/Tizen Native/Form-based Application/scenebasedformapp/project/manifest.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Manifest xmlns="http://schemas.tizen.org/2012/12/manifest">
+ <Id>$(manifestAppId)</Id>
+ <Version>1.0.0</Version>
+ <Type>C++App</Type>
+ <Requirements>
+ <Feature Name="http://tizen.org/feature/platform.native.api.version">2.2</Feature>
+ </Requirements>
+ <Apps>
+ <ApiVersion>2.2</ApiVersion>
+ <Privileges></Privileges>
+ <UiApp Name="$(projectName)" Main="True" MenuIconVisible="True">
+ <UiScalability CoordinateSystem="Logical" BaseScreenSize="Normal" LogicalCoordinate="720"></UiScalability>
+ <UiTheme SystemTheme="White"></UiTheme>
+ <DisplayNames>
+ <DisplayName Locale="eng-GB">$(projectName)</DisplayName>
+ </DisplayNames>
+ <Icons>
+ <Icon Section="MainMenu" >mainmenu.png</Icon>
+ </Icons>
+ </UiApp>
+ </Apps>
+</Manifest>
diff --git a/Template/Tizen Native/Form-based Application/scenebasedformapp/project/res/screen-size-normal/IDL_FORM.xml b/Template/Tizen Native/Form-based Application/scenebasedformapp/project/res/screen-size-normal/IDL_FORM.xml
new file mode 100644
index 0000000..a3ff820
--- /dev/null
+++ b/Template/Tizen Native/Form-based Application/scenebasedformapp/project/res/screen-size-normal/IDL_FORM.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+-->
+<!DOCTYPE Scene SYSTEM "UIForm.dtd">
+
+<Scene Bversion="3.0.0.v20120410" Dversion="20120315">
+ <LogicalCoordinate>720</LogicalCoordinate>
+ <Form id="IDL_FORM">
+ <property backgroundColor="" backgroundOpacity="100" orientation="Automatic" softKey0NormalIcon="" softKey0PressedIcon="" softKey0Text="" softKey1NormalIcon="" softKey1PressedIcon="" softKey1Text="" title="" titleAlign="ALIGN_CENTER" titleIcon="" translucentFooter="false" translucentHeader="false" translucentIndicator="false"/>
+ <layout mode="Portrait" style="FORM_STYLE_PORTRAIT_INDICATOR | FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE |FORM_STYLE_HEADER" type="LAYOUT_RELATIVE"/>
+ <layout mode="Landscape" style="FORM_STYLE_PORTRAIT_INDICATOR | FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE |FORM_STYLE_HEADER" type="LAYOUT_RELATIVE"/>
+ </Form>
+ <Header>
+ <property backgroundBitmapPath="" color="" colorOpacity="0" descriptionText="" descriptionTextColor="" disabledButtonColor="" disabledButtonColorOpacity="0" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="0" disabledItemTextColor="" headerStyle="HEADER_STYLE_TITLE" highlightedButtonColor="" highlightedButtonColorOpacity="0" highlightedButtonTextColor="" highlightedItemColor="" highlightedItemColorOpacity="0" highlightedItemTextColor="" normalButtonColor="" normalButtonColorOpacity="0" normalButtonTextColor="" normalItemColor="" normalItemColorOpacity="0" normalItemTextColor="" pressedButtonColor="" pressedButtonColorOpacity="0" pressedButtonTextColor="" pressedItemColor="" pressedItemColorOpacity="0" pressedItemTextColor="" selectedItemColor="" selectedItemColorOpacity="0" selectedItemTextColor="" titleIconPath="" titleText="Hello Tizen!" titleTextColor=""/>
+ <itemSet/>
+ </Header>
+ <Button id="IDC_BUTTON_OK" parent="IDL_FORM">
+ <property disableTextColor="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="0" highlightedBGBitmapPath="" highlightedColor="" highlightedColorOpacity="0" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="" normalBitmapPath="" normalColor="" normalColorOpacity="0" normalTextColor="" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="0" pressedTextColor="" text="OK" textSize="32" verticalAlign="ALIGN_MIDDLE"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="true" centerVertical="true" height="135" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="420" />
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="true" centerVertical="true" height="102" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="400" />
+ </Button>
+</Scene>
diff --git a/Template/Tizen Native/Form-based Application/scenebasedformapp/project/res/screen-size-normal/workflow.xml b/Template/Tizen Native/Form-based Application/scenebasedformapp/project/res/screen-size-normal/workflow.xml
new file mode 100644
index 0000000..3d05c60
--- /dev/null
+++ b/Template/Tizen Native/Form-based Application/scenebasedformapp/project/res/screen-size-normal/workflow.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<Workflow>
+ <Scene Form="IDL_FORM" Id="MainScene"/>
+ <SceneTransition AnimationType="none" DestroyOption="keep" DirectionType="forward" HistoryOption="add" Id="IDSCNT_MAIN_SCENE" Method="" SourceId="" SourceResourceType="" TargetId="MainScene"/>
+ <!--UI Builder(Workflow Designer) only-->
+ <WorkflowDesigner>
+ <Position Name="MainScene" X="170" Y="60"/>
+ </WorkflowDesigner>
+</Workflow>
diff --git a/Template/Tizen Native/Form-based Application/scenebasedformapp/project/shared/res/screen-density-xhigh/mainmenu.png b/Template/Tizen Native/Form-based Application/scenebasedformapp/project/shared/res/screen-density-xhigh/mainmenu.png
new file mode 100755
index 0000000..9765b1b
--- /dev/null
+++ b/Template/Tizen Native/Form-based Application/scenebasedformapp/project/shared/res/screen-density-xhigh/mainmenu.png
Binary files differ
diff --git a/Template/Tizen Native/Form-based Application/scenebasedformapp/project/src/App.cpp b/Template/Tizen Native/Form-based Application/scenebasedformapp/project/src/App.cpp
new file mode 100644
index 0000000..3493170
--- /dev/null
+++ b/Template/Tizen Native/Form-based Application/scenebasedformapp/project/src/App.cpp
@@ -0,0 +1,106 @@
+#include <new>
+#include "$(baseName)App.h"
+#include "$(baseName)Frame.h"
+
+using namespace Tizen::App;
+using namespace Tizen::System;
+
+$(baseName)App::$(baseName)App(void)
+{
+}
+
+$(baseName)App::~$(baseName)App(void)
+{
+}
+
+UiApp*
+$(baseName)App::CreateInstance(void)
+{
+ // Create the application instance through the constructor.
+ return new (std::nothrow) $(baseName)App();
+}
+
+bool
+$(baseName)App::OnAppInitializing(AppRegistry& appRegistry)
+{
+ // TODO: Initialize application-specific data.
+ // The permanent data and context of the application can be obtained from the application registry (appRegistry).
+ //
+ // If this method is successful, return true; otherwise, return false and the application is terminated.
+
+ // Uncomment the following statement to listen to the screen on and off events:
+ // PowerManager::SetScreenEventListener(*this);
+
+ // TODO: Add your application initialization code here.
+ return true;
+}
+
+bool
+$(baseName)App::OnAppInitialized(void)
+{
+ // Create the application frame.
+ $(baseName)Frame* p$(baseName)Frame = new (std::nothrow) $(baseName)Frame;
+ TryReturn(p$(baseName)Frame != null, false, "The memory is insufficient.");
+ p$(baseName)Frame->Construct();
+ p$(baseName)Frame->SetName(L"$(baseName)");
+ AddFrame(*p$(baseName)Frame);
+
+ return true;
+}
+
+bool
+$(baseName)App::OnAppWillTerminate(void)
+{
+ // TODO: Deallocate or release resources in devices that have the END key.
+ return true;
+}
+
+bool
+$(baseName)App::OnAppTerminating(AppRegistry& appRegistry, bool forcedTermination)
+{
+ // TODO: Deallocate all resources allocated by the application.
+ // The permanent data and context of the application can be saved through the application registry (appRegistry).
+ return true;
+}
+
+void
+$(baseName)App::OnForeground(void)
+{
+ // TODO: Start or resume drawing when the application is moved to the foreground.
+}
+
+void
+$(baseName)App::OnBackground(void)
+{
+ // TODO: Stop drawing when the application is moved to the background to save the CPU and battery consumption.
+}
+
+void
+$(baseName)App::OnLowMemory(void)
+{
+ // TODO: Free unnecessary resources or close the application.
+}
+
+void
+$(baseName)App::OnBatteryLevelChanged(BatteryLevel batteryLevel)
+{
+ // TODO: Handle all battery level changes here.
+ // Stop using multimedia features (such as camera and mp3 playback) if the battery level is CRITICAL.
+}
+
+void
+$(baseName)App::OnScreenOn(void)
+{
+ // TODO: Retrieve the released resources or resume the operations that were paused or stopped in the OnScreenOff() event handler.
+}
+
+void
+$(baseName)App::OnScreenOff(void)
+{
+ // TODO: Release resources (such as 3D, media, and sensors) to allow the device to enter the sleep mode
+ // to save the battery (unless you have a good reason to do otherwise).
+ // Only perform quick operations in this event handler. Any lengthy operations can be risky;
+ // for example, invoking a long asynchronous method within this event handler can cause problems
+ // because the device can enter the sleep mode before the callback is invoked.
+
+}
diff --git a/Template/Tizen Native/Form-based Application/scenebasedformapp/project/src/AppEntry.cpp b/Template/Tizen Native/Form-based Application/scenebasedformapp/project/src/AppEntry.cpp
new file mode 100644
index 0000000..33a3c6f
--- /dev/null
+++ b/Template/Tizen Native/Form-based Application/scenebasedformapp/project/src/AppEntry.cpp
@@ -0,0 +1,37 @@
+//
+//This file contains the Tizen application entry point by default. You do not need to modify this file.
+//
+#include <new>
+#include "$(baseName)App.h"
+
+using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif // __cplusplus
+
+//
+// The framework calls this method as the entry method of the Tizen application.
+//
+_EXPORT_ int
+OspMain(int argc, char* pArgv[])
+{
+ AppLog("Application started.");
+ ArrayList args(SingleObjectDeleter);
+ args.Construct();
+ for (int i = 0; i < argc; i++)
+ {
+ args.Add(new (std::nothrow) String(pArgv[i]));
+ }
+
+ result r = Tizen::App::UiApp::Execute($(baseName)App::CreateInstance, &args);
+ TryLog(r == E_SUCCESS, "[%s] Application execution failed.", GetErrorMessage(r));
+ AppLog("Application finished.");
+
+ return static_cast< int >(r);
+}
+#ifdef __cplusplus
+}
+#endif // __cplusplus
diff --git a/Template/Tizen Native/Form-based Application/scenebasedformapp/project/src/AppFormFactory.cpp b/Template/Tizen Native/Form-based Application/scenebasedformapp/project/src/AppFormFactory.cpp
new file mode 100644
index 0000000..5347903
--- /dev/null
+++ b/Template/Tizen Native/Form-based Application/scenebasedformapp/project/src/AppFormFactory.cpp
@@ -0,0 +1,35 @@
+#include <new>
+#include "$(baseName)FormFactory.h"
+#include "$(baseName)MainForm.h"
+#include "AppResourceId.h"
+
+using namespace Tizen::Ui::Scenes;
+
+
+$(baseName)FormFactory::$(baseName)FormFactory(void)
+{
+}
+
+$(baseName)FormFactory::~$(baseName)FormFactory(void)
+{
+}
+
+Tizen::Ui::Controls::Form*
+$(baseName)FormFactory::CreateFormN(const Tizen::Base::String& formId, const Tizen::Ui::Scenes::SceneId& sceneId)
+{
+ SceneManager* pSceneManager = SceneManager::GetInstance();
+ AppAssert(pSceneManager);
+ Tizen::Ui::Controls::Form* pNewForm = null;
+
+ if (formId == IDL_FORM)
+ {
+ $(baseName)MainForm* pForm = new (std::nothrow) $(baseName)MainForm();
+ TryReturn(pForm != null, null, "The memory is insufficient.");
+ pForm->Initialize();
+ pSceneManager->AddSceneEventListener(sceneId, *pForm);
+ pNewForm = pForm;
+ }
+ // TODO: Add your form creation code here
+
+ return pNewForm;
+}
diff --git a/Template/Tizen Native/Form-based Application/scenebasedformapp/project/src/AppFrame.cpp b/Template/Tizen Native/Form-based Application/scenebasedformapp/project/src/AppFrame.cpp
new file mode 100644
index 0000000..49447ea
--- /dev/null
+++ b/Template/Tizen Native/Form-based Application/scenebasedformapp/project/src/AppFrame.cpp
@@ -0,0 +1,44 @@
+#include "$(baseName)Frame.h"
+#include "$(baseName)FormFactory.h"
+#include "$(baseName)PanelFactory.h"
+#include "AppResourceId.h"
+
+using namespace Tizen::Base;
+using namespace Tizen::Ui;
+using namespace Tizen::Ui::Controls;
+using namespace Tizen::Ui::Scenes;
+
+$(baseName)Frame::$(baseName)Frame(void)
+{
+}
+
+$(baseName)Frame::~$(baseName)Frame(void)
+{
+}
+
+result
+$(baseName)Frame::OnInitializing(void)
+{
+ // Prepare Scene management.
+ SceneManager* pSceneManager = SceneManager::GetInstance();
+ static $(baseName)FormFactory formFactory;
+ static $(baseName)PanelFactory panelFactory;
+ pSceneManager->RegisterFormFactory(formFactory);
+ pSceneManager->RegisterPanelFactory(panelFactory);
+ pSceneManager->RegisterScene(L"workflow");
+
+ // Go to the scene.
+ result r = pSceneManager->GoForward(SceneTransitionId(IDSCNT_MAIN_SCENE));
+
+ // TODO: Add your frame initialization code here.
+ return r;
+}
+
+result
+$(baseName)Frame::OnTerminating(void)
+{
+ result r = E_SUCCESS;
+
+ // TODO: Add your frame termination code here.
+ return r;
+}
diff --git a/Template/Tizen Native/Form-based Application/scenebasedformapp/project/src/AppMainForm.cpp b/Template/Tizen Native/Form-based Application/scenebasedformapp/project/src/AppMainForm.cpp
new file mode 100644
index 0000000..4b5c5e9
--- /dev/null
+++ b/Template/Tizen Native/Form-based Application/scenebasedformapp/project/src/AppMainForm.cpp
@@ -0,0 +1,98 @@
+#include "$(baseName)MainForm.h"
+#include "AppResourceId.h"
+
+using namespace Tizen::Base;
+using namespace Tizen::App;
+using namespace Tizen::Ui;
+using namespace Tizen::Ui::Controls;
+using namespace Tizen::Ui::Scenes;
+
+
+$(baseName)MainForm::$(baseName)MainForm(void)
+{
+}
+
+$(baseName)MainForm::~$(baseName)MainForm(void)
+{
+}
+
+bool
+$(baseName)MainForm::Initialize(void)
+{
+ result r = Construct(IDL_FORM);
+ TryReturn(r == E_SUCCESS, false, "Failed to construct form");
+
+ return true;
+}
+
+result
+$(baseName)MainForm::OnInitializing(void)
+{
+ result r = E_SUCCESS;
+
+ // TODO: Add your initialization code here
+
+ // Setup back event listener
+ SetFormBackEventListener(this);
+
+ // Get a button via resource ID
+ Tizen::Ui::Controls::Button* pButtonOk = static_cast< Button* >(GetControl(IDC_BUTTON_OK));
+ if (pButtonOk != null)
+ {
+ pButtonOk->SetActionId(IDA_BUTTON_OK);
+ pButtonOk->AddActionEventListener(*this);
+ }
+
+ return r;
+}
+
+result
+$(baseName)MainForm::OnTerminating(void)
+{
+ result r = E_SUCCESS;
+
+ // TODO: Add your termination code here
+ return r;
+}
+
+void
+$(baseName)MainForm::OnActionPerformed(const Tizen::Ui::Control& source, int actionId)
+{
+ SceneManager* pSceneManager = SceneManager::GetInstance();
+ AppAssert(pSceneManager);
+
+ switch(actionId)
+ {
+ case IDA_BUTTON_OK:
+ AppLog("OK Button is clicked!");
+ break;
+
+ default:
+ break;
+ }
+}
+
+void
+$(baseName)MainForm::OnFormBackRequested(Tizen::Ui::Controls::Form& source)
+{
+ UiApp* pApp = UiApp::GetInstance();
+ AppAssert(pApp);
+ pApp->Terminate();
+}
+
+void
+$(baseName)MainForm::OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previousSceneId,
+ const Tizen::Ui::Scenes::SceneId& currentSceneId, Tizen::Base::Collection::IList* pArgs)
+{
+ // TODO: Activate your scene here.
+
+}
+
+void
+$(baseName)MainForm::OnSceneDeactivated(const Tizen::Ui::Scenes::SceneId& currentSceneId,
+ const Tizen::Ui::Scenes::SceneId& nextSceneId)
+{
+ // TODO: Deactivate your scene here.
+
+}
+
diff --git a/Template/Tizen Native/Form-based Application/scenebasedformapp/project/src/AppPanelFactory.cpp b/Template/Tizen Native/Form-based Application/scenebasedformapp/project/src/AppPanelFactory.cpp
new file mode 100644
index 0000000..7514932
--- /dev/null
+++ b/Template/Tizen Native/Form-based Application/scenebasedformapp/project/src/AppPanelFactory.cpp
@@ -0,0 +1,23 @@
+#include "$(baseName)PanelFactory.h"
+
+using namespace Tizen::Ui::Scenes;
+
+
+$(baseName)PanelFactory::$(baseName)PanelFactory(void)
+{
+}
+
+$(baseName)PanelFactory::~$(baseName)PanelFactory(void)
+{
+}
+
+Tizen::Ui::Controls::Panel*
+$(baseName)PanelFactory::CreatePanelN(const Tizen::Base::String& panelId, const Tizen::Ui::Scenes::SceneId& sceneId)
+{
+ SceneManager* pSceneManager = SceneManager::GetInstance();
+ AppAssert(pSceneManager);
+ Tizen::Ui::Controls::Panel* pNewPanel = null;
+
+ // TODO: Add your panel creation code here
+ return pNewPanel;
+}
diff --git a/Template/Tizen Native/Form-based Application/scenebasedformapp/project/src/AppResourceId.cpp b/Template/Tizen Native/Form-based Application/scenebasedformapp/project/src/AppResourceId.cpp
new file mode 100644
index 0000000..f935b4d
--- /dev/null
+++ b/Template/Tizen Native/Form-based Application/scenebasedformapp/project/src/AppResourceId.cpp
@@ -0,0 +1,5 @@
+#include "AppResourceId.h"
+
+const wchar_t* IDL_FORM = L"IDL_FORM";
+const wchar_t* IDSCNT_MAIN_SCENE = L"IDSCNT_MAIN_SCENE";
+const wchar_t* IDC_BUTTON_OK = L"IDC_BUTTON_OK";
diff --git a/Template/Tizen Native/Form-based Application/scenebasedformapp/sample.xml b/Template/Tizen Native/Form-based Application/scenebasedformapp/sample.xml
new file mode 100644
index 0000000..a3626c0
--- /dev/null
+++ b/Template/Tizen Native/Form-based Application/scenebasedformapp/sample.xml
@@ -0,0 +1,98 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<template>
+
+ <slp-property>
+ <property-group>
+ <sample-name>With SceneManager</sample-name>
+ <category>Application Template</category>
+ <sdk-version>1.00</sdk-version>
+ <project-type>org.tizen.nativecpp.buildArtefactType.app</project-type>
+ <sample-description>description.xml</sample-description>
+ </property-group>
+ </slp-property>
+
+ <process type="org.tizen.nativeappcommon.TizenCopyFolder">
+ <simple name="projectName" value="$(projectName)"/>
+ <simple name="folderPath" value="project"/>
+ <complex-array name="replaceableFiles">
+ <element>
+ <simple name="sourcePath" value="src/App.cpp"/>
+ <simple name="targetPath" value="src/$(baseName)App.cpp"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="src/AppEntry.cpp"/>
+ <simple name="targetPath" value="src/$(baseName)Entry.cpp"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="src/AppFormFactory.cpp"/>
+ <simple name="targetPath" value="src/$(baseName)FormFactory.cpp"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="src/AppFrame.cpp"/>
+ <simple name="targetPath" value="src/$(baseName)Frame.cpp"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="src/AppMainForm.cpp"/>
+ <simple name="targetPath" value="src/$(baseName)MainForm.cpp"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="src/AppPanelFactory.cpp"/>
+ <simple name="targetPath" value="src/$(baseName)PanelFactory.cpp"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="src/AppResourceId.cpp"/>
+ <simple name="targetPath" value="src/AppResourceId.cpp"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="inc/App.h"/>
+ <simple name="targetPath" value="inc/$(baseName)App.h"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="inc/AppMainForm.h"/>
+ <simple name="targetPath" value="inc/$(baseName)MainForm.h"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="inc/AppFormFactory.h"/>
+ <simple name="targetPath" value="inc/$(baseName)FormFactory.h"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="inc/AppFrame.h"/>
+ <simple name="targetPath" value="inc/$(baseName)Frame.h"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="inc/AppPanelFactory.h"/>
+ <simple name="targetPath" value="inc/$(baseName)PanelFactory.h"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="inc/AppResourceId.h"/>
+ <simple name="targetPath" value="inc/AppResourceId.h"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="manifest.xml"/>
+ <simple name="targetPath" value="manifest.xml"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ </complex-array>
+ </process>
+ <process type="org.tizen.nativecpp.SetDefaultFrameworks">
+ <simple name="projectName" value="$(projectName)"/>
+ <complex-array name="frameworkList">
+ <element>
+ <simple name="framework" value="osp"/>
+ </element>
+ </complex-array>
+ </process>
+</template>
diff --git a/Template/Tizen Native/Form-based Application/scenebasedformapp/screenshot.png b/Template/Tizen Native/Form-based Application/scenebasedformapp/screenshot.png
new file mode 100644
index 0000000..6a3ac1f
--- /dev/null
+++ b/Template/Tizen Native/Form-based Application/scenebasedformapp/screenshot.png
Binary files differ
diff --git a/Template/Tizen Native/IME Application/imeapp/description.xml b/Template/Tizen Native/IME Application/imeapp/description.xml
new file mode 100644
index 0000000..48612b2
--- /dev/null
+++ b/Template/Tizen Native/IME Application/imeapp/description.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8"?>
+<?xml-stylesheet type="text/xsl" href="../../../../description.xsl"?>
+
+<Overview version="0.17.1">
+ <SampleName>Ime Application</SampleName>
+ <SampleVersion>1.0</SampleVersion>
+ <Preview>screenshot.png</Preview>
+ <Description>
+ This template is suitable for creating an IME application project based on a form and requires a partner level privilege to run the application. For more information, see Overview. Also, the template contains the basic application functionality as well as the functionality for drawing a form on the device screen.
+ </Description>
+</Overview>
diff --git a/Template/Tizen Native/IME Application/imeapp/project/inc/App.h b/Template/Tizen Native/IME Application/imeapp/project/inc/App.h
new file mode 100644
index 0000000..f6e4d69
--- /dev/null
+++ b/Template/Tizen Native/IME Application/imeapp/project/inc/App.h
@@ -0,0 +1,98 @@
+#ifndef _$(baseNameUpper)_APP_H_
+#define _$(baseNameUpper)_APP_H_
+
+$(pcheader)
+
+// The $(baseName)App class must inherit from the UiApp class,
+// which provides the basic features necessary to define a UI application.
+
+class $(baseName)App
+ : public Tizen::App::UiApp
+ , public Tizen::System::IScreenEventListener
+ , public Tizen::Ui::Ime::IInputMethodListener
+ , public Tizen::Ui::Ime::IInputMethodProviderF
+{
+public:
+ // The platform calls this method to create the application instance.
+ static Tizen::App::UiApp* CreateInstance(void);
+
+ $(baseName)App(void);
+ virtual ~$(baseName)App(void);
+
+private:
+ // Called when the UI application is initializing.
+ virtual bool OnAppInitializing(Tizen::App::AppRegistry& appRegistry);
+
+ // Called when the UI application initialization is finished.
+ virtual bool OnAppInitialized(void);
+
+ // Called when the END key is pressed to terminate the UI application (if the device has the END key).
+ virtual bool OnAppWillTerminate(void);
+
+ // Called when the UI application is terminating.
+ virtual bool OnAppTerminating(Tizen::App::AppRegistry& appRegistry, bool forcedTermination = false);
+
+ // Called when the UI application's frame moves to the foreground.
+ virtual void OnForeground(void);
+
+ // Called when the UI application's frame is moved from the foreground to the background.
+ virtual void OnBackground(void);
+
+ // Called when system memory is no longer sufficient to run the UI application. Clean up unnecessary resources to release memory, or terminate the application.
+ virtual void OnLowMemory(void);
+
+ // Called when the battery level changes.
+ virtual void OnBatteryLevelChanged(Tizen::System::BatteryLevel batteryLevel);
+
+ // Called when the screen switches on.
+ virtual void OnScreenOn(void);
+
+ // Called when the screen switches off.
+ virtual void OnScreenOff(void);
+
+
+ // Called when the cursor position is changed.
+ virtual void OnCursorPositionChanged(int position);
+
+ // Called when the opaque command is received.
+ virtual void OnOpaqueCommandReceived(const Tizen::Base::String& command);
+
+ // Called when the surrounding text is received.
+ virtual void OnSurroundingTextReceived(const Tizen::Base::String& text, int cursorPosition);
+
+
+ // Called when the enter key action is requested.
+ virtual Tizen::Ui::InputPanelAction GetEnterKeyAction(void);
+
+ // Called when the input panel bounds are requested.
+ virtual Tizen::Graphics::FloatRectangle GetInputPanelBounds(void);
+
+ // Called when the input panel style is requested.
+ virtual Tizen::Ui::InputPanelStyle GetInputPanelStyle(void);
+
+ // Called when the language is requested.
+ virtual Tizen::Locales::Locale GetLanguage(void);
+
+ // Called when setting the enable state of the capital mode.
+ virtual void SetCapsModeEnabled(bool enable);
+
+ // Called when setting the enter key action.
+ virtual void SetEnterKeyAction(Tizen::Ui::InputPanelAction action);
+
+ // Called when setting the enable state of the enter key action.
+ virtual void SetEnterKeyActionEnabled(bool enable);
+
+ // Called when setting the input panel style.
+ virtual void SetInputPanelStyle(Tizen::Ui::InputPanelStyle style);
+
+ // Called when hiding the input panel is requested.
+ virtual void HideInputPanel(void);
+
+ // Called when the enable state of the enter key action is requested.
+ virtual bool IsEnterKeyActionEnabled(void);
+
+ // Called when showing the input panel is requested.
+ virtual void ShowInputPanel(void);
+};
+
+#endif // _$(baseNameUpper)_APP_H_
diff --git a/Template/Tizen Native/IME Application/imeapp/project/inc/AppForm.h b/Template/Tizen Native/IME Application/imeapp/project/inc/AppForm.h
new file mode 100644
index 0000000..ad3c18b
--- /dev/null
+++ b/Template/Tizen Native/IME Application/imeapp/project/inc/AppForm.h
@@ -0,0 +1,62 @@
+#ifndef _$(baseNameUpper)_FORM_H_
+#define _$(baseNameUpper)_FORM_H_
+
+$(pcheader)
+
+class $(baseName)Form
+ : public Tizen::Ui::Controls::Form
+ , public Tizen::Ui::IActionEventListener
+ , public Tizen::Ui::IOrientationEventListener
+{
+public:
+ $(baseName)Form(void);
+ virtual ~$(baseName)Form(void);
+ bool Initialize(void);
+
+private:
+ virtual result OnInitializing(void);
+ virtual result OnTerminating(void);
+
+ virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);
+ virtual void OnOrientationChanged(const Tizen::Ui::Control& source, Tizen::Ui::OrientationStatus orientationStatus);
+
+ void SetButtonIcon(const Tizen::Base::String& buttonName, const Tizen::Base::String& iconName);
+
+private:
+ float __logicalResolutionHeight;
+ float __frameHeight;
+ float __frameY;
+ float __frameWidthHorizontal;
+
+ static const int FORM_LAYOUT_ROW_COUNT = 4;
+ static const int FORM_LAYOUT_COLUMN_COUNT = 1;
+
+ static const int FIRST_ROW_PANEL_LAYOUT_ROW_COUNT = 1;
+ static const int FIRST_ROW_PANEL_LAYOUT_COLUMN_COUNT = 10;
+
+ static const int SECOND_ROW_PANEL_LAYOUT_ROW_COUNT = 1;
+ static const int SECOND_ROW_PANEL_LAYOUT_COLUMN_COUNT = 9;
+
+ static const int THIRD_ROW_PANEL_LAYOUT_ROW_COUNT = 1;
+ static const int THIRD_ROW_PANEL_LAYOUT_COLUMN_COUNT = 9;
+
+ static const int FORTH_ROW_PANEL_LAYOUT_ROW_COUNT = 1;
+ static const int FORTH_ROW_PANEL_LAYOUT_COLUMN_COUNT = 4;
+
+ enum IdActionButton
+ {
+ IDA_BUTTON_Q = 0,
+ IDA_BUTTON_W,
+ IDA_BUTTON_E,
+ IDA_BUTTON_R,
+ IDA_BUTTON_T,
+ IDA_BUTTON_Y,
+ IDA_BUTTON_CLEAR,
+ IDA_BUTTON_SETTING,
+ IDA_BUTTON_SPACE,
+ IDA_BUTTON_ENTER,
+ IDA_BUTTON_MAX
+ };
+};
+
+#endif //_$(baseNameUpper)_FORM_H_
diff --git a/Template/Tizen Native/IME Application/imeapp/project/inc/AppFrame.h b/Template/Tizen Native/IME Application/imeapp/project/inc/AppFrame.h
new file mode 100644
index 0000000..ddbdd94
--- /dev/null
+++ b/Template/Tizen Native/IME Application/imeapp/project/inc/AppFrame.h
@@ -0,0 +1,24 @@
+#ifndef _$(baseNameUpper)_FRAME_H_
+#define _$(baseNameUpper)_FRAME_H_
+
+$(pcheader)
+
+// Declare static variables related to the frame bounds.
+static const float FRAME_WIDTH = 720.0f;
+static const float FRAME_HEIGHT_RATIO = 0.4125f;
+static const float FRAME_Y_HORIZONTAL = 352.0f;
+static const float FRAME_HEIGHT_HORIZONTAL = 368.0f;
+
+class $(baseName)Frame
+ : public Tizen::Ui::Controls::Frame
+{
+public:
+ $(baseName)Frame(void);
+ virtual ~$(baseName)Frame(void);
+
+private:
+ virtual result OnInitializing(void);
+ virtual result OnTerminating(void);
+};
+
+#endif //_$(baseNameUpper)_FRAME_H_
diff --git a/Template/Tizen Native/IME Application/imeapp/project/inc/tizenx.h b/Template/Tizen Native/IME Application/imeapp/project/inc/tizenx.h
new file mode 100644
index 0000000..eab2d0f
--- /dev/null
+++ b/Template/Tizen Native/IME Application/imeapp/project/inc/tizenx.h
@@ -0,0 +1,13 @@
+// precompiled header file
+#ifndef TIZENX_H_
+#define TIZENX_H_
+
+#include <FApp.h>
+#include <FBase.h>
+#include <FGraphics.h>
+#include <FSystem.h>
+#include <FUi.h>
+#include <FUiIme.h>
+#include <gl.h>
+
+#endif
diff --git a/Template/Tizen Native/IME Application/imeapp/project/manifest.xml b/Template/Tizen Native/IME Application/imeapp/project/manifest.xml
new file mode 100644
index 0000000..e5272f8
--- /dev/null
+++ b/Template/Tizen Native/IME Application/imeapp/project/manifest.xml
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<Manifest xmlns="http://schemas.tizen.org/2012/12/manifest">
+ <Id>$(manifestAppId)</Id>
+ <Version>1.0.0</Version>
+ <Type>C++App</Type>
+ <Requirements>
+ <Feature Name="http://tizen.org/feature/platform.native.api.version">2.2</Feature>
+ <Feature Name="http://tizen.org/feature/screen.size.normal">true</Feature>
+ </Requirements>
+ <Apps>
+ <ApiVersion>2.2</ApiVersion>
+ <Privileges>
+ <Privilege>http://tizen.org/privilege/appsetting</Privilege>
+ <Privilege>http://tizen.org/privilege/application.launch</Privilege>
+ <Privilege>http://tizen.org/privilege/ime</Privilege>
+ </Privileges>
+ <UiApp LaunchingHistoryVisible="False" Main="True" Name="$(projectName)" MenuIconVisible="False">
+ <Categories>
+ <Category>http://tizen.org/category/ime</Category>
+ </Categories>
+ <DisplayNames>
+ <DisplayName Locale="eng-GB">$(projectName)</DisplayName>
+ </DisplayNames>
+ <Icons>
+ <Icon Section="MainMenu" >mainmenu.png</Icon>
+ </Icons>
+ <UiScalability CoordinateSystem="Logical" BaseScreenSize="Normal" LogicalCoordinate="720"></UiScalability>
+ <UiTheme SystemTheme="White"></UiTheme>
+ <Ime>
+ <Uuid>$(uuid)</Uuid>
+ <Languages>
+ <Language>eng-US</Language>
+ </Languages>
+ </Ime>
+ </UiApp>
+ </Apps>
+</Manifest>
diff --git a/Template/Tizen Native/IME Application/imeapp/project/res/screen-density-xhigh/icon_clear.png b/Template/Tizen Native/IME Application/imeapp/project/res/screen-density-xhigh/icon_clear.png
new file mode 100644
index 0000000..11f0bc8
--- /dev/null
+++ b/Template/Tizen Native/IME Application/imeapp/project/res/screen-density-xhigh/icon_clear.png
Binary files differ
diff --git a/Template/Tizen Native/IME Application/imeapp/project/res/screen-density-xhigh/icon_setting.png b/Template/Tizen Native/IME Application/imeapp/project/res/screen-density-xhigh/icon_setting.png
new file mode 100644
index 0000000..94f61f5
--- /dev/null
+++ b/Template/Tizen Native/IME Application/imeapp/project/res/screen-density-xhigh/icon_setting.png
Binary files differ
diff --git a/Template/Tizen Native/IME Application/imeapp/project/setting/setting.1.0.0.xml b/Template/Tizen Native/IME Application/imeapp/project/setting/setting.1.0.0.xml
new file mode 100755
index 0000000..d84139a
--- /dev/null
+++ b/Template/Tizen Native/IME Application/imeapp/project/setting/setting.1.0.0.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<settings>
+ <setting id="IDP_KEYBOARD" main="true" title="Keyboard settings">
+ <group id="IDG_GROUP01" title="Group01"/>
+ <label id="IDL_LABEL" title="Setup your settings"/>
+ <group id="IDG_GROUP02" title="Group02"/>
+ <integer id="IDI_INTEGER01" title="Integer01" min="0" max="100" value="0"/>
+ <integer id="IDI_INTEGER02" title="Integer02" min="0" max="100" value="0"/>
+ <group id="IDG_GROUP03" title="Group03"/>
+ <bool id="IDB_BOOL01" title="Bool01" value="false"/>
+ <bool id="IDB_BOOL02" title="Bool02" value="false"/>
+ <group id="IDG_GROUP04" title="Group04"/>
+ <expandlist id="IDT_EXPANDLIST" title="Expandlist" value="Expanditem01">
+ <expanditem id="IDT_EXPANDITEM01" title="Expanditem01" type="radio"/>
+ <expanditem id="IDT_EXPANDITEM02" title="Expanditem02" type="radio"/>
+ </expandlist>
+ </setting>
+</settings>
diff --git a/Template/Tizen Native/IME Application/imeapp/project/shared/res/screen-density-xhigh/mainmenu.png b/Template/Tizen Native/IME Application/imeapp/project/shared/res/screen-density-xhigh/mainmenu.png
new file mode 100755
index 0000000..9765b1b
--- /dev/null
+++ b/Template/Tizen Native/IME Application/imeapp/project/shared/res/screen-density-xhigh/mainmenu.png
Binary files differ
diff --git a/Template/Tizen Native/IME Application/imeapp/project/src/App.cpp b/Template/Tizen Native/IME Application/imeapp/project/src/App.cpp
new file mode 100644
index 0000000..a253bf4
--- /dev/null
+++ b/Template/Tizen Native/IME Application/imeapp/project/src/App.cpp
@@ -0,0 +1,230 @@
+#include <new>
+
+#include "$(baseName)App.h"
+#include "$(baseName)Frame.h"
+
+using namespace Tizen::App;
+using namespace Tizen::Base;
+using namespace Tizen::Graphics;
+using namespace Tizen::Locales;
+using namespace Tizen::System;
+using namespace Tizen::Ui;
+using namespace Tizen::Ui::Controls;
+using namespace Tizen::Ui::Ime;
+
+$(baseName)App::$(baseName)App(void)
+{
+}
+
+$(baseName)App::~$(baseName)App(void)
+{
+}
+
+UiApp*
+$(baseName)App::CreateInstance(void)
+{
+ // Create the application instance through the constructor.
+ return new(std::nothrow) $(baseName)App();
+}
+
+bool
+$(baseName)App::OnAppInitializing(AppRegistry& appRegistry)
+{
+ // TODO: Initialize Frame and App specific data.
+ // The permanent data and context of the application can be obtained from the application registry (appRegistry).
+ //
+ // If this method is successful, return true; otherwise, return false and the application is terminated.
+
+ // Uncomment the following statement to listen to the screen on and off events:
+ // PowerManager::SetScreenEventListener(*this);
+
+ // TODO: Add your application initialization code here.
+
+ return true;
+}
+
+bool
+$(baseName)App::OnAppInitialized(void)
+{
+ // Create the application frame.
+ $(baseName)Frame* p$(baseName)Frame = new(std::nothrow) $(baseName)Frame();
+ p$(baseName)Frame->Construct();
+
+ p$(baseName)Frame->SetName(L"$(baseName)");
+ p$(baseName)Frame->SetShowMode(FRAME_SHOW_MODE_PARTIAL_SCREEN);
+
+ AddFrame(*p$(baseName)Frame);
+
+ // Set a listener and a provider of the input method.
+ InputMethod* pInputMethod = InputMethod::GetInstance();
+
+ pInputMethod->SetInputMethodListener(this);
+ pInputMethod->SetInputMethodProviderF(this);
+
+ return true;
+}
+
+bool
+$(baseName)App::OnAppWillTerminate(void)
+{
+ return true;
+}
+
+
+bool
+$(baseName)App::OnAppTerminating(AppRegistry& appRegistry, bool forcedTermination)
+{
+ // TODO: Deallocate all resources allocated by the application.
+ // The permanent data and context of the application can be saved through the application registry (appRegistry).
+
+ return true;
+}
+
+void
+$(baseName)App::OnForeground(void)
+{
+ // TODO: Start or resume drawing when the application is moved to the foreground.
+
+ AppLogTag("$(baseName)", "The application has been moved to the foreground.");
+}
+
+void
+$(baseName)App::OnBackground(void)
+{
+ // TODO: Stop drawing when the application is moved to the background to save the CPU and battery consumption.
+
+ AppLogTag("$(baseName)", "The application has been moved to the background.");
+}
+
+void
+$(baseName)App::OnLowMemory(void)
+{
+ // TODO: Free unnecessary resources or close the application.
+}
+
+void
+$(baseName)App::OnBatteryLevelChanged(BatteryLevel batteryLevel)
+{
+ // TODO: Handle all battery level changes here.
+ // Stop using multimedia features (such as camera and mp3 playback) if the battery level is CRITICAL.
+}
+
+void
+$(baseName)App::OnScreenOn(void)
+{
+ // TODO: Retrieve the released resources or resume the operations that were paused or stopped in the OnScreenOff() event handler.
+}
+
+void
+$(baseName)App::OnScreenOff(void)
+{
+ // TODO: Release resources (such as 3D, media, and sensors) to allow the device to enter the sleep mode to save the battery (unless you have a good reason to do otherwise).
+ // Only perform quick operations in this event handler. Any lengthy operations can be risky;
+ // for example, invoking a long asynchronous method within this event handler can cause problems
+ // because the device can enter the sleep mode before the callback is invoked.
+}
+
+void
+$(baseName)App::OnCursorPositionChanged(int position)
+{
+ // TODO: Figure out the cursor position and manage your own text buffer.
+}
+
+void
+$(baseName)App::OnOpaqueCommandReceived(const String& command)
+{
+ // TODO: Figure out the opaque command and operate according to the rules engaged with the input field.
+}
+
+void
+$(baseName)App::OnSurroundingTextReceived(const String& text, int cursorPosition)
+{
+ // TODO: Figure out the surrounding text that you requested.
+}
+
+InputPanelAction
+$(baseName)App::GetEnterKeyAction(void)
+{
+ // TODO: Return the current enter key action of the input panel.
+
+ return INPUT_PANEL_ACTION_ENTER;
+}
+
+FloatRectangle
+$(baseName)App::GetInputPanelBounds(void)
+{
+ // TODO: Return the position and the size of the input panel.
+
+ return FloatRectangle();
+}
+
+InputPanelStyle
+$(baseName)App::GetInputPanelStyle(void)
+{
+ // TODO: Return the style of the input panel.
+
+ return INPUT_PANEL_STYLE_NORMAL;
+}
+
+Locale
+$(baseName)App::GetLanguage(void)
+{
+ return Locale(LANGUAGE_ENG, COUNTRY_US);
+}
+
+void
+$(baseName)App::SetCapsModeEnabled(bool enable)
+{
+ // TODO: Set the enable state of the capital mode.
+}
+
+void
+$(baseName)App::SetEnterKeyAction(InputPanelAction action)
+{
+ // TODO: Set the enter key action.
+}
+
+void
+$(baseName)App::SetEnterKeyActionEnabled(bool enable)
+{
+ // TODO: Set the enable state of the enter key action.
+}
+
+void
+$(baseName)App::SetInputPanelStyle(InputPanelStyle style)
+{
+ // TODO: Set the style of the input panel.
+}
+
+void
+$(baseName)App::HideInputPanel(void)
+{
+ // TODO: Hide the input panel.
+
+ AppLogTag("$(baseName)", "The platform requests the application to hide the input panel.");
+
+ $(baseName)Frame* p$(baseName)Frame = static_cast< $(baseName)Frame* >(GetFrame("$(projectName)"));
+
+ p$(baseName)Frame->SetShowState(false);
+}
+
+bool
+$(baseName)App::IsEnterKeyActionEnabled(void)
+{
+ // TODO: Return the enable state of the enter key action.
+
+ return false;
+}
+
+void
+$(baseName)App::ShowInputPanel(void)
+{
+ // TODO: Show the input panel.
+
+ AppLogTag("$(baseName)", "The platform requests the application to show the input panel.");
+
+ $(baseName)Frame* p$(baseName)Frame = static_cast< $(baseName)Frame* >(GetFrame("$(projectName)"));
+
+ p$(baseName)Frame->SetShowState(true);
+ p$(baseName)Frame->Show();
+}
diff --git a/Template/Tizen Native/IME Application/imeapp/project/src/AppEntry.cpp b/Template/Tizen Native/IME Application/imeapp/project/src/AppEntry.cpp
new file mode 100644
index 0000000..3c4855c
--- /dev/null
+++ b/Template/Tizen Native/IME Application/imeapp/project/src/AppEntry.cpp
@@ -0,0 +1,36 @@
+// This file contains the Tizen application entry point by default. You do not need to modify this file.
+#include <new>
+
+#include "$(baseName)App.h"
+
+using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif // __cplusplus
+
+_EXPORT_ int OspMain(int argc, char* pArgv[]);
+
+// The framework calls this method as the entry method of the Tizen application.
+int
+OspMain(int argc, char* pArgv[])
+{
+ AppLog("Application started.");
+ ArrayList args(SingleObjectDeleter);
+ args.Construct();
+ for (int i = 0; i < argc; i++)
+ {
+ args.Add(new(std::nothrow) String(pArgv[i]));
+ }
+
+ result r = Tizen::App::UiApp::Execute($(baseName)App::CreateInstance, &args);
+ TryLog(r == E_SUCCESS, "[%s] Application execution failed.", GetErrorMessage(r));
+ AppLog("Application finished.");
+
+ return static_cast< int >(r);
+}
+#ifdef __cplusplus
+}
+#endif // __cplusplus
diff --git a/Template/Tizen Native/IME Application/imeapp/project/src/AppForm.cpp b/Template/Tizen Native/IME Application/imeapp/project/src/AppForm.cpp
new file mode 100644
index 0000000..01e45be
--- /dev/null
+++ b/Template/Tizen Native/IME Application/imeapp/project/src/AppForm.cpp
@@ -0,0 +1,363 @@
+#include <new>
+
+#include "$(baseName)Form.h"
+#include "$(baseName)Frame.h"
+
+using namespace Tizen::App;
+using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
+using namespace Tizen::Graphics;
+using namespace Tizen::Ui;
+using namespace Tizen::Ui::Controls;
+using namespace Tizen::Ui::Ime;
+
+static const int MAX_BUTTON_COUNT = 32;
+static const int MAX_BUTTON_ID_COUNT = 10;
+
+static const String BUTTON_ID[MAX_BUTTON_ID_COUNT] = {L"IDC_BUTTON_Q", L"IDC_BUTTON_W", L"IDC_BUTTON_E",
+ L"IDC_BUTTON_R", L"IDC_BUTTON_T", L"IDC_BUTTON_Y",
+ L"IDC_BUTTON_CLEAR", L"IDC_BUTTON_SETTING", L"IDC_BUTTON_SPACE",
+ L"IDC_BUTTON_ENTER"};
+
+static const String BUTTON_LABEL[MAX_BUTTON_ID_COUNT] = {L"Q", L"W", L"E", L"R", L"T", L"Y", L"", L"", L"Space", L"Return"};
+
+static const Color PANEL_COLOR = Color(0xE0, 0xE0, 0xE0);
+static const Color BUTTON_COLOR = Color(0xFF, 0xFF, 0xFF);
+static const Color BUTTON_TEXT_COLOR = Color(0x00, 0x00, 0x00);
+static const Color FUNCTION_BUTTON_COLOR = Color(0xB0, 0xB0, 0xB0);
+static const Color FUNCTION_BUTTON_TEXT_COLOR = Color(0xFF, 0xFF, 0xFF);
+
+static const int BUTTON_MARGIN_LEFT = 6;
+static const int FUNCTION_BUTTON_MARGIN_LEFT = 27;
+static const int BUTTON_MARGIN_RIGHT = 6;
+static const int BUTTON_MARGIN_TOP = 10;
+static const int BUTTON_MARGIN_BOTTOM = 10;
+
+static const FloatRectangle BUTTON_BOUNDS[MAX_BUTTON_COUNT] =
+{
+ FloatRectangle(0.0f, 0.0f, 72.0f, 132.0f),
+ FloatRectangle(72.0f, 0.0f, 72.0f, 132.0f),
+ FloatRectangle(144.0f, 0.0f, 72.0f, 132.0f),
+ FloatRectangle(216.0f, 0.0f, 72.0f, 132.0f),
+ FloatRectangle(288.0f, 0.0f, 72.0f, 132.0f),
+ FloatRectangle(360.0f, 0.0f, 72.0f, 132.0f),
+ FloatRectangle(432.0f, 0.0f, 72.0f, 132.0f),
+ FloatRectangle(504.0f, 0.0f, 72.0f, 132.0f),
+ FloatRectangle(576.0f, 0.0f, 72.0f, 132.0f),
+ FloatRectangle(648.0f, 0.0f, 72.0f, 132.0f),
+
+ FloatRectangle(0.0f, 0.0f, 108.0f, 132.0f),
+ FloatRectangle(108.0f, 0.0f, 72.0f, 132.0f),
+ FloatRectangle(180.0f, 0.0f, 72.0f, 132.0f),
+ FloatRectangle(252.0f, 0.0f, 72.0f, 132.0f),
+ FloatRectangle(324.0f, 0.0f, 72.0f, 132.0f),
+ FloatRectangle(396.0f, 0.0f, 72.0f, 132.0f),
+ FloatRectangle(468.0f, 0.0f, 72.0f, 132.0f),
+ FloatRectangle(540.0f, 0.0f, 72.0f, 132.0f),
+ FloatRectangle(612.0f, 0.0f, 108.0f, 132.0f),
+
+ FloatRectangle(0.0f, 0.0f, 108.0f, 132.0f),
+ FloatRectangle(108.0f, 0.0f, 72.0f, 132.0f),
+ FloatRectangle(180.0f, 0.0f, 72.0f, 132.0f),
+ FloatRectangle(252.0f, 0.0f, 72.0f, 132.0f),
+ FloatRectangle(324.0f, 0.0f, 72.0f, 132.0f),
+ FloatRectangle(396.0f, 0.0f, 72.0f, 132.0f),
+ FloatRectangle(468.0f, 0.0f, 72.0f, 132.0f),
+ FloatRectangle(540.0f, 0.0f, 72.0f, 132.0f),
+ FloatRectangle(612.0f, 0.0f, 108.0f, 132.0f),
+
+ FloatRectangle(0.0f, 0.0f, 90.0f, 132.0f),
+ FloatRectangle(90.0f, 0.0f, 90.0f, 132.0f),
+ FloatRectangle(180.0f, 0.0f, 360.0f, 132.0f),
+ FloatRectangle(540.0f, 0.0f, 180.0f, 132.0f)
+};
+
+$(baseName)Form::$(baseName)Form(void)
+ :__logicalResolutionHeight(0.0f)
+ ,__frameHeight(0.0f)
+ ,__frameY(0.0f)
+ ,__frameWidthHorizontal(0.0f)
+{
+}
+
+$(baseName)Form::~$(baseName)Form(void)
+{
+}
+
+bool
+$(baseName)Form::Initialize(void)
+{
+ // Initialize the form with a grid layout.
+ GridLayout gridLayoutForm;
+ gridLayoutForm.Construct(FORM_LAYOUT_ROW_COUNT, FORM_LAYOUT_COLUMN_COUNT);
+ Construct(gridLayoutForm, FORM_STYLE_NORMAL);
+
+ SetBackgroundColor(PANEL_COLOR);
+
+ return true;
+}
+
+result
+$(baseName)Form::OnInitializing(void)
+{
+ result r = E_SUCCESS;
+
+ // TODO: Add your application initialization code here.
+
+ __logicalResolutionHeight = CoordinateSystem::GetLogicalResolution().width
+ * CoordinateSystem::GetPhysicalResolution().height
+ / CoordinateSystem::GetPhysicalResolution().width;
+ __frameHeight = __logicalResolutionHeight * FRAME_HEIGHT_RATIO;
+ __frameY = __logicalResolutionHeight - __frameHeight;
+ __frameWidthHorizontal = __logicalResolutionHeight;
+
+ InputMethod* pInputMethod = InputMethod::GetInstance();
+ pInputMethod->NotifyInputPanelBounds(FloatRectangle(0.0f, __frameY, FRAME_WIDTH, __frameHeight),
+ FloatRectangle(0.0f, FRAME_Y_HORIZONTAL, __frameWidthHorizontal, FRAME_HEIGHT_HORIZONTAL));
+
+ AddOrientationEventListener(*this);
+
+ // Create grid layouts.
+ GridLayout* pGridLayoutRowArray[FORM_LAYOUT_ROW_COUNT];
+ memset(pGridLayoutRowArray, '\0', sizeof(pGridLayoutRowArray));
+
+ for (int i = 0; i < FORM_LAYOUT_ROW_COUNT; i++)
+ {
+ pGridLayoutRowArray[i] = new(std::nothrow) GridLayout();
+ }
+
+ pGridLayoutRowArray[0]->Construct(FIRST_ROW_PANEL_LAYOUT_ROW_COUNT, FIRST_ROW_PANEL_LAYOUT_COLUMN_COUNT);
+ pGridLayoutRowArray[1]->Construct(SECOND_ROW_PANEL_LAYOUT_ROW_COUNT, SECOND_ROW_PANEL_LAYOUT_COLUMN_COUNT);
+ pGridLayoutRowArray[2]->Construct(THIRD_ROW_PANEL_LAYOUT_ROW_COUNT, THIRD_ROW_PANEL_LAYOUT_COLUMN_COUNT);
+ pGridLayoutRowArray[3]->Construct(FORTH_ROW_PANEL_LAYOUT_ROW_COUNT, FORTH_ROW_PANEL_LAYOUT_COLUMN_COUNT);
+
+ // Create row panels and add the row panels to the form.
+ Panel* pPanelRowArray[FORM_LAYOUT_ROW_COUNT];
+ memset(pPanelRowArray, '\0', sizeof(pPanelRowArray));
+ float panelHeight = __frameHeight / 4;
+
+ GridLayout* pGridLayoutForm = static_cast< GridLayout* >(GetLayoutN());
+
+ for (int i = 0; i < FORM_LAYOUT_ROW_COUNT; i++)
+ {
+ pPanelRowArray[i] = new(std::nothrow) Panel();
+ pPanelRowArray[i]->Construct(*(pGridLayoutRowArray[i]), FloatRectangle(0.0f, panelHeight * i, FRAME_WIDTH,
+ ((i == (FORM_LAYOUT_ROW_COUNT - 1))? __frameHeight - panelHeight * i : panelHeight)));
+ AddControl(pPanelRowArray[i]);
+
+ pGridLayoutForm->SetPosition(*(pPanelRowArray[i]), i, 0, 1, 1);
+ }
+
+ pGridLayoutForm->SetAllRowsStretchable(true);
+ pGridLayoutForm->SetAllRowsShrinkable(true);
+ pGridLayoutForm->SetAllColumnsStretchable(true);
+ pGridLayoutForm->SetAllColumnsShrinkable(true);
+ delete pGridLayoutForm;
+
+ // Create button panels and add the button panels to the row panels.
+ Panel* pPanelButtonArray[MAX_BUTTON_COUNT];
+ memset(pPanelButtonArray, '\0', sizeof(pPanelButtonArray));
+
+ for (int i = 0, j = 0; i < MAX_BUTTON_COUNT; i++)
+ {
+ pPanelButtonArray[i] = new(std::nothrow) Panel();
+ RelativeLayout relativeLayout;
+ relativeLayout.Construct();
+ pPanelButtonArray[i]->Construct(relativeLayout, BUTTON_BOUNDS[i]);
+
+ pPanelButtonArray[i]->SetBackgroundColor(PANEL_COLOR);
+
+ if (i < FIRST_ROW_PANEL_LAYOUT_COLUMN_COUNT)
+ {
+ pPanelRowArray[0]->AddControl(pPanelButtonArray[i]);
+ pGridLayoutRowArray[0]->SetPosition(*(pPanelButtonArray[i]), 0, i, 1, 1);
+ }
+ else if (i < (FIRST_ROW_PANEL_LAYOUT_COLUMN_COUNT + SECOND_ROW_PANEL_LAYOUT_COLUMN_COUNT))
+ {
+ pPanelRowArray[1]->AddControl(pPanelButtonArray[i]);
+ pGridLayoutRowArray[1]->SetPosition(*(pPanelButtonArray[i]), 0, i - FIRST_ROW_PANEL_LAYOUT_COLUMN_COUNT, 1, 1);
+ }
+ else if ( i < (FIRST_ROW_PANEL_LAYOUT_COLUMN_COUNT + SECOND_ROW_PANEL_LAYOUT_COLUMN_COUNT
+ + THIRD_ROW_PANEL_LAYOUT_COLUMN_COUNT))
+ {
+ pPanelRowArray[2]->AddControl(pPanelButtonArray[i]);
+ pGridLayoutRowArray[2]->SetPosition(*(pPanelButtonArray[i]),
+ 0, i - (FIRST_ROW_PANEL_LAYOUT_COLUMN_COUNT + SECOND_ROW_PANEL_LAYOUT_COLUMN_COUNT), 1, 1);
+ }
+ else if ( i < (FIRST_ROW_PANEL_LAYOUT_COLUMN_COUNT + SECOND_ROW_PANEL_LAYOUT_COLUMN_COUNT
+ + THIRD_ROW_PANEL_LAYOUT_COLUMN_COUNT + FORTH_ROW_PANEL_LAYOUT_COLUMN_COUNT))
+ {
+ pPanelRowArray[3]->AddControl(pPanelButtonArray[i]);
+ pGridLayoutRowArray[3]->SetPosition(*(pPanelButtonArray[i]),
+ 0, i - (FIRST_ROW_PANEL_LAYOUT_COLUMN_COUNT + SECOND_ROW_PANEL_LAYOUT_COLUMN_COUNT + THIRD_ROW_PANEL_LAYOUT_COLUMN_COUNT), 1, 1);
+ }
+
+ // Create buttons and add the buttons to the button panels.
+ if ((i < IDA_BUTTON_CLEAR)
+ || (i == 27) || (i == 29) || (i == 30) || (i == 31))
+ {
+ Button* pButton = new(std::nothrow) Button();
+ pButton->Construct(BUTTON_BOUNDS[i]);
+ pPanelButtonArray[i]->AddControl(pButton);
+
+ pButton->SetName(BUTTON_ID[j]);
+ pButton->SetText(BUTTON_LABEL[j]);
+ pButton->SetActionId(IDA_BUTTON_Q + j);
+ pButton->AddActionEventListener(*this);
+
+ if ((i < IDA_BUTTON_CLEAR) || (i == 30))
+ {
+ pButton->SetColor(BUTTON_STATUS_NORMAL, BUTTON_COLOR);
+ pButton->SetTextColor(BUTTON_TEXT_COLOR);
+ }
+ else if ((i == 27) || (i == 29) || (i == 31))
+ {
+ pButton->SetColor(BUTTON_STATUS_NORMAL, FUNCTION_BUTTON_COLOR);
+ pButton->SetTextColor(FUNCTION_BUTTON_TEXT_COLOR);
+ }
+
+ relativeLayout.SetRelation(*pButton, pPanelButtonArray[i], RECT_EDGE_RELATION_LEFT_TO_LEFT);
+ relativeLayout.SetRelation(*pButton, pPanelButtonArray[i], RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
+ relativeLayout.SetRelation(*pButton, pPanelButtonArray[i], RECT_EDGE_RELATION_TOP_TO_TOP);
+ relativeLayout.SetRelation(*pButton, pPanelButtonArray[i], RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM);
+
+ (i == 27)? relativeLayout.SetMargin(*pButton, FUNCTION_BUTTON_MARGIN_LEFT, BUTTON_MARGIN_RIGHT, BUTTON_MARGIN_TOP, BUTTON_MARGIN_BOTTOM)
+ : relativeLayout.SetMargin(*pButton, BUTTON_MARGIN_LEFT, BUTTON_MARGIN_RIGHT, BUTTON_MARGIN_TOP, BUTTON_MARGIN_BOTTOM);
+
+ j++;
+ }
+ }
+
+ for (int i = 0; i < FORM_LAYOUT_ROW_COUNT; i++)
+ {
+ pGridLayoutRowArray[i]->SetAllRowsStretchable(true);
+ pGridLayoutRowArray[i]->SetAllRowsShrinkable(true);
+ pGridLayoutRowArray[i]->SetAllColumnsStretchable(true);
+ pGridLayoutRowArray[i]->SetAllColumnsShrinkable(true);
+
+ delete pGridLayoutRowArray[i];
+ }
+
+ Invalidate(false);
+
+ SetButtonIcon(L"IDC_BUTTON_CLEAR", L"icon_clear.png");
+ SetButtonIcon(L"IDC_BUTTON_SETTING", L"icon_setting.png");
+
+ return r;
+}
+
+result
+$(baseName)Form::OnTerminating(void)
+{
+ result r = E_SUCCESS;
+
+ // TODO: Add your form termination code here.
+
+ RemoveOrientationEventListener(*this);
+
+ return r;
+}
+
+void
+$(baseName)Form::OnActionPerformed(const Tizen::Ui::Control& source, int actionId)
+{
+ // Send a character or a key event to the input field.
+ InputMethod* pInputMethod = InputMethod::GetInstance();
+
+ HashMap extraData;
+ String key;
+ String value;
+
+ switch(actionId)
+ {
+ case IDA_BUTTON_Q:
+ pInputMethod->SendText(L"Q");
+ break;
+ case IDA_BUTTON_W:
+ pInputMethod->SendText(L"W");
+ break;
+ case IDA_BUTTON_E:
+ pInputMethod->SendText(L"E");
+ break;
+ case IDA_BUTTON_R:
+ pInputMethod->SendText(L"R");
+ break;
+ case IDA_BUTTON_T:
+ pInputMethod->SendText(L"T");
+ break;
+ case IDA_BUTTON_Y:
+ pInputMethod->SendText(L"Y");
+ break;
+ case IDA_BUTTON_CLEAR:
+ pInputMethod->SendKeyEvent(KEY_BACKSPACE, KEY_PRESSED);
+ pInputMethod->SendKeyEvent(KEY_BACKSPACE, KEY_RELEASED);
+ break;
+ case IDA_BUTTON_SETTING:
+ key = L"pkgname";
+ value = L"$(manifestAppId)";
+ extraData.Construct();
+ extraData.Add(&key, &value);
+ AppControl::FindAndStart(L"http://tizen.org/appcontrol/operation/app_setting/show", null, null, null, &extraData, null);
+ break;
+ case IDA_BUTTON_SPACE:
+ pInputMethod->SendKeyEvent(KEY_SPACE, KEY_PRESSED);
+ pInputMethod->SendKeyEvent(KEY_SPACE, KEY_RELEASED);
+ break;
+ case IDA_BUTTON_ENTER:
+ pInputMethod->SendKeyEvent(KEY_ENTER, KEY_PRESSED);
+ pInputMethod->SendKeyEvent(KEY_ENTER, KEY_RELEASED);
+ break;
+ default:
+ break;
+ }
+}
+
+void
+$(baseName)Form::OnOrientationChanged(const Tizen::Ui::Control& source, Tizen::Ui::OrientationStatus orientationStatus)
+{
+ // Set the position and the size of both the frame and the form.
+ $(baseName)Frame* p$(baseName)Frame = static_cast< $(baseName)Frame* >(GetParent());
+
+ switch (orientationStatus)
+ {
+ case ORIENTATION_STATUS_PORTRAIT:
+ // Fall through
+ case ORIENTATION_STATUS_PORTRAIT_REVERSE:
+ p$(baseName)Frame->SetBounds(0.0f, __frameY, FRAME_WIDTH, __frameHeight);
+ SetBounds(0.0f, 0.0f, FRAME_WIDTH, __frameHeight);
+ break;
+ case ORIENTATION_STATUS_LANDSCAPE:
+ // Fall through
+ case ORIENTATION_STATUS_LANDSCAPE_REVERSE:
+ p$(baseName)Frame->SetBounds(0.0f, FRAME_Y_HORIZONTAL, __frameWidthHorizontal, FRAME_HEIGHT_HORIZONTAL);
+ SetBounds(0.0f, 0.0f, __frameWidthHorizontal, FRAME_HEIGHT_HORIZONTAL);
+ break;
+ default:
+ break;
+ }
+
+ Invalidate(false);
+
+ SetButtonIcon(L"IDC_BUTTON_CLEAR", L"icon_clear.png");
+ SetButtonIcon(L"IDC_BUTTON_SETTING", L"icon_setting.png");
+}
+
+void
+$(baseName)Form::SetButtonIcon(const String& buttonName, const String& iconName)
+{
+ Button* pButton = static_cast< Button* >(GetControl(buttonName, true));
+
+ AppResource* pAppResource = AppResource::GetInstance();
+ Bitmap* pBitmap = pAppResource->GetBitmapN(iconName);
+
+ if (pBitmap)
+ {
+ FloatRectangle buttonBounds = pButton->GetBoundsF();
+ float bitmapX = (buttonBounds.width - pBitmap->GetWidthF()) / 2;
+ float bitmapY = (buttonBounds.height - pBitmap->GetHeightF()) / 2;
+
+ pButton->SetNormalBitmap(FloatPoint(bitmapX, bitmapY), *pBitmap);
+
+ delete pBitmap;
+ }
+}
diff --git a/Template/Tizen Native/IME Application/imeapp/project/src/AppFrame.cpp b/Template/Tizen Native/IME Application/imeapp/project/src/AppFrame.cpp
new file mode 100644
index 0000000..35854f5
--- /dev/null
+++ b/Template/Tizen Native/IME Application/imeapp/project/src/AppFrame.cpp
@@ -0,0 +1,60 @@
+#include <new>
+
+#include "$(baseName)Frame.h"
+#include "$(baseName)Form.h"
+
+using namespace Tizen::Graphics;
+using namespace Tizen::Ui;
+using namespace Tizen::Ui::Controls;
+
+$(baseName)Frame::$(baseName)Frame(void)
+{
+}
+
+$(baseName)Frame::~$(baseName)Frame(void)
+{
+}
+
+result
+$(baseName)Frame::OnInitializing(void)
+{
+ result r = E_SUCCESS;
+
+ // TODO: Add your frame initialization code here.
+
+ // Set the position and the size of the frame.
+ const float _LOGICAL_RESOLUTION_HEIGHT = CoordinateSystem::GetLogicalResolution().width
+ * CoordinateSystem::GetPhysicalResolution().height
+ / CoordinateSystem::GetPhysicalResolution().width;
+ const float _FRAME_HEIGHT = _LOGICAL_RESOLUTION_HEIGHT * FRAME_HEIGHT_RATIO;
+ const float _FRAME_Y = _LOGICAL_RESOLUTION_HEIGHT - _FRAME_HEIGHT;
+ SetBounds(0.0f, _FRAME_Y, FRAME_WIDTH, _FRAME_HEIGHT);
+
+ // Create a form.
+ $(baseName)Form* p$(baseName)Form = new(std::nothrow) $(baseName)Form();
+ p$(baseName)Form->Initialize();
+
+ // Set the position and the size of the form.
+ p$(baseName)Form->SetBounds(0.0f, 0.0f, FRAME_WIDTH, _FRAME_HEIGHT);
+
+ // Add the form to the frame.
+ AddControl(p$(baseName)Form);
+
+ // Set the current form.
+ SetCurrentForm(p$(baseName)Form);
+
+ // Draw the form.
+ p$(baseName)Form->Invalidate(true);
+
+ return r;
+}
+
+result
+$(baseName)Frame::OnTerminating(void)
+{
+ result r = E_SUCCESS;
+
+ // TODO: Add your frame termination code here.
+
+ return r;
+}
diff --git a/Template/Tizen Native/IME Application/imeapp/sample.xml b/Template/Tizen Native/IME Application/imeapp/sample.xml
new file mode 100644
index 0000000..1f92691
--- /dev/null
+++ b/Template/Tizen Native/IME Application/imeapp/sample.xml
@@ -0,0 +1,71 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<template>
+
+ <slp-property>
+ <property-group>
+ <sample-name>Ime Application</sample-name>
+ <category>Application Template</category>
+ <sdk-version>1.00</sdk-version>
+ <project-type>org.tizen.nativecpp.buildArtefactType.app</project-type>
+ <sample-description>description.xml</sample-description>
+ </property-group>
+ </slp-property>
+
+ <process type="org.tizen.nativeappcommon.TizenCopyFolder">
+ <simple name="projectName" value="$(projectName)"/>
+ <simple name="folderPath" value="project"/>
+ <complex-array name="replaceableFiles">
+ <element>
+ <simple name="sourcePath" value="src/App.cpp"/>
+ <simple name="targetPath" value="src/$(baseName)App.cpp"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="src/AppEntry.cpp"/>
+ <simple name="targetPath" value="src/$(baseName)Entry.cpp"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="src/AppForm.cpp"/>
+ <simple name="targetPath" value="src/$(baseName)Form.cpp"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="src/AppFrame.cpp"/>
+ <simple name="targetPath" value="src/$(baseName)Frame.cpp"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="inc/App.h"/>
+ <simple name="targetPath" value="inc/$(baseName)App.h"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="inc/AppForm.h"/>
+ <simple name="targetPath" value="inc/$(baseName)Form.h"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="inc/AppFrame.h"/>
+ <simple name="targetPath" value="inc/$(baseName)Frame.h"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="manifest.xml"/>
+ <simple name="targetPath" value="manifest.xml"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ </complex-array>
+ </process>
+ <process type="org.tizen.nativecpp.SetDefaultFrameworks">
+ <simple name="projectName" value="$(projectName)"/>
+ <complex-array name="frameworkList">
+ <element>
+ <simple name="framework" value="osp"/>
+ </element>
+ <element>
+ <simple name="framework" value="osp-ime"/>
+ </element>
+ </complex-array>
+ </process>
+</template>
diff --git a/Template/Tizen Native/IME Application/imeapp/screenshot.png b/Template/Tizen Native/IME Application/imeapp/screenshot.png
new file mode 100644
index 0000000..b487750
--- /dev/null
+++ b/Template/Tizen Native/IME Application/imeapp/screenshot.png
Binary files differ
diff --git a/Template/Tizen Native/Library/npplugin/description.xml b/Template/Tizen Native/Library/npplugin/description.xml
new file mode 100755
index 0000000..673c8df
--- /dev/null
+++ b/Template/Tizen Native/Library/npplugin/description.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<?xml-stylesheet type="text/xsl" href="../../../../description.xsl"?>
+
+<Overview version="0.17.1">
+ <SampleName>NPPlugin Library</SampleName>
+ <SampleVersion>1.0</SampleVersion>
+ <Preview>screenshot.png</Preview>
+ <Description>
+ This is NPPlugin shared library(*.so) template project.
+ </Description>
+ <TechnologyList>
+ <Technology>
+ <Name>Shared Library</Name>
+ <Info>Shared libraries are libraries that are loaded by programs when they start. When a shared library is installed properly, all programs that start afterwards automatically use the new shared library. </Info>
+ <Url></Url>
+ </Technology>
+ </TechnologyList>
+ <WidgetList>
+ </WidgetList>
+ <ReferenceList>
+ </ReferenceList>
+</Overview>
diff --git a/Template/Tizen Native/Library/npplugin/project/LICENSE b/Template/Tizen Native/Library/npplugin/project/LICENSE
new file mode 100644
index 0000000..7714141
--- /dev/null
+++ b/Template/Tizen Native/Library/npplugin/project/LICENSE
@@ -0,0 +1,470 @@
+ MOZILLA PUBLIC LICENSE
+ Version 1.1
+
+ ---------------
+
+1. Definitions.
+
+ 1.0.1. "Commercial Use" means distribution or otherwise making the
+ Covered Code available to a third party.
+
+ 1.1. "Contributor" means each entity that creates or contributes to
+ the creation of Modifications.
+
+ 1.2. "Contributor Version" means the combination of the Original
+ Code, prior Modifications used by a Contributor, and the Modifications
+ made by that particular Contributor.
+
+ 1.3. "Covered Code" means the Original Code or Modifications or the
+ combination of the Original Code and Modifications, in each case
+ including portions thereof.
+
+ 1.4. "Electronic Distribution Mechanism" means a mechanism generally
+ accepted in the software development community for the electronic
+ transfer of data.
+
+ 1.5. "Executable" means Covered Code in any form other than Source
+ Code.
+
+ 1.6. "Initial Developer" means the individual or entity identified
+ as the Initial Developer in the Source Code notice required by Exhibit
+ A.
+
+ 1.7. "Larger Work" means a work which combines Covered Code or
+ portions thereof with code not governed by the terms of this License.
+
+ 1.8. "License" means this document.
+
+ 1.8.1. "Licensable" means having the right to grant, to the maximum
+ extent possible, whether at the time of the initial grant or
+ subsequently acquired, any and all of the rights conveyed herein.
+
+ 1.9. "Modifications" means any addition to or deletion from the
+ substance or structure of either the Original Code or any previous
+ Modifications. When Covered Code is released as a series of files, a
+ Modification is:
+ A. Any addition to or deletion from the contents of a file
+ containing Original Code or previous Modifications.
+
+ B. Any new file that contains any part of the Original Code or
+ previous Modifications.
+
+ 1.10. "Original Code" means Source Code of computer software code
+ which is described in the Source Code notice required by Exhibit A as
+ Original Code, and which, at the time of its release under this
+ License is not already Covered Code governed by this License.
+
+ 1.10.1. "Patent Claims" means any patent claim(s), now owned or
+ hereafter acquired, including without limitation, method, process,
+ and apparatus claims, in any patent Licensable by grantor.
+
+ 1.11. "Source Code" means the preferred form of the Covered Code for
+ making modifications to it, including all modules it contains, plus
+ any associated interface definition files, scripts used to control
+ compilation and installation of an Executable, or source code
+ differential comparisons against either the Original Code or another
+ well known, available Covered Code of the Contributor's choice. The
+ Source Code can be in a compressed or archival form, provided the
+ appropriate decompression or de-archiving software is widely available
+ for no charge.
+
+ 1.12. "You" (or "Your") means an individual or a legal entity
+ exercising rights under, and complying with all of the terms of, this
+ License or a future version of this License issued under Section 6.1.
+ For legal entities, "You" includes any entity which controls, is
+ controlled by, or is under common control with You. For purposes of
+ this definition, "control" means (a) the power, direct or indirect,
+ to cause the direction or management of such entity, whether by
+ contract or otherwise, or (b) ownership of more than fifty percent
+ (50%) of the outstanding shares or beneficial ownership of such
+ entity.
+
+2. Source Code License.
+
+ 2.1. The Initial Developer Grant.
+ The Initial Developer hereby grants You a world-wide, royalty-free,
+ non-exclusive license, subject to third party intellectual property
+ claims:
+ (a) under intellectual property rights (other than patent or
+ trademark) Licensable by Initial Developer to use, reproduce,
+ modify, display, perform, sublicense and distribute the Original
+ Code (or portions thereof) with or without Modifications, and/or
+ as part of a Larger Work; and
+
+ (b) under Patents Claims infringed by the making, using or
+ selling of Original Code, to make, have made, use, practice,
+ sell, and offer for sale, and/or otherwise dispose of the
+ Original Code (or portions thereof).
+
+ (c) the licenses granted in this Section 2.1(a) and (b) are
+ effective on the date Initial Developer first distributes
+ Original Code under the terms of this License.
+
+ (d) Notwithstanding Section 2.1(b) above, no patent license is
+ granted: 1) for code that You delete from the Original Code; 2)
+ separate from the Original Code; or 3) for infringements caused
+ by: i) the modification of the Original Code or ii) the
+ combination of the Original Code with other software or devices.
+
+ 2.2. Contributor Grant.
+ Subject to third party intellectual property claims, each Contributor
+ hereby grants You a world-wide, royalty-free, non-exclusive license
+
+ (a) under intellectual property rights (other than patent or
+ trademark) Licensable by Contributor, to use, reproduce, modify,
+ display, perform, sublicense and distribute the Modifications
+ created by such Contributor (or portions thereof) either on an
+ unmodified basis, with other Modifications, as Covered Code
+ and/or as part of a Larger Work; and
+
+ (b) under Patent Claims infringed by the making, using, or
+ selling of Modifications made by that Contributor either alone
+ and/or in combination with its Contributor Version (or portions
+ of such combination), to make, use, sell, offer for sale, have
+ made, and/or otherwise dispose of: 1) Modifications made by that
+ Contributor (or portions thereof); and 2) the combination of
+ Modifications made by that Contributor with its Contributor
+ Version (or portions of such combination).
+
+ (c) the licenses granted in Sections 2.2(a) and 2.2(b) are
+ effective on the date Contributor first makes Commercial Use of
+ the Covered Code.
+
+ (d) Notwithstanding Section 2.2(b) above, no patent license is
+ granted: 1) for any code that Contributor has deleted from the
+ Contributor Version; 2) separate from the Contributor Version;
+ 3) for infringements caused by: i) third party modifications of
+ Contributor Version or ii) the combination of Modifications made
+ by that Contributor with other software (except as part of the
+ Contributor Version) or other devices; or 4) under Patent Claims
+ infringed by Covered Code in the absence of Modifications made by
+ that Contributor.
+
+3. Distribution Obligations.
+
+ 3.1. Application of License.
+ The Modifications which You create or to which You contribute are
+ governed by the terms of this License, including without limitation
+ Section 2.2. The Source Code version of Covered Code may be
+ distributed only under the terms of this License or a future version
+ of this License released under Section 6.1, and You must include a
+ copy of this License with every copy of the Source Code You
+ distribute. You may not offer or impose any terms on any Source Code
+ version that alters or restricts the applicable version of this
+ License or the recipients' rights hereunder. However, You may include
+ an additional document offering the additional rights described in
+ Section 3.5.
+
+ 3.2. Availability of Source Code.
+ Any Modification which You create or to which You contribute must be
+ made available in Source Code form under the terms of this License
+ either on the same media as an Executable version or via an accepted
+ Electronic Distribution Mechanism to anyone to whom you made an
+ Executable version available; and if made available via Electronic
+ Distribution Mechanism, must remain available for at least twelve (12)
+ months after the date it initially became available, or at least six
+ (6) months after a subsequent version of that particular Modification
+ has been made available to such recipients. You are responsible for
+ ensuring that the Source Code version remains available even if the
+ Electronic Distribution Mechanism is maintained by a third party.
+
+ 3.3. Description of Modifications.
+ You must cause all Covered Code to which You contribute to contain a
+ file documenting the changes You made to create that Covered Code and
+ the date of any change. You must include a prominent statement that
+ the Modification is derived, directly or indirectly, from Original
+ Code provided by the Initial Developer and including the name of the
+ Initial Developer in (a) the Source Code, and (b) in any notice in an
+ Executable version or related documentation in which You describe the
+ origin or ownership of the Covered Code.
+
+ 3.4. Intellectual Property Matters
+ (a) Third Party Claims.
+ If Contributor has knowledge that a license under a third party's
+ intellectual property rights is required to exercise the rights
+ granted by such Contributor under Sections 2.1 or 2.2,
+ Contributor must include a text file with the Source Code
+ distribution titled "LEGAL" which describes the claim and the
+ party making the claim in sufficient detail that a recipient will
+ know whom to contact. If Contributor obtains such knowledge after
+ the Modification is made available as described in Section 3.2,
+ Contributor shall promptly modify the LEGAL file in all copies
+ Contributor makes available thereafter and shall take other steps
+ (such as notifying appropriate mailing lists or newsgroups)
+ reasonably calculated to inform those who received the Covered
+ Code that new knowledge has been obtained.
+
+ (b) Contributor APIs.
+ If Contributor's Modifications include an application programming
+ interface and Contributor has knowledge of patent licenses which
+ are reasonably necessary to implement that API, Contributor must
+ also include this information in the LEGAL file.
+
+ (c) Representations.
+ Contributor represents that, except as disclosed pursuant to
+ Section 3.4(a) above, Contributor believes that Contributor's
+ Modifications are Contributor's original creation(s) and/or
+ Contributor has sufficient rights to grant the rights conveyed by
+ this License.
+
+ 3.5. Required Notices.
+ You must duplicate the notice in Exhibit A in each file of the Source
+ Code. If it is not possible to put such notice in a particular Source
+ Code file due to its structure, then You must include such notice in a
+ location (such as a relevant directory) where a user would be likely
+ to look for such a notice. If You created one or more Modification(s)
+ You may add your name as a Contributor to the notice described in
+ Exhibit A. You must also duplicate this License in any documentation
+ for the Source Code where You describe recipients' rights or ownership
+ rights relating to Covered Code. You may choose to offer, and to
+ charge a fee for, warranty, support, indemnity or liability
+ obligations to one or more recipients of Covered Code. However, You
+ may do so only on Your own behalf, and not on behalf of the Initial
+ Developer or any Contributor. You must make it absolutely clear than
+ any such warranty, support, indemnity or liability obligation is
+ offered by You alone, and You hereby agree to indemnify the Initial
+ Developer and every Contributor for any liability incurred by the
+ Initial Developer or such Contributor as a result of warranty,
+ support, indemnity or liability terms You offer.
+
+ 3.6. Distribution of Executable Versions.
+ You may distribute Covered Code in Executable form only if the
+ requirements of Section 3.1-3.5 have been met for that Covered Code,
+ and if You include a notice stating that the Source Code version of
+ the Covered Code is available under the terms of this License,
+ including a description of how and where You have fulfilled the
+ obligations of Section 3.2. The notice must be conspicuously included
+ in any notice in an Executable version, related documentation or
+ collateral in which You describe recipients' rights relating to the
+ Covered Code. You may distribute the Executable version of Covered
+ Code or ownership rights under a license of Your choice, which may
+ contain terms different from this License, provided that You are in
+ compliance with the terms of this License and that the license for the
+ Executable version does not attempt to limit or alter the recipient's
+ rights in the Source Code version from the rights set forth in this
+ License. If You distribute the Executable version under a different
+ license You must make it absolutely clear that any terms which differ
+ from this License are offered by You alone, not by the Initial
+ Developer or any Contributor. You hereby agree to indemnify the
+ Initial Developer and every Contributor for any liability incurred by
+ the Initial Developer or such Contributor as a result of any such
+ terms You offer.
+
+ 3.7. Larger Works.
+ You may create a Larger Work by combining Covered Code with other code
+ not governed by the terms of this License and distribute the Larger
+ Work as a single product. In such a case, You must make sure the
+ requirements of this License are fulfilled for the Covered Code.
+
+4. Inability to Comply Due to Statute or Regulation.
+
+ If it is impossible for You to comply with any of the terms of this
+ License with respect to some or all of the Covered Code due to
+ statute, judicial order, or regulation then You must: (a) comply with
+ the terms of this License to the maximum extent possible; and (b)
+ describe the limitations and the code they affect. Such description
+ must be included in the LEGAL file described in Section 3.4 and must
+ be included with all distributions of the Source Code. Except to the
+ extent prohibited by statute or regulation, such description must be
+ sufficiently detailed for a recipient of ordinary skill to be able to
+ understand it.
+
+5. Application of this License.
+
+ This License applies to code to which the Initial Developer has
+ attached the notice in Exhibit A and to related Covered Code.
+
+6. Versions of the License.
+
+ 6.1. New Versions.
+ Netscape Communications Corporation ("Netscape") may publish revised
+ and/or new versions of the License from time to time. Each version
+ will be given a distinguishing version number.
+
+ 6.2. Effect of New Versions.
+ Once Covered Code has been published under a particular version of the
+ License, You may always continue to use it under the terms of that
+ version. You may also choose to use such Covered Code under the terms
+ of any subsequent version of the License published by Netscape. No one
+ other than Netscape has the right to modify the terms applicable to
+ Covered Code created under this License.
+
+ 6.3. Derivative Works.
+ If You create or use a modified version of this License (which you may
+ only do in order to apply it to code which is not already Covered Code
+ governed by this License), You must (a) rename Your license so that
+ the phrases "Mozilla", "MOZILLAPL", "MOZPL", "Netscape",
+ "MPL", "NPL" or any confusingly similar phrase do not appear in your
+ license (except to note that your license differs from this License)
+ and (b) otherwise make it clear that Your version of the license
+ contains terms which differ from the Mozilla Public License and
+ Netscape Public License. (Filling in the name of the Initial
+ Developer, Original Code or Contributor in the notice described in
+ Exhibit A shall not of themselves be deemed to be modifications of
+ this License.)
+
+7. DISCLAIMER OF WARRANTY.
+
+ COVERED CODE IS PROVIDED UNDER THIS LICENSE ON AN "AS IS" BASIS,
+ WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ WITHOUT LIMITATION, WARRANTIES THAT THE COVERED CODE IS FREE OF
+ DEFECTS, MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR NON-INFRINGING.
+ THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE COVERED CODE
+ IS WITH YOU. SHOULD ANY COVERED CODE PROVE DEFECTIVE IN ANY RESPECT,
+ YOU (NOT THE INITIAL DEVELOPER OR ANY OTHER CONTRIBUTOR) ASSUME THE
+ COST OF ANY NECESSARY SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER
+ OF WARRANTY CONSTITUTES AN ESSENTIAL PART OF THIS LICENSE. NO USE OF
+ ANY COVERED CODE IS AUTHORIZED HEREUNDER EXCEPT UNDER THIS DISCLAIMER.
+
+8. TERMINATION.
+
+ 8.1. This License and the rights granted hereunder will terminate
+ automatically if You fail to comply with terms herein and fail to cure
+ such breach within 30 days of becoming aware of the breach. All
+ sublicenses to the Covered Code which are properly granted shall
+ survive any termination of this License. Provisions which, by their
+ nature, must remain in effect beyond the termination of this License
+ shall survive.
+
+ 8.2. If You initiate litigation by asserting a patent infringement
+ claim (excluding declatory judgment actions) against Initial Developer
+ or a Contributor (the Initial Developer or Contributor against whom
+ You file such action is referred to as "Participant") alleging that:
+
+ (a) such Participant's Contributor Version directly or indirectly
+ infringes any patent, then any and all rights granted by such
+ Participant to You under Sections 2.1 and/or 2.2 of this License
+ shall, upon 60 days notice from Participant terminate prospectively,
+ unless if within 60 days after receipt of notice You either: (i)
+ agree in writing to pay Participant a mutually agreeable reasonable
+ royalty for Your past and future use of Modifications made by such
+ Participant, or (ii) withdraw Your litigation claim with respect to
+ the Contributor Version against such Participant. If within 60 days
+ of notice, a reasonable royalty and payment arrangement are not
+ mutually agreed upon in writing by the parties or the litigation claim
+ is not withdrawn, the rights granted by Participant to You under
+ Sections 2.1 and/or 2.2 automatically terminate at the expiration of
+ the 60 day notice period specified above.
+
+ (b) any software, hardware, or device, other than such Participant's
+ Contributor Version, directly or indirectly infringes any patent, then
+ any rights granted to You by such Participant under Sections 2.1(b)
+ and 2.2(b) are revoked effective as of the date You first made, used,
+ sold, distributed, or had made, Modifications made by that
+ Participant.
+
+ 8.3. If You assert a patent infringement claim against Participant
+ alleging that such Participant's Contributor Version directly or
+ indirectly infringes any patent where such claim is resolved (such as
+ by license or settlement) prior to the initiation of patent
+ infringement litigation, then the reasonable value of the licenses
+ granted by such Participant under Sections 2.1 or 2.2 shall be taken
+ into account in determining the amount or value of any payment or
+ license.
+
+ 8.4. In the event of termination under Sections 8.1 or 8.2 above,
+ all end user license agreements (excluding distributors and resellers)
+ which have been validly granted by You or any distributor hereunder
+ prior to termination shall survive termination.
+
+9. LIMITATION OF LIABILITY.
+
+ UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER TORT
+ (INCLUDING NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL YOU, THE INITIAL
+ DEVELOPER, ANY OTHER CONTRIBUTOR, OR ANY DISTRIBUTOR OF COVERED CODE,
+ OR ANY SUPPLIER OF ANY OF SUCH PARTIES, BE LIABLE TO ANY PERSON FOR
+ ANY INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY
+ CHARACTER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF GOODWILL,
+ WORK STOPPAGE, COMPUTER FAILURE OR MALFUNCTION, OR ANY AND ALL OTHER
+ COMMERCIAL DAMAGES OR LOSSES, EVEN IF SUCH PARTY SHALL HAVE BEEN
+ INFORMED OF THE POSSIBILITY OF SUCH DAMAGES. THIS LIMITATION OF
+ LIABILITY SHALL NOT APPLY TO LIABILITY FOR DEATH OR PERSONAL INJURY
+ RESULTING FROM SUCH PARTY'S NEGLIGENCE TO THE EXTENT APPLICABLE LAW
+ PROHIBITS SUCH LIMITATION. SOME JURISDICTIONS DO NOT ALLOW THE
+ EXCLUSION OR LIMITATION OF INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO
+ THIS EXCLUSION AND LIMITATION MAY NOT APPLY TO YOU.
+
+10. U.S. GOVERNMENT END USERS.
+
+ The Covered Code is a "commercial item," as that term is defined in
+ 48 C.F.R. 2.101 (Oct. 1995), consisting of "commercial computer
+ software" and "commercial computer software documentation," as such
+ terms are used in 48 C.F.R. 12.212 (Sept. 1995). Consistent with 48
+ C.F.R. 12.212 and 48 C.F.R. 227.7202-1 through 227.7202-4 (June 1995),
+ all U.S. Government End Users acquire Covered Code with only those
+ rights set forth herein.
+
+11. MISCELLANEOUS.
+
+ This License represents the complete agreement concerning subject
+ matter hereof. If any provision of this License is held to be
+ unenforceable, such provision shall be reformed only to the extent
+ necessary to make it enforceable. This License shall be governed by
+ California law provisions (except to the extent applicable law, if
+ any, provides otherwise), excluding its conflict-of-law provisions.
+ With respect to disputes in which at least one party is a citizen of,
+ or an entity chartered or registered to do business in the United
+ States of America, any litigation relating to this License shall be
+ subject to the jurisdiction of the Federal Courts of the Northern
+ District of California, with venue lying in Santa Clara County,
+ California, with the losing party responsible for costs, including
+ without limitation, court costs and reasonable attorneys' fees and
+ expenses. The application of the United Nations Convention on
+ Contracts for the International Sale of Goods is expressly excluded.
+ Any law or regulation which provides that the language of a contract
+ shall be construed against the drafter shall not apply to this
+ License.
+
+12. RESPONSIBILITY FOR CLAIMS.
+
+ As between Initial Developer and the Contributors, each party is
+ responsible for claims and damages arising, directly or indirectly,
+ out of its utilization of rights under this License and You agree to
+ work with Initial Developer and Contributors to distribute such
+ responsibility on an equitable basis. Nothing herein is intended or
+ shall be deemed to constitute any admission of liability.
+
+13. MULTIPLE-LICENSED CODE.
+
+ Initial Developer may designate portions of the Covered Code as
+ "Multiple-Licensed". "Multiple-Licensed" means that the Initial
+ Developer permits you to utilize portions of the Covered Code under
+ Your choice of the NPL or the alternative licenses, if any, specified
+ by the Initial Developer in the file described in Exhibit A.
+
+EXHIBIT A -Mozilla Public License.
+
+ ``The contents of this file are subject to the Mozilla Public License
+ Version 1.1 (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.mozilla.org/MPL/
+
+ Software distributed under the License is distributed on an "AS IS"
+ basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
+ License for the specific language governing rights and limitations
+ under the License.
+
+ The Original Code is ______________________________________.
+
+ The Initial Developer of the Original Code is ________________________.
+ Portions created by ______________________ are Copyright (C) ______
+ _______________________. All Rights Reserved.
+
+ Contributor(s): ______________________________________.
+
+ Alternatively, the contents of this file may be used under the terms
+ of the _____ license (the "[___] License"), in which case the
+ provisions of [______] License are applicable instead of those
+ above. If you wish to allow use of your version of this file only
+ under the terms of the [____] License and not to allow others to use
+ your version of this file under the MPL, indicate your decision by
+ deleting the provisions above and replace them with the notice and
+ other provisions required by the [___] License. If you do not delete
+ the provisions above, a recipient may use your version of this file
+ under either the MPL or the [___] License."
+
+ [NOTE: The text of this Exhibit A may differ slightly from the text of
+ the notices in the Source Code files of the Original Code. You should
+ use the text of this Exhibit A rather than the text found in the
+ Original Code Source Code for Your Modifications.]
+
diff --git a/Template/Tizen Native/Library/npplugin/project/inc/external/npapi.h b/Template/Tizen Native/Library/npplugin/project/inc/external/npapi.h
new file mode 100755
index 0000000..bb410a5
--- /dev/null
+++ b/Template/Tizen Native/Library/npplugin/project/inc/external/npapi.h
@@ -0,0 +1,1006 @@
+/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* ***** BEGIN LICENSE BLOCK *****
+ * Version: MPL 1.1/GPL 2.0/LGPL 2.1
+ *
+ * The contents of this file are subject to the Mozilla Public License Version
+ * 1.1 (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.mozilla.org/MPL/
+ *
+ * Software distributed under the License is distributed on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
+ * for the specific language governing rights and limitations under the
+ * License.
+ *
+ * The Original Code is mozilla.org code.
+ *
+ * The Initial Developer of the Original Code is
+ * Netscape Communications Corporation.
+ * Portions created by the Initial Developer are Copyright (C) 1998
+ * the Initial Developer. All Rights Reserved.
+ *
+ * Contributor(s):
+ *
+ * Alternatively, the contents of this file may be used under the terms of
+ * either the GNU General Public License Version 2 or later (the "GPL"), or
+ * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
+ * in which case the provisions of the GPL or the LGPL are applicable instead
+ * of those above. If you wish to allow use of your version of this file only
+ * under the terms of either the GPL or the LGPL, and not to allow others to
+ * use your version of this file under the terms of the MPL, indicate your
+ * decision by deleting the provisions above and replace them with the notice
+ * and other provisions required by the GPL or the LGPL. If you do not delete
+ * the provisions above, a recipient may use your version of this file under
+ * the terms of any one of the MPL, the GPL or the LGPL.
+ *
+ * ***** END LICENSE BLOCK ***** */
+
+#ifndef npapi_h_
+#define npapi_h_
+
+#if defined(__OS2__)
+#pragma pack(1)
+#endif
+
+#include "nptypes.h"
+
+#if defined(__OS2__) || defined(OS2)
+#ifndef XP_OS2
+#define XP_OS2 1
+#endif
+#endif
+
+#ifdef INCLUDE_JAVA
+#include "jri.h" /* Java Runtime Interface */
+#else
+#define jref void *
+#define JRIEnv void
+#endif
+
+#ifdef _WIN32
+#include <windows.h>
+#ifndef XP_WIN
+#define XP_WIN 1
+#endif
+#endif
+
+#if defined(__SYMBIAN32__)
+#ifndef XP_SYMBIAN
+#define XP_SYMBIAN 1
+#endif
+#endif
+
+#if defined(__APPLE_CC__) && !defined(XP_UNIX)
+#ifndef XP_MACOSX
+#define XP_MACOSX 1
+#endif
+#endif
+
+#if defined(XP_MACOSX) && defined(__LP64__)
+#define NP_NO_QUICKDRAW
+#define NP_NO_CARBON
+#endif
+
+#if defined(XP_MACOSX)
+#include <ApplicationServices/ApplicationServices.h>
+#include <OpenGL/OpenGL.h>
+#ifndef NP_NO_CARBON
+#include <Carbon/Carbon.h>
+#endif
+#endif
+
+#if defined(XP_UNIX)
+#include <stdio.h>
+#if defined(MOZ_X11)
+#include <X11/Xlib.h>
+#include <X11/Xutil.h>
+#endif
+#endif
+
+#if defined ENABLE_TIZEN_NPAPI && ENABLE_TIZEN_NPAPI
+#if OS(TIZEN) // if plugin want to use XP_TIZEN, define XP_TIZEN in your code.
+#ifndef XP_TIZEN
+#define XP_TIZEN 1
+#endif
+#endif
+#endif
+
+#if defined(XP_TIZEN)
+
+/**
+ * Defines of TNPEvent types. XEvent types occupy numbers from 2-LASTEvent.
+ */
+
+typedef enum {
+ TNPEventBase = LASTEvent + 1,
+ TNPMultiDown = TNPEventBase + 1,
+ TNPMultiMove = TNPEventBase + 2,
+ TNPMultiUp = TNPEventBase + 3,
+ TNPWeakZoom = TNPEventBase + 4,
+ TNPReduceFPS = TNPEventBase + 5,
+ TNPRevertFPS = TNPEventBase + 6,
+ TNPPausePlugin = TNPEventBase + 7,
+ TNPResumePlugin = TNPEventBase + 8,
+ TNPDocumentLoaded = TNPEventBase + 9,
+ TNPPluginInactive = TNPEventBase + 10,
+ TNPLowMemory = TNPEventBase + 11,
+ TNPSoftKeyDown = TNPEventBase + 12,
+ TNPSoftKeyUp = TNPEventBase + 13
+} TNPEventType;
+
+
+typedef struct {
+ int x;
+ int y;
+} TNPPoint;
+
+typedef struct {
+ int type;
+ union {
+ struct {
+ TNPPoint position;
+ unsigned id;
+ } multiMouse;
+ struct {
+ TNPPoint position;
+ float zoomFactor;
+ } zoom;
+ struct {
+ char* str;
+ uint32_t length;
+ unsigned modifiers;
+ uint64_t time;
+ int32_t keycode;
+ } key;
+ };
+} TNPEvent;
+
+#endif // defined(XP_TIZEN)
+
+/*----------------------------------------------------------------------*/
+/* Plugin Version Constants */
+/*----------------------------------------------------------------------*/
+
+#define NP_VERSION_MAJOR 0
+#define NP_VERSION_MINOR 24
+
+
+/* The OS/2 version of Netscape uses RC_DATA to define the
+ mime types, file extensions, etc that are required.
+ Use a vertical bar to separate types, end types with \0.
+ FileVersion and ProductVersion are 32bit ints, all other
+ entries are strings that MUST be terminated with a \0.
+
+AN EXAMPLE:
+
+RCDATA NP_INFO_ProductVersion { 1,0,0,1,}
+
+RCDATA NP_INFO_MIMEType { "video/x-video|",
+ "video/x-flick\0" }
+RCDATA NP_INFO_FileExtents { "avi|",
+ "flc\0" }
+RCDATA NP_INFO_FileOpenName{ "MMOS2 video player(*.avi)|",
+ "MMOS2 Flc/Fli player(*.flc)\0" }
+
+RCDATA NP_INFO_FileVersion { 1,0,0,1 }
+RCDATA NP_INFO_CompanyName { "Netscape Communications\0" }
+RCDATA NP_INFO_FileDescription { "NPAVI32 Extension DLL\0"
+RCDATA NP_INFO_InternalName { "NPAVI32\0" )
+RCDATA NP_INFO_LegalCopyright { "Copyright Netscape Communications \251 1996\0"
+RCDATA NP_INFO_OriginalFilename { "NVAPI32.DLL" }
+RCDATA NP_INFO_ProductName { "NPAVI32 Dynamic Link Library\0" }
+*/
+/* RC_DATA types for version info - required */
+#define NP_INFO_ProductVersion 1
+#define NP_INFO_MIMEType 2
+#define NP_INFO_FileOpenName 3
+#define NP_INFO_FileExtents 4
+/* RC_DATA types for version info - used if found */
+#define NP_INFO_FileDescription 5
+#define NP_INFO_ProductName 6
+/* RC_DATA types for version info - optional */
+#define NP_INFO_CompanyName 7
+#define NP_INFO_FileVersion 8
+#define NP_INFO_InternalName 9
+#define NP_INFO_LegalCopyright 10
+#define NP_INFO_OriginalFilename 11
+
+#ifndef RC_INVOKED
+
+/*----------------------------------------------------------------------*/
+/* Definition of Basic Types */
+/*----------------------------------------------------------------------*/
+//Add by gyuyoung
+// #include <wtf/Platform.h>
+#if defined ENABLE_TIZEN_SUPPORT_PLUGINS && ENABLE_TIZEN_SUPPORT_PLUGINS
+#ifndef _UINT16
+#define _UINT16
+typedef unsigned short uint16;
+#endif
+
+#ifndef _UINT32
+#define _UINT32
+#ifdef __LP64__
+typedef unsigned int uint32;
+#else /* __LP64__ */
+typedef unsigned long uint32;
+#endif /* __LP64__ */
+#endif
+
+#ifndef _INT16
+#define _INT16
+typedef short int16;
+#endif
+
+#ifndef _INT32
+#define _INT32
+#ifdef __LP64__
+typedef int int32;
+#else /* __LP64__ */
+typedef long int32;
+#endif /* __LP64__ */
+#endif
+#endif // defined ENABLE_TIZEN_SUPPORT_PLUGINS && ENABLE_TIZEN_SUPPORT_PLUGINS
+
+#ifndef FALSE
+#define FALSE (0)
+#endif
+#ifndef TRUE
+#define TRUE (1)
+#endif
+#ifndef NULL
+#define NULL (0L)
+#endif
+
+typedef unsigned char NPBool;
+typedef int16_t NPError;
+typedef int16_t NPReason;
+typedef char* NPMIMEType;
+
+/*----------------------------------------------------------------------*/
+/* Structures and definitions */
+/*----------------------------------------------------------------------*/
+
+#if !defined(__LP64__)
+#if defined(XP_MACOSX)
+#pragma options align=mac68k
+#endif
+#endif /* __LP64__ */
+
+/*
+ * NPP is a plug-in's opaque instance handle
+ */
+typedef struct _NPP
+{
+ void* pdata; /* plug-in private data */
+ void* ndata; /* netscape private data */
+} NPP_t;
+
+typedef NPP_t* NPP;
+
+typedef struct _NPStream
+{
+ void* pdata; /* plug-in private data */
+ void* ndata; /* netscape private data */
+ const char* url;
+ uint32_t end;
+ uint32_t lastmodified;
+ void* notifyData;
+ const char* headers; /* Response headers from host.
+ * Exists only for >= NPVERS_HAS_RESPONSE_HEADERS.
+ * Used for HTTP only; NULL for non-HTTP.
+ * Available from NPP_NewStream onwards.
+ * Plugin should copy this data before storing it.
+ * Includes HTTP status line and all headers,
+ * preferably verbatim as received from server,
+ * headers formatted as in HTTP ("Header: Value"),
+ * and newlines (\n, NOT \r\n) separating lines.
+ * Terminated by \n\0 (NOT \n\n\0). */
+} NPStream;
+
+typedef struct _NPByteRange
+{
+ int32_t offset; /* negative offset means from the end */
+ uint32_t length;
+ struct _NPByteRange* next;
+} NPByteRange;
+
+typedef struct _NPSavedData
+{
+ int32_t len;
+ void* buf;
+} NPSavedData;
+
+typedef struct _NPRect
+{
+ uint16_t top;
+ uint16_t left;
+ uint16_t bottom;
+ uint16_t right;
+} NPRect;
+
+typedef struct _NPSize
+{
+ int32_t width;
+ int32_t height;
+} NPSize;
+
+typedef enum {
+ NPFocusNext = 0,
+ NPFocusPrevious = 1
+} NPFocusDirection;
+
+/* Return values for NPP_HandleEvent */
+#define kNPEventNotHandled 0
+#define kNPEventHandled 1
+/* Exact meaning must be spec'd in event model. */
+#define kNPEventStartIME 2
+
+#if defined(XP_UNIX)
+/*
+ * Unix specific structures and definitions
+ */
+
+/*
+ * Callback Structures.
+ *
+ * These are used to pass additional platform specific information.
+ */
+enum {
+ NP_SETWINDOW = 1,
+ NP_PRINT
+};
+
+typedef struct
+{
+ int32_t type;
+} NPAnyCallbackStruct;
+
+typedef struct
+{
+ int32_t type;
+#if defined(MOZ_X11)
+ Display* display;
+ Visual* visual;
+ Colormap colormap;
+ unsigned int depth;
+#endif
+} NPSetWindowCallbackStruct;
+
+typedef struct
+{
+ int32_t type;
+ FILE* fp;
+} NPPrintCallbackStruct;
+
+#endif /* XP_UNIX */
+
+#if defined(XP_MACOSX)
+typedef enum {
+#ifndef NP_NO_QUICKDRAW
+ NPDrawingModelQuickDraw = 0,
+#endif
+ NPDrawingModelCoreGraphics = 1,
+ NPDrawingModelOpenGL = 2,
+ NPDrawingModelCoreAnimation = 3
+} NPDrawingModel;
+
+typedef enum {
+#ifndef NP_NO_CARBON
+ NPEventModelCarbon = 0,
+#endif
+ NPEventModelCocoa = 1
+} NPEventModel;
+#endif
+
+/*
+ * The following masks are applied on certain platforms to NPNV and
+ * NPPV selectors that pass around pointers to COM interfaces. Newer
+ * compilers on some platforms may generate vtables that are not
+ * compatible with older compilers. To prevent older plugins from
+ * not understanding a new browser's ABI, these masks change the
+ * values of those selectors on those platforms. To remain backwards
+ * compatible with different versions of the browser, plugins can
+ * use these masks to dynamically determine and use the correct C++
+ * ABI that the browser is expecting. This does not apply to Windows
+ * as Microsoft's COM ABI will likely not change.
+ */
+
+#define NP_ABI_GCC3_MASK 0x10000000
+/*
+ * gcc 3.x generated vtables on UNIX and OSX are incompatible with
+ * previous compilers.
+ */
+#if (defined(XP_UNIX) && defined(__GNUC__) && (__GNUC__ >= 3))
+#define _NP_ABI_MIXIN_FOR_GCC3 NP_ABI_GCC3_MASK
+#else
+#define _NP_ABI_MIXIN_FOR_GCC3 0
+#endif
+
+#if defined(XP_MACOSX)
+#define NP_ABI_MACHO_MASK 0x01000000
+#define _NP_ABI_MIXIN_FOR_MACHO NP_ABI_MACHO_MASK
+#else
+#define _NP_ABI_MIXIN_FOR_MACHO 0
+#endif
+
+#define NP_ABI_MASK (_NP_ABI_MIXIN_FOR_GCC3 | _NP_ABI_MIXIN_FOR_MACHO)
+
+/*
+ * List of variable names for which NPP_GetValue shall be implemented
+ */
+typedef enum {
+ NPPVpluginNameString = 1,
+ NPPVpluginDescriptionString,
+ NPPVpluginWindowBool,
+ NPPVpluginTransparentBool,
+ NPPVjavaClass, /* Not implemented in WebKit */
+ NPPVpluginWindowSize, /* Not implemented in WebKit */
+ NPPVpluginTimerInterval, /* Not implemented in WebKit */
+ NPPVpluginScriptableInstance = (10 | NP_ABI_MASK), /* Not implemented in WebKit */
+ NPPVpluginScriptableIID = 11, /* Not implemented in WebKit */
+ NPPVjavascriptPushCallerBool = 12, /* Not implemented in WebKit */
+ NPPVpluginKeepLibraryInMemory = 13, /* Not implemented in WebKit */
+ NPPVpluginNeedsXEmbed = 14, /* Not implemented in WebKit */
+
+ /* Get the NPObject for scripting the plugin. Introduced in NPAPI minor version 14.
+ */
+ NPPVpluginScriptableNPObject = 15,
+
+ /* Get the plugin value (as \0-terminated UTF-8 string data) for
+ * form submission if the plugin is part of a form. Use
+ * NPN_MemAlloc() to allocate memory for the string data. Introduced
+ * in NPAPI minor version 15.
+ */
+ NPPVformValue = 16, /* Not implemented in WebKit */
+
+ NPPVpluginUrlRequestsDisplayedBool = 17, /* Not implemented in WebKit */
+
+ /* Checks if the plugin is interested in receiving the http body of
+ * all http requests (including failed ones, http status != 200).
+ */
+ NPPVpluginWantsAllNetworkStreams = 18,
+
+ /* Browsers can retrieve a native ATK accessibility plug ID via this variable. */
+ NPPVpluginNativeAccessibleAtkPlugId = 19,
+
+ /* Checks to see if the plug-in would like the browser to load the "src" attribute. */
+ NPPVpluginCancelSrcStream = 20
+
+#if defined(XP_TIZEN)
+ /* send message to NativeAPP. */
+ , NPPAppNotify = 29
+ /* request to launch/close Keyboard */
+ , NPPVpluginKeyboard = 30
+ /* request to lauch modal file chooser */
+ , NPPVpluginFileChooser = 33
+#endif
+
+#if defined(XP_MACOSX)
+ /* Used for negotiating drawing models */
+ , NPPVpluginDrawingModel = 1000
+ /* Used for negotiating event models */
+ , NPPVpluginEventModel = 1001
+ /* In the NPDrawingModelCoreAnimation drawing model, the browser asks the plug-in for a Core Animation layer. */
+ , NPPVpluginCoreAnimationLayer = 1003
+#endif
+
+#if defined(MOZ_PLATFORM_MAEMO) && (MOZ_PLATFORM_MAEMO >= 5)
+ , NPPVpluginWindowlessLocalBool = 2002
+#endif
+} NPPVariable;
+
+/*
+ * List of variable names for which NPN_GetValue should be implemented.
+ */
+typedef enum {
+ NPNVxDisplay = 1,
+ NPNVxtAppContext,
+ NPNVnetscapeWindow,
+ NPNVjavascriptEnabledBool,
+ NPNVasdEnabledBool,
+ NPNVisOfflineBool,
+
+ NPNVserviceManager = (10 | NP_ABI_MASK), /* Not implemented in WebKit */
+ NPNVDOMElement = (11 | NP_ABI_MASK), /* Not implemented in WebKit */
+ NPNVDOMWindow = (12 | NP_ABI_MASK), /* Not implemented in WebKit */
+ NPNVToolkit = (13 | NP_ABI_MASK), /* Not implemented in WebKit */
+ NPNVSupportsXEmbedBool = 14, /* Not implemented in WebKit */
+
+ /* Get the NPObject wrapper for the browser window. */
+ NPNVWindowNPObject = 15,
+
+ /* Get the NPObject wrapper for the plugins DOM element. */
+ NPNVPluginElementNPObject = 16,
+
+ NPNVSupportsWindowless = 17,
+
+ NPNVprivateModeBool = 18
+
+#if defined(XP_TIZEN)
+ , NPNPluginStorage = 1100
+ , NPNPluginSize = 1101
+#endif
+
+#if defined(XP_MACOSX)
+ /* Used for negotiating drawing models */
+ , NPNVpluginDrawingModel = 1000
+ , NPNVcontentsScaleFactor = 1001
+#ifndef NP_NO_QUICKDRAW
+ , NPNVsupportsQuickDrawBool = 2000
+#endif
+ , NPNVsupportsCoreGraphicsBool = 2001
+ , NPNVsupportsOpenGLBool = 2002
+ , NPNVsupportsCoreAnimationBool = 2003
+#ifndef NP_NO_CARBON
+ , NPNVsupportsCarbonBool = 3000 /* TRUE if the browser supports the Carbon event model */
+#endif
+ , NPNVsupportsCocoaBool = 3001 /* TRUE if the browser supports the Cocoa event model */
+ , NPNVsupportsUpdatedCocoaTextInputBool = 3002 /* TRUE if the browser supports the updated
+ Cocoa text input specification. */
+ , NPNVsupportsCompositingCoreAnimationPluginsBool = 74656 /* TRUE if the browser supports
+ CA model compositing */
+#endif /* XP_MACOSX */
+#if defined(MOZ_PLATFORM_MAEMO) && (MOZ_PLATFORM_MAEMO >= 5)
+ , NPNVSupportsWindowlessLocal = 2002
+#endif
+} NPNVariable;
+
+typedef enum {
+ NPNURLVCookie = 501,
+ NPNURLVProxy
+} NPNURLVariable;
+
+/*
+ * The type of Toolkit the widgets use
+ */
+typedef enum {
+ NPNVGtk12 = 1,
+ NPNVGtk2
+} NPNToolkitType;
+
+/*
+ * The type of a NPWindow - it specifies the type of the data structure
+ * returned in the window field.
+ */
+typedef enum {
+ NPWindowTypeWindow = 1,
+ NPWindowTypeDrawable
+} NPWindowType;
+
+typedef struct _NPWindow
+{
+ void* window; /* Platform specific window handle */
+ /* OS/2: x - Position of bottom left corner */
+ /* OS/2: y - relative to visible netscape window */
+ int32_t x; /* Position of top left corner relative */
+ int32_t y; /* to a netscape page. */
+ uint32_t width; /* Maximum window size */
+ uint32_t height;
+ NPRect clipRect; /* Clipping rectangle in port coordinates */
+#if defined(XP_UNIX) || defined(XP_SYMBIAN)
+ void * ws_info; /* Platform-dependent additonal data */
+#endif /* XP_UNIX || XP_SYMBIAN */
+ NPWindowType type; /* Is this a window or a drawable? */
+} NPWindow;
+
+typedef struct _NPImageExpose
+{
+ char* data; /* image pointer */
+ int32_t stride; /* Stride of data image pointer */
+ int32_t depth; /* Depth of image pointer */
+ int32_t x; /* Expose x */
+ int32_t y; /* Expose y */
+ uint32_t width; /* Expose width */
+ uint32_t height; /* Expose height */
+ NPSize dataSize; /* Data buffer size */
+ float translateX; /* translate X matrix value */
+ float translateY; /* translate Y matrix value */
+ float scaleX; /* scale X matrix value */
+ float scaleY; /* scale Y matrix value */
+} NPImageExpose;
+
+typedef struct _NPFullPrint
+{
+ NPBool pluginPrinted;/* Set TRUE if plugin handled fullscreen printing */
+ NPBool printOne; /* TRUE if plugin should print one copy to default
+ printer */
+ void* platformPrint; /* Platform-specific printing info */
+} NPFullPrint;
+
+typedef struct _NPEmbedPrint
+{
+ NPWindow window;
+ void* platformPrint; /* Platform-specific printing info */
+} NPEmbedPrint;
+
+typedef struct _NPPrint
+{
+ uint16_t mode; /* NP_FULL or NP_EMBED */
+ union
+ {
+ NPFullPrint fullPrint; /* if mode is NP_FULL */
+ NPEmbedPrint embedPrint; /* if mode is NP_EMBED */
+ } print;
+} NPPrint;
+
+#if defined(XP_MACOSX)
+#ifndef NP_NO_CARBON
+typedef EventRecord NPEvent;
+#else
+typedef void* NPEvent;
+#endif
+#elif defined(XP_WIN)
+typedef struct _NPEvent
+{
+ uint16_t event;
+ uintptr_t wParam;
+ uintptr_t lParam;
+} NPEvent;
+#elif defined(XP_OS2)
+typedef struct _NPEvent
+{
+ uint32_t event;
+ uint32_t wParam;
+ uint32_t lParam;
+} NPEvent;
+#elif defined(XP_UNIX) && defined(MOZ_X11)
+typedef XEvent NPEvent;
+#else
+typedef void* NPEvent;
+#endif
+
+#if defined(XP_MACOSX)
+typedef void* NPRegion;
+#ifndef NP_NO_QUICKDRAW
+typedef RgnHandle NPQDRegion;
+#endif
+typedef CGPathRef NPCGRegion;
+#elif defined(XP_WIN)
+typedef HRGN NPRegion;
+#elif defined(XP_UNIX) && defined(MOZ_X11)
+typedef Region NPRegion;
+#else
+typedef void *NPRegion;
+#endif
+
+typedef struct _NPNSString NPNSString;
+typedef struct _NPNSWindow NPNSWindow;
+typedef struct _NPNSMenu NPNSMenu;
+
+#if defined(XP_MACOSX)
+typedef NPNSMenu NPMenu;
+#else
+typedef void *NPMenu;
+#endif
+
+typedef enum {
+ NPCoordinateSpacePlugin = 1,
+ NPCoordinateSpaceWindow,
+ NPCoordinateSpaceFlippedWindow,
+ NPCoordinateSpaceScreen,
+ NPCoordinateSpaceFlippedScreen
+} NPCoordinateSpace;
+
+#if defined(XP_MACOSX)
+
+#ifndef NP_NO_QUICKDRAW
+typedef struct NP_Port
+{
+ CGrafPtr port;
+ int32_t portx; /* position inside the topmost window */
+ int32_t porty;
+} NP_Port;
+#endif /* NP_NO_QUICKDRAW */
+
+/*
+ * NP_CGContext is the type of the NPWindow's 'window' when the plugin specifies NPDrawingModelCoreGraphics
+ * as its drawing model.
+ */
+
+typedef struct NP_CGContext
+{
+ CGContextRef context;
+#ifdef NP_NO_CARBON
+ NPNSWindow *window;
+#else
+ void *window; /* A WindowRef or NULL for the Cocoa event model. */
+#endif
+} NP_CGContext;
+
+/*
+ * NP_GLContext is the type of the NPWindow's 'window' when the plugin specifies NPDrawingModelOpenGL as its
+ * drawing model.
+ */
+
+typedef struct NP_GLContext
+{
+ CGLContextObj context;
+#ifdef NP_NO_CARBON
+ NPNSWindow *window;
+#else
+ void *window; /* Can be either an NSWindow or a WindowRef depending on the event model */
+#endif
+} NP_GLContext;
+
+typedef enum {
+ NPCocoaEventDrawRect = 1,
+ NPCocoaEventMouseDown,
+ NPCocoaEventMouseUp,
+ NPCocoaEventMouseMoved,
+ NPCocoaEventMouseEntered,
+ NPCocoaEventMouseExited,
+ NPCocoaEventMouseDragged,
+ NPCocoaEventKeyDown,
+ NPCocoaEventKeyUp,
+ NPCocoaEventFlagsChanged,
+ NPCocoaEventFocusChanged,
+ NPCocoaEventWindowFocusChanged,
+ NPCocoaEventScrollWheel,
+ NPCocoaEventTextInput
+} NPCocoaEventType;
+
+typedef struct _NPCocoaEvent {
+ NPCocoaEventType type;
+ uint32_t version;
+ union {
+ struct {
+ uint32_t modifierFlags;
+ double pluginX;
+ double pluginY;
+ int32_t buttonNumber;
+ int32_t clickCount;
+ double deltaX;
+ double deltaY;
+ double deltaZ;
+ } mouse;
+ struct {
+ uint32_t modifierFlags;
+ NPNSString *characters;
+ NPNSString *charactersIgnoringModifiers;
+ NPBool isARepeat;
+ uint16_t keyCode;
+ } key;
+ struct {
+ CGContextRef context;
+ double x;
+ double y;
+ double width;
+ double height;
+ } draw;
+ struct {
+ NPBool hasFocus;
+ } focus;
+ struct {
+ NPNSString *text;
+ } text;
+ } data;
+} NPCocoaEvent;
+
+#ifndef NP_NO_CARBON
+/* Non-standard event types that can be passed to HandleEvent */
+enum NPEventType {
+ NPEventType_GetFocusEvent = (osEvt + 16),
+ NPEventType_LoseFocusEvent,
+ NPEventType_AdjustCursorEvent,
+ NPEventType_MenuCommandEvent,
+ NPEventType_ClippingChangedEvent,
+ NPEventType_ScrollingBeginsEvent = 1000,
+ NPEventType_ScrollingEndsEvent
+};
+#endif /* NP_NO_CARBON */
+
+#endif /* XP_MACOSX */
+
+/*
+ * Values for mode passed to NPP_New:
+ */
+#define NP_EMBED 1
+#define NP_FULL 2
+
+/*
+ * Values for stream type passed to NPP_NewStream:
+ */
+#define NP_NORMAL 1
+#define NP_SEEK 2
+#define NP_ASFILE 3
+#define NP_ASFILEONLY 4
+
+#define NP_MAXREADY (((unsigned)(~0)<<1)>>1)
+
+/*
+ * Flags for NPP_ClearSiteData.
+ */
+#define NP_CLEAR_ALL 0
+#define NP_CLEAR_CACHE (1 << 0)
+
+#if !defined(__LP64__)
+#if defined(XP_MACOSX)
+#pragma options align=reset
+#endif
+#endif /* __LP64__ */
+
+/*----------------------------------------------------------------------*/
+/* Error and Reason Code definitions */
+/*----------------------------------------------------------------------*/
+
+/*
+ * Values of type NPError:
+ */
+#define NPERR_BASE 0
+#define NPERR_NO_ERROR (NPERR_BASE + 0)
+#define NPERR_GENERIC_ERROR (NPERR_BASE + 1)
+#define NPERR_INVALID_INSTANCE_ERROR (NPERR_BASE + 2)
+#define NPERR_INVALID_FUNCTABLE_ERROR (NPERR_BASE + 3)
+#define NPERR_MODULE_LOAD_FAILED_ERROR (NPERR_BASE + 4)
+#define NPERR_OUT_OF_MEMORY_ERROR (NPERR_BASE + 5)
+#define NPERR_INVALID_PLUGIN_ERROR (NPERR_BASE + 6)
+#define NPERR_INVALID_PLUGIN_DIR_ERROR (NPERR_BASE + 7)
+#define NPERR_INCOMPATIBLE_VERSION_ERROR (NPERR_BASE + 8)
+#define NPERR_INVALID_PARAM (NPERR_BASE + 9)
+#define NPERR_INVALID_URL (NPERR_BASE + 10)
+#define NPERR_FILE_NOT_FOUND (NPERR_BASE + 11)
+#define NPERR_NO_DATA (NPERR_BASE + 12)
+#define NPERR_STREAM_NOT_SEEKABLE (NPERR_BASE + 13)
+
+/*
+ * Values of type NPReason:
+ */
+#define NPRES_BASE 0
+#define NPRES_DONE (NPRES_BASE + 0)
+#define NPRES_NETWORK_ERR (NPRES_BASE + 1)
+#define NPRES_USER_BREAK (NPRES_BASE + 2)
+
+/*
+ * Don't use these obsolete error codes any more.
+ */
+#define NP_NOERR NP_NOERR_is_obsolete_use_NPERR_NO_ERROR
+#define NP_EINVAL NP_EINVAL_is_obsolete_use_NPERR_GENERIC_ERROR
+#define NP_EABORT NP_EABORT_is_obsolete_use_NPRES_USER_BREAK
+
+/*
+ * Version feature information
+ */
+#define NPVERS_HAS_STREAMOUTPUT 8
+#define NPVERS_HAS_NOTIFICATION 9
+#define NPVERS_HAS_LIVECONNECT 9
+#define NPVERS_WIN16_HAS_LIVECONNECT 9
+#define NPVERS_68K_HAS_LIVECONNECT 11
+#define NPVERS_HAS_WINDOWLESS 11
+#define NPVERS_HAS_XPCONNECT_SCRIPTING 13 /* Not implemented in WebKit */
+#define NPVERS_HAS_NPRUNTIME_SCRIPTING 14
+#define NPVERS_HAS_FORM_VALUES 15 /* Not implemented in WebKit; see bug 13061 */
+#define NPVERS_HAS_POPUPS_ENABLED_STATE 16 /* Not implemented in WebKit */
+#define NPVERS_HAS_RESPONSE_HEADERS 17
+#define NPVERS_HAS_NPOBJECT_ENUM 18
+#define NPVERS_HAS_PLUGIN_THREAD_ASYNC_CALL 19
+#define NPVERS_HAS_ALL_NETWORK_STREAMS 20
+#define NPVERS_HAS_URL_AND_AUTH_INFO 21
+#define NPVERS_HAS_PRIVATE_MODE 22
+#define NPVERS_MACOSX_HAS_EVENT_MODELS 23
+#define NPVERS_HAS_CANCEL_SRC_STREAM 24
+#define NPVERS_HAS_ADVANCED_KEY_HANDLING 25
+#define NPVERS_HAS_URL_REDIRECT_HANDLING 26
+#define NPVERS_HAS_CLEAR_SITE_DATA 27
+
+/*----------------------------------------------------------------------*/
+/* Function Prototypes */
+/*----------------------------------------------------------------------*/
+
+#if defined(__OS2__)
+#define NP_LOADDS _System
+#else
+#define NP_LOADDS
+#endif
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/* NPP_* functions are provided by the plugin and called by the navigator. */
+
+#if defined(XP_UNIX)
+const char* NPP_GetMIMEDescription(void);
+#endif
+
+NPError NP_LOADDS NPP_Initialize(void);
+void NP_LOADDS NPP_Shutdown(void);
+NPError NP_LOADDS NPP_New(NPMIMEType pluginType, NPP instance,
+ uint16_t mode, int16_t argc, char* argn[],
+ char* argv[], NPSavedData* saved);
+NPError NP_LOADDS NPP_Destroy(NPP instance, NPSavedData** save);
+NPError NP_LOADDS NPP_SetWindow(NPP instance, NPWindow* window);
+NPError NP_LOADDS NPP_NewStream(NPP instance, NPMIMEType type,
+ NPStream* stream, NPBool seekable,
+ uint16_t* stype);
+NPError NP_LOADDS NPP_DestroyStream(NPP instance, NPStream* stream,
+ NPReason reason);
+int32_t NP_LOADDS NPP_WriteReady(NPP instance, NPStream* stream);
+int32_t NP_LOADDS NPP_Write(NPP instance, NPStream* stream, int32_t offset,
+ int32_t len, void* buffer);
+void NP_LOADDS NPP_StreamAsFile(NPP instance, NPStream* stream,
+ const char* fname);
+void NP_LOADDS NPP_Print(NPP instance, NPPrint* platformPrint);
+int16_t NP_LOADDS NPP_HandleEvent(NPP instance, void* event);
+void NP_LOADDS NPP_URLNotify(NPP instance, const char* url,
+ NPReason reason, void* notifyData);
+jref NP_LOADDS NPP_GetJavaClass(void);
+NPError NP_LOADDS NPP_GetValue(NPP instance, NPPVariable variable, void *value);
+NPError NP_LOADDS NPP_SetValue(NPP instance, NPNVariable variable, void *value);
+NPBool NP_LOADDS NPP_GotFocus(NPP instance, NPFocusDirection direction);
+void NP_LOADDS NPP_LostFocus(NPP instance);
+void NP_LOADDS NPP_URLRedirectNotify(NPP instance, const char* url, int32_t status, void* notifyData);
+NPError NP_LOADDS NPP_ClearSiteData(const char* site, uint64_t flags, uint64_t maxAge);
+char** NP_LOADDS NPP_GetSitesWithData(void);
+
+/* NPN_* functions are provided by the navigator and called by the plugin. */
+void NP_LOADDS NPN_Version(int* plugin_major, int* plugin_minor,
+ int* netscape_major, int* netscape_minor);
+NPError NP_LOADDS NPN_GetURLNotify(NPP instance, const char* url,
+ const char* target, void* notifyData);
+NPError NP_LOADDS NPN_GetURL(NPP instance, const char* url,
+ const char* target);
+NPError NP_LOADDS NPN_PostURLNotify(NPP instance, const char* url,
+ const char* target, uint32_t len,
+ const char* buf, NPBool file,
+ void* notifyData);
+NPError NP_LOADDS NPN_PostURL(NPP instance, const char* url,
+ const char* target, uint32_t len,
+ const char* buf, NPBool file);
+NPError NP_LOADDS NPN_RequestRead(NPStream* stream, NPByteRange* rangeList);
+NPError NP_LOADDS NPN_NewStream(NPP instance, NPMIMEType type,
+ const char* target, NPStream** stream);
+int32_t NP_LOADDS NPN_Write(NPP instance, NPStream* stream, int32_t len,
+ void* buffer);
+NPError NP_LOADDS NPN_DestroyStream(NPP instance, NPStream* stream,
+ NPReason reason);
+void NP_LOADDS NPN_Status(NPP instance, const char* message);
+const char* NP_LOADDS NPN_UserAgent(NPP instance);
+void* NP_LOADDS NPN_MemAlloc(uint32_t size);
+void NP_LOADDS NPN_MemFree(void* ptr);
+uint32_t NP_LOADDS NPN_MemFlush(uint32_t size);
+void NP_LOADDS NPN_ReloadPlugins(NPBool reloadPages);
+JRIEnv* NP_LOADDS NPN_GetJavaEnv(void);
+jref NP_LOADDS NPN_GetJavaPeer(NPP instance);
+NPError NP_LOADDS NPN_GetValue(NPP instance, NPNVariable variable,
+ void *value);
+NPError NP_LOADDS NPN_SetValue(NPP instance, NPPVariable variable,
+ void *value);
+void NP_LOADDS NPN_InvalidateRect(NPP instance, NPRect *invalidRect);
+void NP_LOADDS NPN_InvalidateRegion(NPP instance,
+ NPRegion invalidRegion);
+void NP_LOADDS NPN_ForceRedraw(NPP instance);
+void NP_LOADDS NPN_PushPopupsEnabledState(NPP instance, NPBool enabled);
+void NP_LOADDS NPN_PopPopupsEnabledState(NPP instance);
+void NP_LOADDS NPN_PluginThreadAsyncCall(NPP instance,
+ void (*func) (void *),
+ void *userData);
+NPError NP_LOADDS NPN_GetValueForURL(NPP instance, NPNURLVariable variable,
+ const char *url, char **value,
+ uint32_t *len);
+NPError NP_LOADDS NPN_SetValueForURL(NPP instance, NPNURLVariable variable,
+ const char *url, const char *value,
+ uint32_t len);
+NPError NP_LOADDS NPN_GetAuthenticationInfo(NPP instance,
+ const char *protocol,
+ const char *host, int32_t port,
+ const char *scheme,
+ const char *realm,
+ char **username, uint32_t *ulen,
+ char **password,
+ uint32_t *plen);
+uint32_t NP_LOADDS NPN_ScheduleTimer(NPP instance, uint32_t interval, NPBool repeat, void (*timerFunc)(NPP npp, uint32_t timerID));
+void NP_LOADDS NPN_UnscheduleTimer(NPP instance, uint32_t timerID);
+NPError NP_LOADDS NPN_PopUpContextMenu(NPP instance, NPMenu* menu);
+NPBool NP_LOADDS NPN_ConvertPoint(NPP instance, double sourceX, double sourceY, NPCoordinateSpace sourceSpace, double *destX, double *destY, NPCoordinateSpace destSpace);
+
+#ifdef __cplusplus
+} /* end extern "C" */
+#endif
+
+#endif /* RC_INVOKED */
+#if defined(__OS2__)
+#pragma pack()
+#endif
+
+#endif /* npapi_h_ */
diff --git a/Template/Tizen Native/Library/npplugin/project/inc/external/npfunctions.h b/Template/Tizen Native/Library/npplugin/project/inc/external/npfunctions.h
new file mode 100755
index 0000000..0d4f3fc
--- /dev/null
+++ b/Template/Tizen Native/Library/npplugin/project/inc/external/npfunctions.h
@@ -0,0 +1,223 @@
+/*
+ * Copyright (C) 2007 Apple Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+ * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+#ifndef NPFUNCTIONS_H
+#define NPFUNCTIONS_H
+
+
+#include "npruntime.h"
+#include "npapi.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#if defined(XP_WIN)
+#define EXPORTED_CALLBACK(_type, _name) _type (__stdcall * _name)
+#else
+#define EXPORTED_CALLBACK(_type, _name) _type (* _name)
+#endif
+
+typedef NPError (*NPN_GetURLNotifyProcPtr)(NPP instance, const char* URL, const char* window, void* notifyData);
+typedef NPError (*NPN_PostURLNotifyProcPtr)(NPP instance, const char* URL, const char* window, uint32_t len, const char* buf, NPBool file, void* notifyData);
+typedef NPError (*NPN_RequestReadProcPtr)(NPStream* stream, NPByteRange* rangeList);
+typedef NPError (*NPN_NewStreamProcPtr)(NPP instance, NPMIMEType type, const char* window, NPStream** stream);
+typedef int32_t (*NPN_WriteProcPtr)(NPP instance, NPStream* stream, int32_t len, void* buffer);
+typedef NPError (*NPN_DestroyStreamProcPtr)(NPP instance, NPStream* stream, NPReason reason);
+typedef void (*NPN_StatusProcPtr)(NPP instance, const char* message);
+typedef const char*(*NPN_UserAgentProcPtr)(NPP instance);
+typedef void* (*NPN_MemAllocProcPtr)(uint32_t size);
+typedef void (*NPN_MemFreeProcPtr)(void* ptr);
+typedef uint32_t (*NPN_MemFlushProcPtr)(uint32_t size);
+typedef void (*NPN_ReloadPluginsProcPtr)(NPBool reloadPages);
+typedef NPError (*NPN_GetValueProcPtr)(NPP instance, NPNVariable variable, void *ret_value);
+typedef NPError (*NPN_SetValueProcPtr)(NPP instance, NPPVariable variable, void *value);
+typedef void (*NPN_InvalidateRectProcPtr)(NPP instance, NPRect *rect);
+typedef void (*NPN_InvalidateRegionProcPtr)(NPP instance, NPRegion region);
+typedef void (*NPN_ForceRedrawProcPtr)(NPP instance);
+typedef NPError (*NPN_GetURLProcPtr)(NPP instance, const char* URL, const char* window);
+typedef NPError (*NPN_PostURLProcPtr)(NPP instance, const char* URL, const char* window, uint32_t len, const char* buf, NPBool file);
+typedef void* (*NPN_GetJavaEnvProcPtr)(void);
+typedef void* (*NPN_GetJavaPeerProcPtr)(NPP instance);
+typedef void (*NPN_PushPopupsEnabledStateProcPtr)(NPP instance, NPBool enabled);
+typedef void (*NPN_PopPopupsEnabledStateProcPtr)(NPP instance);
+typedef void (*NPN_PluginThreadAsyncCallProcPtr)(NPP npp, void (*func)(void *), void *userData);
+typedef NPError (*NPN_GetValueForURLProcPtr)(NPP npp, NPNURLVariable variable, const char* url, char** value, uint32_t* len);
+typedef NPError (*NPN_SetValueForURLProcPtr)(NPP npp, NPNURLVariable variable, const char* url, const char* value, uint32_t len);
+typedef NPError (*NPN_GetAuthenticationInfoProcPtr)(NPP npp, const char* protocol, const char* host, int32_t port, const char* scheme, const char *realm, char** username, uint32_t* ulen, char** password, uint32_t* plen);
+
+typedef uint32_t (*NPN_ScheduleTimerProcPtr)(NPP npp, uint32_t interval, NPBool repeat, void (*timerFunc)(NPP npp, uint32_t timerID));
+typedef void (*NPN_UnscheduleTimerProcPtr)(NPP npp, uint32_t timerID);
+typedef NPError (*NPN_PopUpContextMenuProcPtr)(NPP instance, NPMenu* menu);
+typedef NPBool (*NPN_ConvertPointProcPtr)(NPP npp, double sourceX, double sourceY, NPCoordinateSpace sourceSpace, double *destX, double *destY, NPCoordinateSpace destSpace);
+
+typedef void (*NPN_ReleaseVariantValueProcPtr) (NPVariant *variant);
+
+typedef NPIdentifier (*NPN_GetStringIdentifierProcPtr) (const NPUTF8 *name);
+typedef void (*NPN_GetStringIdentifiersProcPtr) (const NPUTF8 **names, int32_t nameCount, NPIdentifier *identifiers);
+typedef NPIdentifier (*NPN_GetIntIdentifierProcPtr) (int32_t intid);
+typedef int32_t (*NPN_IntFromIdentifierProcPtr) (NPIdentifier identifier);
+typedef bool (*NPN_IdentifierIsStringProcPtr) (NPIdentifier identifier);
+typedef NPUTF8 *(*NPN_UTF8FromIdentifierProcPtr) (NPIdentifier identifier);
+
+typedef NPObject* (*NPN_CreateObjectProcPtr) (NPP, NPClass *aClass);
+typedef NPObject* (*NPN_RetainObjectProcPtr) (NPObject *obj);
+typedef void (*NPN_ReleaseObjectProcPtr) (NPObject *obj);
+typedef bool (*NPN_InvokeProcPtr) (NPP npp, NPObject *obj, NPIdentifier methodName, const NPVariant *args, unsigned argCount, NPVariant *result);
+typedef bool (*NPN_InvokeDefaultProcPtr) (NPP npp, NPObject *obj, const NPVariant *args, unsigned argCount, NPVariant *result);
+typedef bool (*NPN_EvaluateProcPtr) (NPP npp, NPObject *obj, NPString *script, NPVariant *result);
+typedef bool (*NPN_GetPropertyProcPtr) (NPP npp, NPObject *obj, NPIdentifier propertyName, NPVariant *result);
+typedef bool (*NPN_SetPropertyProcPtr) (NPP npp, NPObject *obj, NPIdentifier propertyName, const NPVariant *value);
+typedef bool (*NPN_HasPropertyProcPtr) (NPP, NPObject *npobj, NPIdentifier propertyName);
+typedef bool (*NPN_HasMethodProcPtr) (NPP npp, NPObject *npobj, NPIdentifier methodName);
+typedef bool (*NPN_RemovePropertyProcPtr) (NPP npp, NPObject *obj, NPIdentifier propertyName);
+typedef void (*NPN_SetExceptionProcPtr) (NPObject *obj, const NPUTF8 *message);
+typedef bool (*NPN_EnumerateProcPtr) (NPP npp, NPObject *npobj, NPIdentifier **identifier, uint32_t *count);
+typedef bool (*NPN_ConstructProcPtr)(NPP npp, NPObject* obj, const NPVariant *args, uint32_t argCount, NPVariant *result);
+
+typedef NPError (*NPP_NewProcPtr)(NPMIMEType pluginType, NPP instance, uint16_t mode, int16_t argc, char* argn[], char* argv[], NPSavedData* saved);
+typedef NPError (*NPP_DestroyProcPtr)(NPP instance, NPSavedData** save);
+typedef NPError (*NPP_SetWindowProcPtr)(NPP instance, NPWindow* window);
+typedef NPError (*NPP_NewStreamProcPtr)(NPP instance, NPMIMEType type, NPStream* stream, NPBool seekable, uint16_t* stype);
+typedef NPError (*NPP_DestroyStreamProcPtr)(NPP instance, NPStream* stream, NPReason reason);
+typedef void (*NPP_StreamAsFileProcPtr)(NPP instance, NPStream* stream, const char* fname);
+typedef int32_t (*NPP_WriteReadyProcPtr)(NPP instance, NPStream* stream);
+typedef int32_t (*NPP_WriteProcPtr)(NPP instance, NPStream* stream, int32_t offset, int32_t len, void* buffer);
+typedef void (*NPP_PrintProcPtr)(NPP instance, NPPrint* platformPrint);
+typedef int16_t (*NPP_HandleEventProcPtr)(NPP instance, void* event);
+typedef void (*NPP_URLNotifyProcPtr)(NPP instance, const char* URL, NPReason reason, void* notifyData);
+typedef NPError (*NPP_GetValueProcPtr)(NPP instance, NPPVariable variable, void *ret_value);
+typedef NPError (*NPP_SetValueProcPtr)(NPP instance, NPNVariable variable, void *value);
+typedef NPBool (*NPP_GotFocusPtr)(NPP instance, NPFocusDirection direction);
+typedef void (*NPP_LostFocusPtr)(NPP instance);
+typedef void (*NPP_URLRedirectNotifyPtr)(NPP instance, const char* url, int32_t status, void* notifyData);
+typedef NPError (*NPP_ClearSiteDataPtr)(const char* site, uint64_t flags, uint64_t maxAge);
+typedef char** (*NPP_GetSitesWithDataPtr)(void);
+
+typedef void *(*NPP_GetJavaClassProcPtr)(void);
+typedef void* JRIGlobalRef; //not using this right now
+
+typedef struct _NPNetscapeFuncs {
+ uint16_t size;
+ uint16_t version;
+
+ NPN_GetURLProcPtr geturl;
+ NPN_PostURLProcPtr posturl;
+ NPN_RequestReadProcPtr requestread;
+ NPN_NewStreamProcPtr newstream;
+ NPN_WriteProcPtr write;
+ NPN_DestroyStreamProcPtr destroystream;
+ NPN_StatusProcPtr status;
+ NPN_UserAgentProcPtr uagent;
+ NPN_MemAllocProcPtr memalloc;
+ NPN_MemFreeProcPtr memfree;
+ NPN_MemFlushProcPtr memflush;
+ NPN_ReloadPluginsProcPtr reloadplugins;
+ NPN_GetJavaEnvProcPtr getJavaEnv;
+ NPN_GetJavaPeerProcPtr getJavaPeer;
+ NPN_GetURLNotifyProcPtr geturlnotify;
+ NPN_PostURLNotifyProcPtr posturlnotify;
+ NPN_GetValueProcPtr getvalue;
+ NPN_SetValueProcPtr setvalue;
+ NPN_InvalidateRectProcPtr invalidaterect;
+ NPN_InvalidateRegionProcPtr invalidateregion;
+ NPN_ForceRedrawProcPtr forceredraw;
+
+ NPN_GetStringIdentifierProcPtr getstringidentifier;
+ NPN_GetStringIdentifiersProcPtr getstringidentifiers;
+ NPN_GetIntIdentifierProcPtr getintidentifier;
+ NPN_IdentifierIsStringProcPtr identifierisstring;
+ NPN_UTF8FromIdentifierProcPtr utf8fromidentifier;
+ NPN_IntFromIdentifierProcPtr intfromidentifier;
+ NPN_CreateObjectProcPtr createobject;
+ NPN_RetainObjectProcPtr retainobject;
+ NPN_ReleaseObjectProcPtr releaseobject;
+ NPN_InvokeProcPtr invoke;
+ NPN_InvokeDefaultProcPtr invokeDefault;
+ NPN_EvaluateProcPtr evaluate;
+ NPN_GetPropertyProcPtr getproperty;
+ NPN_SetPropertyProcPtr setproperty;
+ NPN_RemovePropertyProcPtr removeproperty;
+ NPN_HasPropertyProcPtr hasproperty;
+ NPN_HasMethodProcPtr hasmethod;
+ NPN_ReleaseVariantValueProcPtr releasevariantvalue;
+ NPN_SetExceptionProcPtr setexception;
+ NPN_PushPopupsEnabledStateProcPtr pushpopupsenabledstate;
+ NPN_PopPopupsEnabledStateProcPtr poppopupsenabledstate;
+ NPN_EnumerateProcPtr enumerate;
+ NPN_PluginThreadAsyncCallProcPtr pluginthreadasynccall;
+ NPN_ConstructProcPtr construct;
+ NPN_GetValueForURLProcPtr getvalueforurl;
+ NPN_SetValueForURLProcPtr setvalueforurl;
+ NPN_GetAuthenticationInfoProcPtr getauthenticationinfo;
+ NPN_ScheduleTimerProcPtr scheduletimer;
+ NPN_UnscheduleTimerProcPtr unscheduletimer;
+ NPN_PopUpContextMenuProcPtr popupcontextmenu;
+ NPN_ConvertPointProcPtr convertpoint;
+} NPNetscapeFuncs;
+
+typedef struct _NPPluginFuncs {
+ uint16_t size;
+ uint16_t version;
+ NPP_NewProcPtr newp;
+ NPP_DestroyProcPtr destroy;
+ NPP_SetWindowProcPtr setwindow;
+ NPP_NewStreamProcPtr newstream;
+ NPP_DestroyStreamProcPtr destroystream;
+ NPP_StreamAsFileProcPtr asfile;
+ NPP_WriteReadyProcPtr writeready;
+ NPP_WriteProcPtr write;
+ NPP_PrintProcPtr print;
+ NPP_HandleEventProcPtr event;
+ NPP_URLNotifyProcPtr urlnotify;
+ JRIGlobalRef javaClass;
+ NPP_GetValueProcPtr getvalue;
+ NPP_SetValueProcPtr setvalue;
+ NPP_GotFocusPtr gotfocus;
+ NPP_LostFocusPtr lostfocus;
+ NPP_URLRedirectNotifyPtr urlredirectnotify;
+ NPP_ClearSiteDataPtr clearsitedata;
+ NPP_GetSitesWithDataPtr getsiteswithdata;
+} NPPluginFuncs;
+
+typedef EXPORTED_CALLBACK(NPError, NP_GetEntryPointsFuncPtr)(NPPluginFuncs*);
+typedef EXPORTED_CALLBACK(void, NPP_ShutdownProcPtr)(void);
+
+#if defined(XP_MACOSX)
+typedef void (*BP_CreatePluginMIMETypesPreferencesFuncPtr)(void);
+typedef NPError (*MainFuncPtr)(NPNetscapeFuncs*, NPPluginFuncs*, NPP_ShutdownProcPtr*);
+#endif
+
+#if defined(XP_UNIX)
+typedef EXPORTED_CALLBACK(NPError, NP_InitializeFuncPtr)(NPNetscapeFuncs*, NPPluginFuncs*);
+typedef EXPORTED_CALLBACK(const char*, NP_GetMIMEDescriptionFuncPtr)(void);
+#else
+typedef EXPORTED_CALLBACK(NPError, NP_InitializeFuncPtr)(NPNetscapeFuncs*);
+#endif
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
diff --git a/Template/Tizen Native/Library/npplugin/project/inc/external/npruntime.h b/Template/Tizen Native/Library/npplugin/project/inc/external/npruntime.h
new file mode 100755
index 0000000..828a340
--- /dev/null
+++ b/Template/Tizen Native/Library/npplugin/project/inc/external/npruntime.h
@@ -0,0 +1,393 @@
+/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * Copyright (c) 2004, Apple Computer, Inc. and The Mozilla Foundation.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are
+ * met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * 3. Neither the names of Apple Computer, Inc. ("Apple") or The Mozilla
+ * Foundation ("Mozilla") nor the names of their contributors may be used
+ * to endorse or promote products derived from this software without
+ * specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE, MOZILLA AND THEIR CONTRIBUTORS "AS
+ * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+ * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE, MOZILLA OR
+ * THEIR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
+ * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+ * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ */
+#ifndef _NP_RUNTIME_H_
+#define _NP_RUNTIME_H_
+
+#include "npapi.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/*
+ This API is used to facilitate binding code written in C to script
+ objects. The API in this header does not assume the presence of a
+ user agent. That is, it can be used to bind C code to scripting
+ environments outside of the context of a user agent.
+
+ However, the normal use of the this API is in the context of a
+ scripting environment running in a browser or other user agent.
+ In particular it is used to support the extended Netscape
+ script-ability API for plugins (NP-SAP). NP-SAP is an extension
+ of the Netscape plugin API. As such we have adopted the use of
+ the "NP" prefix for this API.
+
+ The following NP{N|P}Variables were added to the Netscape plugin
+ API (in npapi.h):
+
+ NPNVWindowNPObject
+ NPNVPluginElementNPObject
+ NPPVpluginScriptableNPObject
+
+ These variables are exposed through NPN_GetValue() and
+ NPP_GetValue() (respectively) and are used to establish the
+ initial binding between the user agent and native code. The DOM
+ objects in the user agent can be examined and manipulated using
+ the NPN_ functions that operate on NPObjects described in this
+ header.
+
+ To the extent possible the assumptions about the scripting
+ language used by the scripting environment have been minimized.
+*/
+
+#define NP_BEGIN_MACRO do {
+#define NP_END_MACRO } while (0)
+
+/*
+ Objects (non-primitive data) passed between 'C' and script is
+ always wrapped in an NPObject. The 'interface' of an NPObject is
+ described by an NPClass.
+*/
+typedef struct NPObject NPObject;
+typedef struct NPClass NPClass;
+
+typedef char NPUTF8;
+typedef struct _NPString {
+ const NPUTF8 *UTF8Characters;
+ uint32_t UTF8Length;
+} NPString;
+
+typedef enum {
+ NPVariantType_Void,
+ NPVariantType_Null,
+ NPVariantType_Bool,
+ NPVariantType_Int32,
+ NPVariantType_Double,
+ NPVariantType_String,
+ NPVariantType_Object
+} NPVariantType;
+
+typedef struct _NPVariant {
+ NPVariantType type;
+ union {
+ bool boolValue;
+ int32_t intValue;
+ double doubleValue;
+ NPString stringValue;
+ NPObject *objectValue;
+ } value;
+} NPVariant;
+
+/*
+ NPN_ReleaseVariantValue is called on all 'out' parameters
+ references. Specifically it is to be called on variants that own
+ their value, as is the case with all non-const NPVariant*
+ arguments after a successful call to any methods (except this one)
+ in this API.
+
+ After calling NPN_ReleaseVariantValue, the type of the variant
+ will be NPVariantType_Void.
+*/
+void NPN_ReleaseVariantValue(NPVariant *variant);
+
+#define NPVARIANT_IS_VOID(_v) ((_v).type == NPVariantType_Void)
+#define NPVARIANT_IS_NULL(_v) ((_v).type == NPVariantType_Null)
+#define NPVARIANT_IS_BOOLEAN(_v) ((_v).type == NPVariantType_Bool)
+#define NPVARIANT_IS_INT32(_v) ((_v).type == NPVariantType_Int32)
+#define NPVARIANT_IS_DOUBLE(_v) ((_v).type == NPVariantType_Double)
+#define NPVARIANT_IS_STRING(_v) ((_v).type == NPVariantType_String)
+#define NPVARIANT_IS_OBJECT(_v) ((_v).type == NPVariantType_Object)
+
+#define NPVARIANT_TO_BOOLEAN(_v) ((_v).value.boolValue)
+#define NPVARIANT_TO_INT32(_v) ((_v).value.intValue)
+#define NPVARIANT_TO_DOUBLE(_v) ((_v).value.doubleValue)
+#define NPVARIANT_TO_STRING(_v) ((_v).value.stringValue)
+#define NPVARIANT_TO_OBJECT(_v) ((_v).value.objectValue)
+
+#define VOID_TO_NPVARIANT(_v) \
+NP_BEGIN_MACRO \
+ (_v).type = NPVariantType_Void; \
+ (_v).value.objectValue = NULL; \
+NP_END_MACRO
+
+#define NULL_TO_NPVARIANT(_v) \
+NP_BEGIN_MACRO \
+ (_v).type = NPVariantType_Null; \
+ (_v).value.objectValue = NULL; \
+NP_END_MACRO
+
+#define BOOLEAN_TO_NPVARIANT(_val, _v) \
+NP_BEGIN_MACRO \
+ (_v).type = NPVariantType_Bool; \
+ (_v).value.boolValue = !!(_val); \
+NP_END_MACRO
+
+#define INT32_TO_NPVARIANT(_val, _v) \
+NP_BEGIN_MACRO \
+ (_v).type = NPVariantType_Int32; \
+ (_v).value.intValue = _val; \
+NP_END_MACRO
+
+#define DOUBLE_TO_NPVARIANT(_val, _v) \
+NP_BEGIN_MACRO \
+ (_v).type = NPVariantType_Double; \
+ (_v).value.doubleValue = _val; \
+NP_END_MACRO
+
+#define STRINGZ_TO_NPVARIANT(_val, _v) \
+NP_BEGIN_MACRO \
+ (_v).type = NPVariantType_String; \
+ NPString str = { _val, uint32_t(strlen(_val)) }; \
+ (_v).value.stringValue = str; \
+NP_END_MACRO
+
+#define STRINGN_TO_NPVARIANT(_val, _len, _v) \
+NP_BEGIN_MACRO \
+ (_v).type = NPVariantType_String; \
+ NPString str = { _val, uint32_t(_len) }; \
+ (_v).value.stringValue = str; \
+NP_END_MACRO
+
+#define OBJECT_TO_NPVARIANT(_val, _v) \
+NP_BEGIN_MACRO \
+ (_v).type = NPVariantType_Object; \
+ (_v).value.objectValue = _val; \
+NP_END_MACRO
+
+
+/*
+ Type mappings (JavaScript types have been used for illustration
+ purposes):
+
+ JavaScript to C (NPVariant with type:)
+ undefined NPVariantType_Void
+ null NPVariantType_Null
+ Boolean NPVariantType_Bool
+ Number NPVariantType_Double or NPVariantType_Int32
+ String NPVariantType_String
+ Object NPVariantType_Object
+
+ C (NPVariant with type:) to JavaScript
+ NPVariantType_Void undefined
+ NPVariantType_Null null
+ NPVariantType_Bool Boolean
+ NPVariantType_Int32 Number
+ NPVariantType_Double Number
+ NPVariantType_String String
+ NPVariantType_Object Object
+*/
+
+typedef void *NPIdentifier;
+
+/*
+ NPObjects have methods and properties. Methods and properties are
+ identified with NPIdentifiers. These identifiers may be reflected
+ in script. NPIdentifiers can be either strings or integers, IOW,
+ methods and properties can be identified by either strings or
+ integers (i.e. foo["bar"] vs foo[1]). NPIdentifiers can be
+ compared using ==. In case of any errors, the requested
+ NPIdentifier(s) will be NULL. NPIdentifier lifetime is controlled
+ by the browser. Plugins do not need to worry about memory management
+ with regards to NPIdentifiers.
+*/
+NPIdentifier NPN_GetStringIdentifier(const NPUTF8 *name);
+void NPN_GetStringIdentifiers(const NPUTF8 **names, int32_t nameCount,
+ NPIdentifier *identifiers);
+NPIdentifier NPN_GetIntIdentifier(int32_t intid);
+bool NPN_IdentifierIsString(NPIdentifier identifier);
+
+/*
+ The NPUTF8 returned from NPN_UTF8FromIdentifier SHOULD be freed.
+*/
+NPUTF8 *NPN_UTF8FromIdentifier(NPIdentifier identifier);
+
+/*
+ Get the integer represented by identifier. If identifier is not an
+ integer identifier, the behaviour is undefined.
+*/
+int32_t NPN_IntFromIdentifier(NPIdentifier identifier);
+
+/*
+ NPObject behavior is implemented using the following set of
+ callback functions.
+
+ The NPVariant *result argument of these functions (where
+ applicable) should be released using NPN_ReleaseVariantValue().
+*/
+typedef NPObject *(*NPAllocateFunctionPtr)(NPP npp, NPClass *aClass);
+typedef void (*NPDeallocateFunctionPtr)(NPObject *npobj);
+typedef void (*NPInvalidateFunctionPtr)(NPObject *npobj);
+typedef bool (*NPHasMethodFunctionPtr)(NPObject *npobj, NPIdentifier name);
+typedef bool (*NPInvokeFunctionPtr)(NPObject *npobj, NPIdentifier name,
+ const NPVariant *args, uint32_t argCount,
+ NPVariant *result);
+typedef bool (*NPInvokeDefaultFunctionPtr)(NPObject *npobj,
+ const NPVariant *args,
+ uint32_t argCount,
+ NPVariant *result);
+typedef bool (*NPHasPropertyFunctionPtr)(NPObject *npobj, NPIdentifier name);
+typedef bool (*NPGetPropertyFunctionPtr)(NPObject *npobj, NPIdentifier name,
+ NPVariant *result);
+typedef bool (*NPSetPropertyFunctionPtr)(NPObject *npobj, NPIdentifier name,
+ const NPVariant *value);
+typedef bool (*NPRemovePropertyFunctionPtr)(NPObject *npobj,
+ NPIdentifier name);
+typedef bool (*NPEnumerationFunctionPtr)(NPObject *npobj, NPIdentifier **value,
+ uint32_t *count);
+typedef bool (*NPConstructFunctionPtr)(NPObject *npobj,
+ const NPVariant *args,
+ uint32_t argCount,
+ NPVariant *result);
+
+/*
+ NPObjects returned by create, retain, invoke, and getProperty pass
+ a reference count to the caller. That is, the callee adds a
+ reference count which passes to the caller. It is the caller's
+ responsibility to release the returned object.
+
+ NPInvokeFunctionPtr function may return 0 to indicate a void
+ result.
+
+ NPInvalidateFunctionPtr is called by the scripting environment
+ when the native code is shutdown. Any attempt to message a
+ NPObject instance after the invalidate callback has been
+ called will result in undefined behavior, even if the native code
+ is still retaining those NPObject instances. (The runtime
+ will typically return immediately, with 0 or NULL, from an attempt
+ to dispatch to a NPObject, but this behavior should not be
+ depended upon.)
+
+ The NPEnumerationFunctionPtr function may pass an array of
+ NPIdentifiers back to the caller. The callee allocs the memory of
+ the array using NPN_MemAlloc(), and it's the caller's responsibility
+ to release it using NPN_MemFree().
+*/
+struct NPClass
+{
+ uint32_t structVersion;
+ NPAllocateFunctionPtr allocate;
+ NPDeallocateFunctionPtr deallocate;
+ NPInvalidateFunctionPtr invalidate;
+ NPHasMethodFunctionPtr hasMethod;
+ NPInvokeFunctionPtr invoke;
+ NPInvokeDefaultFunctionPtr invokeDefault;
+ NPHasPropertyFunctionPtr hasProperty;
+ NPGetPropertyFunctionPtr getProperty;
+ NPSetPropertyFunctionPtr setProperty;
+ NPRemovePropertyFunctionPtr removeProperty;
+ NPEnumerationFunctionPtr enumerate;
+ NPConstructFunctionPtr construct;
+};
+
+#define NP_CLASS_STRUCT_VERSION 3
+
+#define NP_CLASS_STRUCT_VERSION_ENUM 2
+#define NP_CLASS_STRUCT_VERSION_CTOR 3
+
+#define NP_CLASS_STRUCT_VERSION_HAS_ENUM(npclass) \
+ ((npclass)->structVersion >= NP_CLASS_STRUCT_VERSION_ENUM)
+
+#define NP_CLASS_STRUCT_VERSION_HAS_CTOR(npclass) \
+ ((npclass)->structVersion >= NP_CLASS_STRUCT_VERSION_CTOR)
+
+struct NPObject {
+ NPClass *_class;
+ uint32_t referenceCount;
+ /*
+ * Additional space may be allocated here by types of NPObjects
+ */
+};
+
+/*
+ If the class has an allocate function, NPN_CreateObject invokes
+ that function, otherwise a NPObject is allocated and
+ returned. This method will initialize the referenceCount member of
+ the NPObject to 1.
+*/
+NPObject *NPN_CreateObject(NPP npp, NPClass *aClass);
+
+/*
+ Increment the NPObject's reference count.
+*/
+NPObject *NPN_RetainObject(NPObject *npobj);
+
+/*
+ Decremented the NPObject's reference count. If the reference
+ count goes to zero, the class's destroy function is invoke if
+ specified, otherwise the object is freed directly.
+*/
+void NPN_ReleaseObject(NPObject *npobj);
+
+/*
+ Functions to access script objects represented by NPObject.
+
+ Calls to script objects are synchronous. If a function returns a
+ value, it will be supplied via the result NPVariant
+ argument. Successful calls will return true, false will be
+ returned in case of an error.
+
+ Calls made from plugin code to script must be made from the thread
+ on which the plugin was initialized.
+*/
+
+bool NPN_Invoke(NPP npp, NPObject *npobj, NPIdentifier methodName,
+ const NPVariant *args, uint32_t argCount, NPVariant *result);
+bool NPN_InvokeDefault(NPP npp, NPObject *npobj, const NPVariant *args,
+ uint32_t argCount, NPVariant *result);
+bool NPN_Evaluate(NPP npp, NPObject *npobj, NPString *script,
+ NPVariant *result);
+bool NPN_GetProperty(NPP npp, NPObject *npobj, NPIdentifier propertyName,
+ NPVariant *result);
+bool NPN_SetProperty(NPP npp, NPObject *npobj, NPIdentifier propertyName,
+ const NPVariant *value);
+bool NPN_RemoveProperty(NPP npp, NPObject *npobj, NPIdentifier propertyName);
+bool NPN_HasProperty(NPP npp, NPObject *npobj, NPIdentifier propertyName);
+bool NPN_HasMethod(NPP npp, NPObject *npobj, NPIdentifier methodName);
+bool NPN_Enumerate(NPP npp, NPObject *npobj, NPIdentifier **identifier,
+ uint32_t *count);
+bool NPN_Construct(NPP npp, NPObject *npobj, const NPVariant *args,
+ uint32_t argCount, NPVariant *result);
+
+/*
+ NPN_SetException may be called to trigger a script exception upon
+ return from entry points into NPObjects. Typical usage:
+
+ NPN_SetException (npobj, message);
+*/
+void NPN_SetException(NPObject *npobj, const NPUTF8 *message);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
diff --git a/Template/Tizen Native/Library/npplugin/project/inc/external/nptypes.h b/Template/Tizen Native/Library/npplugin/project/inc/external/nptypes.h
new file mode 100755
index 0000000..3001288
--- /dev/null
+++ b/Template/Tizen Native/Library/npplugin/project/inc/external/nptypes.h
@@ -0,0 +1,121 @@
+/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* ***** BEGIN LICENSE BLOCK *****
+ * Version: MPL 1.1/GPL 2.0/LGPL 2.1
+ *
+ * The contents of this file are subject to the Mozilla Public License Version
+ * 1.1 (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.mozilla.org/MPL/
+ *
+ * Software distributed under the License is distributed on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
+ * for the specific language governing rights and limitations under the
+ * License.
+ *
+ * The Original Code is mozilla.org code.
+ *
+ * The Initial Developer of the Original Code is
+ * mozilla.org.
+ * Portions created by the Initial Developer are Copyright (C) 2004
+ * the Initial Developer. All Rights Reserved.
+ *
+ * Contributor(s):
+ * Johnny Stenback <jst@mozilla.org> (Original author)
+ *
+ * Alternatively, the contents of this file may be used under the terms of
+ * either the GNU General Public License Version 2 or later (the "GPL"), or
+ * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
+ * in which case the provisions of the GPL or the LGPL are applicable instead
+ * of those above. If you wish to allow use of your version of this file only
+ * under the terms of either the GPL or the LGPL, and not to allow others to
+ * use your version of this file under the terms of the MPL, indicate your
+ * decision by deleting the provisions above and replace them with the notice
+ * and other provisions required by the GPL or the LGPL. If you do not delete
+ * the provisions above, a recipient may use your version of this file under
+ * the terms of any one of the MPL, the GPL or the LGPL.
+ *
+ * ***** END LICENSE BLOCK ***** */
+
+#ifndef nptypes_h_
+#define nptypes_h_
+
+/*
+ * Header file for ensuring that C99 types ([u]int32_t, [u]int64_t and bool) and
+ * true/false macros are available.
+ */
+
+#if defined(WIN32) || defined(OS2)
+ /*
+ * Win32 and OS/2 don't know C99, so define [u]int_16/32/64 here. The bool
+ * is predefined tho, both in C and C++.
+ */
+ typedef short int16_t;
+ typedef unsigned short uint16_t;
+ typedef int int32_t;
+ typedef unsigned int uint32_t;
+ typedef long long int64_t;
+ typedef unsigned long long uint64_t;
+#elif defined(_AIX) || defined(__sun) || defined(__osf__) || defined(IRIX) || defined(HPUX)
+ /*
+ * AIX and SunOS ship a inttypes.h header that defines [u]int32_t,
+ * but not bool for C.
+ */
+ #include <inttypes.h>
+
+ #ifndef __cplusplus
+ typedef int bool;
+ #define true 1
+ #define false 0
+ #endif
+#elif defined(bsdi) || defined(FREEBSD) || defined(OPENBSD)
+ /*
+ * BSD/OS, FreeBSD, and OpenBSD ship sys/types.h that define int32_t and
+ * u_int32_t.
+ */
+ #include <sys/types.h>
+
+ /*
+ * BSD/OS ships no header that defines uint32_t, nor bool (for C)
+ */
+ #if defined(bsdi)
+ typedef u_int32_t uint32_t;
+ typedef u_int64_t uint64_t;
+
+ #if !defined(__cplusplus)
+ typedef int bool;
+ #define true 1
+ #define false 0
+ #endif
+ #else
+ /*
+ * FreeBSD and OpenBSD define uint32_t and bool.
+ */
+ #include <inttypes.h>
+ #include <stdbool.h>
+ #endif
+#elif defined(BEOS)
+ #include <inttypes.h>
+#else
+ /*
+ * For those that ship a standard C99 stdint.h header file, include
+ * it. Can't do the same for stdbool.h tho, since some systems ship
+ * with a stdbool.h file that doesn't compile!
+ */
+ #include <stdint.h>
+
+ #ifndef __cplusplus
+ #if !defined(__GNUC__) || (__GNUC__ > 2 || __GNUC_MINOR__ > 95)
+ #include <stdbool.h>
+ #else
+ /*
+ * GCC 2.91 can't deal with a typedef for bool, but a #define
+ * works.
+ */
+ #define bool int
+ #define true 1
+ #define false 0
+ #endif
+ #endif
+#endif
+
+#endif /* nptypes_h_ */
diff --git a/Template/Tizen Native/Library/npplugin/project/inc/npapi.h b/Template/Tizen Native/Library/npplugin/project/inc/npapi.h
new file mode 100755
index 0000000..7cd0891
--- /dev/null
+++ b/Template/Tizen Native/Library/npplugin/project/inc/npapi.h
@@ -0,0 +1,26 @@
+#ifndef _NPAPI_H_
+#define _NPAPI_H_
+
+/**
+ * This header file is included to define _EXPORT_.
+ */
+#include "external/npapi.h"
+#include "external/npfunctions.h"
+
+#define EXPORT_SYMBOL __attribute__((__visibility__("default")))
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+EXPORT_SYMBOL NPError NP_Initialize(NPNetscapeFuncs *aNPNFuncs, NPPluginFuncs *aNPPFuncs);
+EXPORT_SYMBOL void NP_Shutdown(void);
+EXPORT_SYMBOL const char* NP_GetMIMEDescription(void);
+EXPORT_SYMBOL NPError NP_GetValue(void *instance, NPPVariable variable, void *value);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif // _NPAPI_H_
+
diff --git a/Template/Tizen Native/Library/npplugin/project/src/npapi.cpp b/Template/Tizen Native/Library/npplugin/project/src/npapi.cpp
new file mode 100755
index 0000000..06cedbb
--- /dev/null
+++ b/Template/Tizen Native/Library/npplugin/project/src/npapi.cpp
@@ -0,0 +1,105 @@
+/**
+ * This file contains the exported symbol.
+ */
+#include "npapi.h"
+
+static NPNetscapeFuncs* g_npnFunc = 0;
+
+NPError NP_Initialize(NPNetscapeFuncs *aNPNFuncs, NPPluginFuncs *aNPPFuncs)
+{
+ g_npnFunc = aNPNFuncs;
+
+ aNPPFuncs->newp = NPP_New;
+ aNPPFuncs->destroy = NPP_Destroy;
+ aNPPFuncs->setwindow = NPP_SetWindow;
+ aNPPFuncs->newstream = NPP_NewStream;
+ aNPPFuncs->destroystream = NPP_DestroyStream;
+ aNPPFuncs->asfile = NPP_StreamAsFile;
+ aNPPFuncs->writeready = NPP_WriteReady;
+ aNPPFuncs->write = NPP_Write;
+ aNPPFuncs->print = NPP_Print;
+ aNPPFuncs->urlnotify = NPP_URLNotify;
+ aNPPFuncs->getvalue = NPP_GetValue;
+ aNPPFuncs->setvalue = NPP_SetValue;
+ aNPPFuncs->event = NPP_HandleEvent;
+
+ return NPERR_NO_ERROR;
+}
+
+void NP_Shutdown(void)
+{
+}
+
+const char* NP_GetMIMEDescription()
+{
+ return (char*) "application/test:test:NPPlugin Template";
+}
+
+NPError NP_GetValue(void *instance, NPPVariable variable, void *value)
+{
+ return NPERR_NO_ERROR;
+}
+
+// NPP Functions
+
+NPError NPP_New(NPMIMEType pluginType, NPP instance, uint16_t mode, int16_t argc, char* argn[], char* argv[], NPSavedData* saved)
+{
+ return NPERR_NO_ERROR;
+}
+
+NPError NPP_Destroy(NPP instance, NPSavedData** save)
+{
+ return NPERR_NO_ERROR;
+}
+
+NPError NPP_SetWindow(NPP instance, NPWindow* window)
+{
+ return NPERR_NO_ERROR;
+}
+
+NPError NPP_NewStream(NPP instance, NPMIMEType type, NPStream* stream, NPBool seekable, uint16_t* stype)
+{
+ return NPERR_NO_ERROR;
+}
+
+NPError NPP_DestroyStream(NPP instance, NPStream* stream, NPReason reason)
+{
+ return NPERR_NO_ERROR;
+}
+
+void NPP_StreamAsFile(NPP instance, NPStream* stream, const char* fname)
+{
+}
+
+int32_t NPP_WriteReady(NPP instance, NPStream* stream)
+{
+ return 0;
+}
+
+int32_t NPP_Write(NPP instance, NPStream* stream, int32_t offset, int32_t len, void* buffer)
+{
+ return 0;
+}
+
+void NPP_Print(NPP instance, NPPrint* platformPrint)
+{
+}
+
+void NPP_URLNotify(NPP instance, const char* URL, NPReason reason, void* notifyData)
+{
+}
+
+NPError NPP_GetValue(NPP instance, NPPVariable variable, void* value)
+{
+ return NPERR_NO_ERROR;
+}
+
+NPError NPP_SetValue(NPP instance, NPNVariable variable, void* value)
+{
+ return NPERR_NO_ERROR;
+}
+
+int16_t NPP_HandleEvent(NPP instance, void* event)
+{
+ return 0;
+}
diff --git a/Template/Tizen Native/Library/npplugin/sample.xml b/Template/Tizen Native/Library/npplugin/sample.xml
new file mode 100755
index 0000000..daf71b4
--- /dev/null
+++ b/Template/Tizen Native/Library/npplugin/sample.xml
@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<template>
+
+ <slp-property>
+ <property-group>
+ <sample-name>NPPlugin Shared Library</sample-name>
+ <category>Library Template</category>
+ <sdk-version>0.16</sdk-version>
+ <project-type>org.tizen.nativecpp.buildArtefactType.sharedLib</project-type>
+ <sample-description>description.xml</sample-description>
+ </property-group>
+ </slp-property>
+
+ <process type="org.tizen.nativeappcommon.TizenCopyFolder">
+ <simple name="projectName" value="$(projectName)"/>
+ <simple name="folderPath" value="project"/>
+ <complex-array name="replaceableFiles">
+ <element>
+ <simple name="sourcePath" value="src/npapi.cpp"/>
+ <simple name="targetPath" value="src/npapi.cpp"/>
+ <simple name="replaceable" value="false"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="inc/external/npruntime.h"/>
+ <simple name="targetPath" value="inc/external/npruntime.h"/>
+ <simple name="replaceable" value="false"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="inc/external/nptypes.h"/>
+ <simple name="targetPath" value="inc/external/nptypes.h"/>
+ <simple name="replaceable" value="false"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="inc/external/npfunctions.h"/>
+ <simple name="targetPath" value="inc/external/npfunctions.h"/>
+ <simple name="replaceable" value="false"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="inc/external/npapi.h"/>
+ <simple name="targetPath" value="inc/external/npapi.h"/>
+ <simple name="replaceable" value="false"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="inc/npapi.h"/>
+ <simple name="targetPath" value="inc/npapi.h"/>
+ <simple name="replaceable" value="false"/>
+ </element>
+ </complex-array>
+ </process>
+</template>
diff --git a/Template/Tizen Native/Library/npplugin/screenshot.png b/Template/Tizen Native/Library/npplugin/screenshot.png
new file mode 100755
index 0000000..a8e5e1a
--- /dev/null
+++ b/Template/Tizen Native/Library/npplugin/screenshot.png
Binary files differ
diff --git a/Template/Tizen Native/Library/sharedlibrary/description.xml b/Template/Tizen Native/Library/sharedlibrary/description.xml
new file mode 100755
index 0000000..a51d4cb
--- /dev/null
+++ b/Template/Tizen Native/Library/sharedlibrary/description.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="utf-8"?>
+<?xml-stylesheet type="text/xsl" href="../../../../description.xsl"?>
+
+<Overview version="0.17.1">
+ <SampleName>Shared Library</SampleName>
+ <SampleVersion>1.0</SampleVersion>
+ <Preview>screenshot.png</Preview>
+ <Description>
+ This is shared library(*.so) template project.
+ </Description>
+ <TechnologyList>
+ <Technology>
+ <Name>Shared Library</Name>
+ <Info>Shared libraries are libraries that are loaded by programs when they start. When a shared library is installed properly, all programs that start afterwards automatically use the new shared library. </Info>
+ <Url></Url>
+ </Technology>
+ </TechnologyList>
+ <WidgetList>
+ </WidgetList>
+ <ReferenceList>
+ </ReferenceList>
+ <UpdateURL>
+ http://slp.samsung.com/download/template/navigation_update
+ </UpdateURL>
+</Overview>
diff --git a/Template/Tizen Native/Library/sharedlibrary/project/inc/App.h b/Template/Tizen Native/Library/sharedlibrary/project/inc/App.h
new file mode 100755
index 0000000..c1dfac7
--- /dev/null
+++ b/Template/Tizen Native/Library/sharedlibrary/project/inc/App.h
@@ -0,0 +1,29 @@
+#ifndef _$(baseNameUpper)_H_
+#define _$(baseNameUpper)_H_
+
+/**
+ * This header file is included to define _EXPORT_.
+ */
+#include <FBase.h>
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif // __cplusplus
+
+// This class is exported from $(baseName).so
+class _EXPORT_ Ospc$(baseName) {
+public:
+ Ospc$(baseName)(void);
+ // TODO: Add your methods here
+};
+
+// This method is exported from $(baseName).so
+_EXPORT_ int Ospf$(baseName)(void);
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+#endif // _$(baseNameUpper)_H_
+
diff --git a/Template/Tizen Native/Library/sharedlibrary/project/src/App.cpp b/Template/Tizen Native/Library/sharedlibrary/project/src/App.cpp
new file mode 100644
index 0000000..d789efa
--- /dev/null
+++ b/Template/Tizen Native/Library/sharedlibrary/project/src/App.cpp
@@ -0,0 +1,19 @@
+/**
+ * This file contains the exported symbol.
+ */
+#include "$(baseName).h"
+
+// This is the constructor of a class that has been exported.
+// See $(baseName).h for the class declaration.
+Ospc$(baseName)::Ospc$(baseName)(void)
+{
+ return;
+}
+
+// This is an example of an exported method.
+int
+Ospf$(baseName)(void)
+{
+ result r = E_SUCCESS;
+ return static_cast<int>(r);
+}
diff --git a/Template/Tizen Native/Library/sharedlibrary/sample.xml b/Template/Tizen Native/Library/sharedlibrary/sample.xml
new file mode 100644
index 0000000..7029637
--- /dev/null
+++ b/Template/Tizen Native/Library/sharedlibrary/sample.xml
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<template>
+
+ <slp-property>
+ <property-group>
+ <sample-name>Shared Library</sample-name>
+ <category>Library Template</category>
+ <sdk-version>0.16</sdk-version>
+ <project-type>org.tizen.nativecpp.buildArtefactType.sharedLib</project-type>
+ <sample-description>description.xml</sample-description>
+ </property-group>
+ </slp-property>
+
+ <process type="org.tizen.nativeappcommon.TizenCopyFolder">
+ <simple name="projectName" value="$(projectName)"/>
+ <simple name="folderPath" value="project"/>
+ <complex-array name="replaceableFiles">
+ <element>
+ <simple name="sourcePath" value="src/App.cpp"/>
+ <simple name="targetPath" value="src/$(baseName).cpp"/>
+ <simple name="replaceable" value="true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="inc/App.h"/>
+ <simple name="targetPath" value="inc/$(baseName).h"/>
+ <simple name="replaceable" value="true"/>
+ </element>
+ </complex-array>
+ </process>
+ <process type="org.tizen.nativecpp.SetDefaultFrameworks">
+ <simple name="projectName" value="$(projectName)"/>
+ <complex-array name="frameworkList">
+ <element>
+ <simple name="framework" value="osp"/>
+ </element>
+ </complex-array>
+ </process>
+
+</template>
diff --git a/Template/Tizen Native/Library/sharedlibrary/screenshot.png b/Template/Tizen Native/Library/sharedlibrary/screenshot.png
new file mode 100755
index 0000000..a8e5e1a
--- /dev/null
+++ b/Template/Tizen Native/Library/sharedlibrary/screenshot.png
Binary files differ
diff --git a/Template/Tizen Native/Library/staticlibrary/description.xml b/Template/Tizen Native/Library/staticlibrary/description.xml
new file mode 100755
index 0000000..639f517
--- /dev/null
+++ b/Template/Tizen Native/Library/staticlibrary/description.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="utf-8"?>
+<?xml-stylesheet type="text/xsl" href="../../../../description.xsl"?>
+
+<Overview version="0.17.1">
+ <SampleName>Static Library</SampleName>
+ <SampleVersion>1.0</SampleVersion>
+ <Preview>screenshot.png</Preview>
+ <Description>
+ This is static library(*.a) template project.
+ </Description>
+ <TechnologyList>
+ <Technology>
+ <Name>Static Library</Name>
+ <Info>Static libraries are simply a collection of ordinary object files. Static libraries permit users to link to programs without having to recompile its code, saving recompilation time.</Info>
+ <Url></Url>
+ </Technology>
+ </TechnologyList>
+ <WidgetList>
+ </WidgetList>
+ <ReferenceList>
+ </ReferenceList>
+ <UpdateURL>
+ http://slp.samsung.com/download/template/navigation_update
+ </UpdateURL>
+</Overview>
diff --git a/Template/Tizen Native/Library/staticlibrary/project/inc/App.h b/Template/Tizen Native/Library/staticlibrary/project/inc/App.h
new file mode 100755
index 0000000..060cee0
--- /dev/null
+++ b/Template/Tizen Native/Library/staticlibrary/project/inc/App.h
@@ -0,0 +1,24 @@
+#ifndef _$(baseNameUpper)_H_
+#define _$(baseNameUpper)_H_
+
+/**
+ * This header file is included to define _EXPORT_.
+ */
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif // __cplusplus
+
+class $(baseName) {
+public:
+ $(baseName)(void);
+ // TODO: Add your methods here
+};
+
+#ifdef __cplusplus
+}
+#endif // __cplusplus
+
+#endif // _$(baseNameUpper)_H_
+
diff --git a/Template/Tizen Native/Library/staticlibrary/project/src/App.cpp b/Template/Tizen Native/Library/staticlibrary/project/src/App.cpp
new file mode 100644
index 0000000..3455cd8
--- /dev/null
+++ b/Template/Tizen Native/Library/staticlibrary/project/src/App.cpp
@@ -0,0 +1,11 @@
+/**
+ * This file contains the exported symbol.
+ */
+#include "$(baseName).h"
+
+// This is the constructor of a class that has been exported.
+// See $(baseName).h for the class declaration.
+$(baseName)::$(baseName)(void)
+{
+ return;
+}
diff --git a/Template/Tizen Native/Library/staticlibrary/sample.xml b/Template/Tizen Native/Library/staticlibrary/sample.xml
new file mode 100644
index 0000000..885f7b0
--- /dev/null
+++ b/Template/Tizen Native/Library/staticlibrary/sample.xml
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<template>
+ <slp-property>
+ <property-group>
+ <sample-name>Static Library</sample-name>
+ <category>Library Template</category>
+ <sdk-version>0.16</sdk-version>
+ <project-type>org.tizen.nativecpp.buildArtefactType.staticLib</project-type>
+ <sample-description>description.xml</sample-description>
+ </property-group>
+ </slp-property>
+ <process type="org.tizen.nativeappcommon.TizenCopyFolder">
+ <simple name="projectName" value="$(projectName)"/>
+ <simple name="folderPath" value="project"/>
+ <complex-array name="replaceableFiles">
+ <element>
+ <simple name="sourcePath" value="src/App.cpp"/>
+ <simple name="targetPath" value="src/$(baseName).cpp"/>
+ <simple name="replaceable" value="true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="inc/App.h"/>
+ <simple name="targetPath" value="inc/$(baseName).h"/>
+ <simple name="replaceable" value="true"/>
+ </element>
+ </complex-array>
+ </process>
+ <process type="org.tizen.nativecpp.SetDefaultFrameworks">
+ <simple name="projectName" value="$(projectName)"/>
+ <complex-array name="frameworkList">
+ <element>
+ <simple name="framework" value="osp-static"/>
+ </element>
+ </complex-array>
+ </process>
+</template>
diff --git a/Template/Tizen Native/Library/staticlibrary/screenshot.png b/Template/Tizen Native/Library/staticlibrary/screenshot.png
new file mode 100755
index 0000000..a8e5e1a
--- /dev/null
+++ b/Template/Tizen Native/Library/staticlibrary/screenshot.png
Binary files differ
diff --git a/Template/Tizen Native/OpenGL Application/glplayerformapp/description.xml b/Template/Tizen Native/OpenGL Application/glplayerformapp/description.xml
new file mode 100755
index 0000000..fb362a7
--- /dev/null
+++ b/Template/Tizen Native/OpenGL Application/glplayerformapp/description.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8"?>
+<?xml-stylesheet type="text/xsl" href="../../../../description.xsl"?>
+
+<Overview version="0.17.1">
+ <SampleName> Form-based GL Application</SampleName>
+ <SampleVersion>1.0</SampleVersion>
+ <Preview>screenshot.png</Preview>
+ <Description>
+ This template is suitable for creating a simple project based on GlPlayer and GlRenderer, which help to use OpenGL-ES applications.
+ This template generates a Form-based application, which creates a gl window surface for the Form.
+ Form can be used with other UI controls, therefore, this template is fit for drawing 3D objects with OpenGL-ES APIs onto a control among several ones.
+ This template contains a GLRenderer instance which draws a rotating triangle.
+ What developers need to do is to override GlRenderer to draw each scene.
+ </Description>
+</Overview>
diff --git a/Template/Tizen Native/OpenGL Application/glplayerformapp/project/inc/AppResourceId.h b/Template/Tizen Native/OpenGL Application/glplayerformapp/project/inc/AppResourceId.h
new file mode 100644
index 0000000..7af87b9
--- /dev/null
+++ b/Template/Tizen Native/OpenGL Application/glplayerformapp/project/inc/AppResourceId.h
@@ -0,0 +1,5 @@
+#ifndef _APP_RESOURCE_ID_H_
+#define _APP_RESOURCE_ID_H_
+
+
+#endif //_APP_RESOURCE_ID_H_
diff --git a/Template/Tizen Native/OpenGL Application/glplayerformapp/project/inc/GLPlayerTemplate.h b/Template/Tizen Native/OpenGL Application/glplayerformapp/project/inc/GLPlayerTemplate.h
new file mode 100755
index 0000000..9544f5e
--- /dev/null
+++ b/Template/Tizen Native/OpenGL Application/glplayerformapp/project/inc/GLPlayerTemplate.h
@@ -0,0 +1,67 @@
+#ifndef _$(baseNameUpper)_APP_H_
+#define _$(baseNameUpper)_APP_H_
+
+$(pcheader)
+#include <FGrpGlPlayer.h>
+
+#include "GlRendererTemplate.h"
+
+// $(baseName)App must inherit from UiApp class
+// which provides basic features necessary to define an UiApp.
+class $(baseName)App
+ : public Tizen::App::UiApp
+ , public Tizen::System::IScreenEventListener
+ , public Tizen::Ui::IKeyEventListener
+{
+public:
+ // [Test] UiApp must have a factory method that creates an instance of itself.
+ static Tizen::App::UiApp* CreateInstance(void);
+
+ $(baseName)App(void);
+ virtual~$(baseName)App(void);
+
+ // Called when the UiApp is initializing.
+ virtual bool OnAppInitializing(Tizen::App::AppRegistry& appRegistry);
+
+ // Called when the UiApp initializing is finished.
+ virtual bool OnAppInitialized(void);
+
+ // Called when the UiApp is requested to terminate.
+ virtual bool OnAppWillTerminate(void);
+
+ // Called when the UiApp is terminating.
+ virtual bool OnAppTerminating(Tizen::App::AppRegistry& appRegistry, bool forcedTermination = false);
+
+ // Called when the UiApp's frame moves to the top of the screen.
+ virtual void OnForeground(void);
+
+ // Called when this UiApp's frame is moved from top of the screen to the background.
+ virtual void OnBackground(void);
+
+ // Called when the system memory is not sufficient to run the UiApp any further.
+ virtual void OnLowMemory(void);
+
+ // Called when the battery level changes.
+ virtual void OnBatteryLevelChanged(Tizen::System::BatteryLevel batteryLevel);
+
+ // Called when the screen turns on.
+ virtual void OnScreenOn(void);
+
+ // Called when the screen turns off.
+ virtual void OnScreenOff(void);
+
+ // Called when a key is pressed.
+ virtual void OnKeyPressed(const Tizen::Ui::Control& source, Tizen::Ui::KeyCode keyCode);
+
+ // Called when a key is released.
+ virtual void OnKeyReleased(const Tizen::Ui::Control& source, Tizen::Ui::KeyCode keyCode);
+
+ // Called when a key is pressed and held down for some time.
+ virtual void OnKeyLongPressed(const Tizen::Ui::Control& source, Tizen::Ui::KeyCode keyCode);
+
+private:
+ Tizen::Graphics::Opengl::GlPlayer* __player;
+ Tizen::Graphics::Opengl::IGlRenderer* __renderer;
+};
+
+#endif // _$(baseNameUpper)_APP_H_
diff --git a/Template/Tizen Native/OpenGL Application/glplayerformapp/project/inc/GLPlayerTemplateForm.h b/Template/Tizen Native/OpenGL Application/glplayerformapp/project/inc/GLPlayerTemplateForm.h
new file mode 100755
index 0000000..3e81f24
--- /dev/null
+++ b/Template/Tizen Native/OpenGL Application/glplayerformapp/project/inc/GLPlayerTemplateForm.h
@@ -0,0 +1,25 @@
+#ifndef _$(baseNameUpper)_FORM_H_
+#define _$(baseNameUpper)_FORM_H_
+
+$(pcheader)
+
+class $(baseName)Form
+ : public Tizen::Ui::Controls::Form
+ , public Tizen::Ui::IActionEventListener
+ , public Tizen::Ui::Controls::IFormBackEventListener
+{
+public:
+ $(baseName)Form(void);
+ virtual ~$(baseName)Form(void);
+ bool Initialize(void);
+
+ virtual result OnInitializing(void);
+ virtual result OnTerminating(void);
+ virtual void OnFormBackRequested(Tizen::Ui::Controls::Form& source);
+ virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);
+
+protected:
+ static const int ID_BUTTON_OK = 101;
+};
+
+#endif //_$(baseNameUpper)_FORM_H_
diff --git a/Template/Tizen Native/OpenGL Application/glplayerformapp/project/inc/GLPlayerTemplateFrame.h b/Template/Tizen Native/OpenGL Application/glplayerformapp/project/inc/GLPlayerTemplateFrame.h
new file mode 100755
index 0000000..85c65e9
--- /dev/null
+++ b/Template/Tizen Native/OpenGL Application/glplayerformapp/project/inc/GLPlayerTemplateFrame.h
@@ -0,0 +1,17 @@
+#ifndef _$(baseNameUpper)_FRAME_H_
+#define _$(baseNameUpper)_FRAME_H_
+
+$(pcheader)
+
+class $(baseName)Frame
+ : public Tizen::Ui::Controls::Frame
+{
+public:
+ $(baseName)Frame(void);
+ virtual ~$(baseName)Frame(void);
+
+ virtual result OnInitializing(void);
+ virtual result OnTerminating(void);
+};
+
+#endif //_$(baseNameUpper)_FRAME_H_
diff --git a/Template/Tizen Native/OpenGL Application/glplayerformapp/project/inc/GlRendererTemplate.h b/Template/Tizen Native/OpenGL Application/glplayerformapp/project/inc/GlRendererTemplate.h
new file mode 100755
index 0000000..29299d2
--- /dev/null
+++ b/Template/Tizen Native/OpenGL Application/glplayerformapp/project/inc/GlRendererTemplate.h
@@ -0,0 +1,33 @@
+#ifndef _GLRENDERER_TEMPLATE_H_
+#define _GLRENDERER_TEMPLATE_H_
+
+$(pcheader)
+#include <FGrpIGlRenderer.h>
+
+class GlRendererTemplate :
+ public Tizen::Graphics::Opengl::IGlRenderer
+{
+public:
+ GlRendererTemplate(void);
+ ~GlRendererTemplate(void);
+
+ virtual bool InitializeGl(void);
+ virtual bool TerminateGl(void);
+
+ virtual bool Draw(void);
+
+ virtual bool Pause(void);
+ virtual bool Resume(void);
+
+ virtual int GetTargetControlWidth(void);
+ virtual int GetTargetControlHeight(void);
+ virtual void SetTargetControlWidth(int width);
+ virtual void SetTargetControlHeight(int height);
+
+private:
+ int __controlWidth;
+ int __controlHeight;
+ int __angle;
+};
+
+#endif // _GLRENDERER_TEMPLATE_H_
diff --git a/Template/Tizen Native/OpenGL Application/glplayerformapp/project/inc/tizenx.h b/Template/Tizen Native/OpenGL Application/glplayerformapp/project/inc/tizenx.h
new file mode 100644
index 0000000..4764372
--- /dev/null
+++ b/Template/Tizen Native/OpenGL Application/glplayerformapp/project/inc/tizenx.h
@@ -0,0 +1,15 @@
+// precompiled header file
+#ifndef TIZENX_H_
+#define TIZENX_H_
+
+#include <FApp.h>
+#include <FBase.h>
+#include <FSystem.h>
+#include <FUi.h>
+#include <FUiIme.h>
+#include <FGraphics.h>
+#include <gl.h>
+#include <FGrpIGlRenderer.h>
+#include <FGrpGlPlayer.h>
+
+#endif
diff --git a/Template/Tizen Native/OpenGL Application/glplayerformapp/project/manifest.xml b/Template/Tizen Native/OpenGL Application/glplayerformapp/project/manifest.xml
new file mode 100755
index 0000000..ff5e882
--- /dev/null
+++ b/Template/Tizen Native/OpenGL Application/glplayerformapp/project/manifest.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Manifest xmlns="http://schemas.tizen.org/2012/12/manifest">
+ <Id>$(manifestAppId)</Id>
+ <Version>1.0.0</Version>
+ <Type>C++App</Type>
+ <Requirements>
+ <Feature Name="http://tizen.org/feature/platform.native.api.version">2.2</Feature>
+ </Requirements>
+ <Apps>
+ <ApiVersion>2.2</ApiVersion>
+ <Privileges></Privileges>
+ <UiApp Name="$(projectName)" Main="True" MenuIconVisible="True">
+ <UiScalability CoordinateSystem="Physical"/>
+ <UiTheme SystemTheme="White"></UiTheme>
+ <DisplayNames>
+ <DisplayName Locale="eng-GB">$(projectName)</DisplayName>
+ </DisplayNames>
+ <Icons>
+ <Icon Section="MainMenu" >mainmenu.png</Icon>
+ </Icons>
+ </UiApp>
+ </Apps>
+</Manifest>
diff --git a/Template/Tizen Native/OpenGL Application/glplayerformapp/project/res/screen-size-normal/IDL_FORM.xml b/Template/Tizen Native/OpenGL Application/glplayerformapp/project/res/screen-size-normal/IDL_FORM.xml
new file mode 100755
index 0000000..6e0f53d
--- /dev/null
+++ b/Template/Tizen Native/OpenGL Application/glplayerformapp/project/res/screen-size-normal/IDL_FORM.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+-->
+<!DOCTYPE Scene SYSTEM "UIForm.dtd">
+<Scene Bversion="3.0.0.v20120410" Dversion="20120315">
+ <LogicalCoordinate>720</LogicalCoordinate>
+ <Form id="IDL_FORM">
+ <property backgroundColor="" backgroundOpacity="100" orientation="Automatic" softKey0NormalIcon="" softKey0PressedIcon="" softKey0Text="" softKey1NormalIcon="" softKey1PressedIcon="" softKey1Text="" title="" titleAlign="ALIGN_CENTER" titleIcon="" translucentFooter="false" translucentHeader="false" translucentIndicator="false"/>
+ <layout mode="Portrait" style="FORM_STYLE_PORTRAIT_INDICATOR" type="LAYOUT_RELATIVE"/>
+ <layout mode="Landscape" style="FORM_STYLE_PORTRAIT_INDICATOR" type="LAYOUT_RELATIVE"/>
+ </Form>
+ <Footer>
+ <property backgroundBitmapPath="" color="" colorOpacity="0" disabledButtonColor="" disabledButtonColorOpacity="0" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="0" disabledItemTextColor="" footerStyle="FOOTER_STYLE_BUTTON_TEXT" highlightedButtonColor="" highlightedButtonColorOpacity="0" highlightedButtonTextColor="" highlightedItemColor="" highlightedItemColorOpacity="0" highlightedItemTextColor="" normalButtonColor="" normalButtonColorOpacity="0" normalButtonTextColor="" normalItemColor="" normalItemColorOpacity="0" normalItemTextColor="" pressedButtonColor="" pressedButtonColorOpacity="0" pressedButtonTextColor="" pressedItemColor="" pressedItemColorOpacity="0" pressedItemTextColor="" selectedItemColor="" selectedItemColorOpacity="0" selectedItemTextColor="" showBackButton="true"/>
+ <itemSet/>
+ </Footer>
+ <Header>
+ <property backgroundBitmapPath="" color="" colorOpacity="0" descriptionText="" descriptionTextColor="" disabledButtonColor="" disabledButtonColorOpacity="0" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="0" disabledItemTextColor="" headerStyle="HEADER_STYLE_TITLE" highlightedButtonColor="" highlightedButtonColorOpacity="0" highlightedButtonTextColor="" highlightedItemColor="" highlightedItemColorOpacity="0" highlightedItemTextColor="" normalButtonColor="" normalButtonColorOpacity="0" normalButtonTextColor="" normalItemColor="" normalItemColorOpacity="0" normalItemTextColor="" pressedButtonColor="" pressedButtonColorOpacity="0" pressedButtonTextColor="" pressedItemColor="" pressedItemColorOpacity="0" pressedItemTextColor="" selectedItemColor="" selectedItemColorOpacity="0" selectedItemTextColor="" titleIconPath="" titleText="Hello Tizen!" titleTextColor=""/>
+ <itemSet/>
+ </Header>
+ <Button id="IDC_BUTTON_OK" parent="IDL_FORM">
+ <property disableTextColor="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="0" highlightedBGBitmapPath="" highlightedColor="" highlightedColorOpacity="0" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="" normalBitmapPath="" normalColor="" normalColorOpacity="0" normalTextColor="" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="0" pressedTextColor="" text="OK" textSize="32" verticalAlign="ALIGN_MIDDLE"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="true" centerVertical="true" height="135" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="420" x="0" y="0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="true" centerVertical="true" height="102" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="400" x="0" y="0"/>
+ </Button>
+</Scene>
diff --git a/Template/Tizen Native/OpenGL Application/glplayerformapp/project/shared/res/screen-density-xhigh/mainmenu.png b/Template/Tizen Native/OpenGL Application/glplayerformapp/project/shared/res/screen-density-xhigh/mainmenu.png
new file mode 100755
index 0000000..9765b1b
--- /dev/null
+++ b/Template/Tizen Native/OpenGL Application/glplayerformapp/project/shared/res/screen-density-xhigh/mainmenu.png
Binary files differ
diff --git a/Template/Tizen Native/OpenGL Application/glplayerformapp/project/src/AppResourceId.cpp b/Template/Tizen Native/OpenGL Application/glplayerformapp/project/src/AppResourceId.cpp
new file mode 100644
index 0000000..1565baf
--- /dev/null
+++ b/Template/Tizen Native/OpenGL Application/glplayerformapp/project/src/AppResourceId.cpp
@@ -0,0 +1,3 @@
+#include "AppResourceId.h"
+
+
diff --git a/Template/Tizen Native/OpenGL Application/glplayerformapp/project/src/GLPlayerTemplate.cpp b/Template/Tizen Native/OpenGL Application/glplayerformapp/project/src/GLPlayerTemplate.cpp
new file mode 100755
index 0000000..6ea3456
--- /dev/null
+++ b/Template/Tizen Native/OpenGL Application/glplayerformapp/project/src/GLPlayerTemplate.cpp
@@ -0,0 +1,166 @@
+#include "$(baseName)App.h"
+#include "$(baseName)Frame.h"
+
+using namespace Tizen::App;
+using namespace Tizen::Base;
+using namespace Tizen::System;
+using namespace Tizen::Ui;
+using namespace Tizen::Ui::Controls;
+
+$(baseName)App::$(baseName)App(void)
+{
+}
+
+$(baseName)App::~$(baseName)App(void)
+{
+}
+
+UiApp*
+$(baseName)App::CreateInstance(void)
+{
+ // Create the instance through the constructor.
+ return new $(baseName)App();
+}
+
+bool
+$(baseName)App::OnAppInitializing(AppRegistry& appRegistry)
+{
+ // TODO:
+ // Initialize Frame and App specific data.
+ // The App's permanent data and context can be obtained from the appRegistry.
+ //
+ // If this method is successful, return true; otherwise, return false.
+ // If this method returns false, the App will be terminated.
+
+ // Uncomment the following statement to listen to the screen on/off events.
+ //PowerManager::SetScreenEventListener(*this);
+
+ // TODO:
+ // Add your initialization code here
+
+ return true;
+}
+
+bool
+$(baseName)App::OnAppInitialized(void)
+{
+ // TODO:
+ // Add code to do after initialization here.
+
+ // Create a Frame
+ $(baseName)Frame* p$(baseName)Frame = new $(baseName)Frame();
+ p$(baseName)Frame->Construct();
+ p$(baseName)Frame->SetName(L"$(baseName)");
+ AddFrame(*p$(baseName)Frame);
+
+ p$(baseName)Frame->AddKeyEventListener(*this);
+
+ {
+ __player = new Tizen::Graphics::Opengl::GlPlayer;
+ __player->Construct(Tizen::Graphics::Opengl::EGL_CONTEXT_CLIENT_VERSION_1_X, p$(baseName)Frame->GetCurrentForm());
+
+ __player->SetFps(60);
+ __player->SetEglAttributePreset(Tizen::Graphics::Opengl::EGL_ATTRIBUTES_PRESET_RGB565);
+
+ __player->Start();
+ }
+
+ __renderer = new GlRendererTemplate();
+ __player->SetIGlRenderer(__renderer);
+
+ return true;
+}
+
+bool
+$(baseName)App::OnAppWillTerminate(void)
+{
+ // TODO:
+ // Add code to do somethiing before application termination.
+
+ return true;
+}
+
+
+bool
+$(baseName)App::OnAppTerminating(AppRegistry& appRegistry, bool forcedTermination)
+{
+ // TODO:
+ // Deallocate resources allocated by this App for termination.
+ // The App's permanent data and context can be saved via appRegistry.
+
+ __player->Stop();
+
+ if(__renderer != null)
+ {
+ delete __renderer;
+ }
+ delete __player;
+
+ return true;
+}
+
+void
+$(baseName)App::OnForeground(void)
+{
+ // TODO:
+ // Start or resume drawing when the application is moved to the foreground.
+}
+
+void
+$(baseName)App::OnBackground(void)
+{
+ // TODO:
+ // Stop drawing when the application is moved to the background.
+}
+
+void
+$(baseName)App::OnLowMemory(void)
+{
+ // TODO:
+ // Free unnecessary resources or close the application.
+}
+
+void
+$(baseName)App::OnBatteryLevelChanged(BatteryLevel batteryLevel)
+{
+ // TODO:
+ // Handle any changes in battery level here.
+ // Stop using multimedia features(camera, mp3 etc.) if the battery level is CRITICAL.
+}
+
+void
+$(baseName)App::OnScreenOn(void)
+{
+ // TODO:
+ // Get the released resources or resume the operations that were paused or stopped in OnScreenOff().
+}
+
+void
+$(baseName)App::OnScreenOff(void)
+{
+ // TODO:
+ // Unless there is a strong reason to do otherwise, release resources (such as 3D, media, and sensors) to allow the device
+ // to enter the sleep mode to save the battery.
+ // Invoking a lengthy asynchronous method within this listener method can be risky, because it is not guaranteed to invoke a
+ // callback before the device enters the sleep mode.
+ // Similarly, do not perform lengthy operations in this listener method. Any operation must be a quick one.
+}
+
+void
+$(baseName)App::OnKeyPressed(const Control& source, KeyCode keyCode)
+{
+}
+
+void
+$(baseName)App::OnKeyReleased(const Control& source, KeyCode keyCode)
+{
+ if (keyCode == Tizen::Ui::KEY_BACK || keyCode == Tizen::Ui::KEY_ESC)
+ {
+ Terminate();
+ }
+}
+
+void
+$(baseName)App::OnKeyLongPressed(const Control& source, KeyCode keyCode)
+{
+}
diff --git a/Template/Tizen Native/OpenGL Application/glplayerformapp/project/src/GLPlayerTemplateEntry.cpp b/Template/Tizen Native/OpenGL Application/glplayerformapp/project/src/GLPlayerTemplateEntry.cpp
new file mode 100644
index 0000000..2d07d92
--- /dev/null
+++ b/Template/Tizen Native/OpenGL Application/glplayerformapp/project/src/GLPlayerTemplateEntry.cpp
@@ -0,0 +1,37 @@
+//
+// This file contains the Tizen application entry point.
+//
+#include <new>
+#include "$(baseName)App.h"
+
+using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif // __cplusplus
+
+//
+// The entry function of Tizen application called by the operating system.
+//
+_EXPORT_ int
+OspMain(int argc, char* pArgv[])
+{
+ AppLog("Application started.");
+ ArrayList args(SingleObjectDeleter);
+ args.Construct();
+ for (int i = 0; i < argc; i++)
+ {
+ args.Add(new (std::nothrow) String(pArgv[i]));
+ }
+
+ result r = Tizen::App::UiApp::Execute($(baseName)App::CreateInstance, &args);
+ TryLog(r == E_SUCCESS, "[%s] Application execution failed.", GetErrorMessage(r));
+ AppLog("Application finished.");
+
+ return static_cast< int >(r);
+}
+#ifdef __cplusplus
+}
+#endif // __cplusplus
diff --git a/Template/Tizen Native/OpenGL Application/glplayerformapp/project/src/GLPlayerTemplateForm.cpp b/Template/Tizen Native/OpenGL Application/glplayerformapp/project/src/GLPlayerTemplateForm.cpp
new file mode 100755
index 0000000..5226d76
--- /dev/null
+++ b/Template/Tizen Native/OpenGL Application/glplayerformapp/project/src/GLPlayerTemplateForm.cpp
@@ -0,0 +1,79 @@
+#include "$(baseName)Form.h"
+
+using namespace Tizen::Base;
+using namespace Tizen::App;
+using namespace Tizen::Ui;
+using namespace Tizen::Ui::Controls;
+
+$(baseName)Form::$(baseName)Form(void)
+{
+}
+
+$(baseName)Form::~$(baseName)Form(void)
+{
+}
+
+bool
+$(baseName)Form::Initialize(void)
+{
+ Construct(FORM_STYLE_NORMAL);
+
+ return true;
+}
+result
+$(baseName)Form::OnInitializing(void)
+{
+ result r = E_SUCCESS;
+
+ // TODO:
+ // Add your initialization code here
+
+ // Setup back event listener
+ SetFormBackEventListener(this);
+
+ // Get a button via resource ID
+ Tizen::Ui::Controls::Button *pButtonOk = static_cast<Button*>(GetControl(L"IDC_BUTTON_OK"));
+ if (pButtonOk != null)
+ {
+ pButtonOk->SetActionId(ID_BUTTON_OK);
+ pButtonOk->AddActionEventListener(*this);
+ }
+
+ return r;
+}
+
+result
+$(baseName)Form::OnTerminating(void)
+{
+ result r = E_SUCCESS;
+
+ // TODO:
+ // Add your termination code here
+
+ return r;
+}
+
+void
+$(baseName)Form::OnActionPerformed(const Tizen::Ui::Control& source, int actionId)
+{
+ switch(actionId)
+ {
+ case ID_BUTTON_OK:
+ {
+ AppLog("OK Button is clicked!\n");
+ }
+ break;
+ default:
+ break;
+ }
+}
+
+void
+$(baseName)Form::OnFormBackRequested(Tizen::Ui::Controls::Form& source)
+{
+ UiApp* pApp = UiApp::GetInstance();
+ AppAssert(pApp);
+ pApp->Terminate();
+}
+
+
diff --git a/Template/Tizen Native/OpenGL Application/glplayerformapp/project/src/GLPlayerTemplateFrame.cpp b/Template/Tizen Native/OpenGL Application/glplayerformapp/project/src/GLPlayerTemplateFrame.cpp
new file mode 100755
index 0000000..780ceb1
--- /dev/null
+++ b/Template/Tizen Native/OpenGL Application/glplayerformapp/project/src/GLPlayerTemplateFrame.cpp
@@ -0,0 +1,51 @@
+#include "$(baseName)Frame.h"
+#include "$(baseName)Form.h"
+
+using namespace Tizen::Base;
+using namespace Tizen::Ui;
+using namespace Tizen::Ui::Controls;
+
+$(baseName)Frame::$(baseName)Frame(void)
+{
+}
+
+$(baseName)Frame::~$(baseName)Frame(void)
+{
+}
+
+result
+$(baseName)Frame::OnInitializing(void)
+{
+ result r = E_SUCCESS;
+
+ // Create a form
+ $(baseName)Form* p$(baseName)Form = new $(baseName)Form();
+ p$(baseName)Form->Initialize();
+
+ // Add the form to the frame
+ AddControl(p$(baseName)Form);
+
+ // Set the current form
+ SetCurrentForm(p$(baseName)Form);
+
+ // Draw the form
+ p$(baseName)Form->Invalidate(true);
+
+ // TODO:
+ // Add your initialization code here
+
+ return r;
+}
+
+result
+$(baseName)Frame::OnTerminating(void)
+{
+ result r = E_SUCCESS;
+
+ // TODO:
+ //Add your termination code here
+
+ return r;
+}
+
+
diff --git a/Template/Tizen Native/OpenGL Application/glplayerformapp/project/src/GlRendererTemplate.cpp b/Template/Tizen Native/OpenGL Application/glplayerformapp/project/src/GlRendererTemplate.cpp
new file mode 100644
index 0000000..347eb97
--- /dev/null
+++ b/Template/Tizen Native/OpenGL Application/glplayerformapp/project/src/GlRendererTemplate.cpp
@@ -0,0 +1,195 @@
+#include "GlRendererTemplate.h"
+
+const GLfloat ONEP = GLfloat(+1.0f);
+const GLfloat ONEN = GLfloat(-1.0f);
+const GLfloat ZERO = GLfloat( 0.0f);
+
+void SetPerspective(GLfloat fovDegree, GLfloat aspect, GLfloat zNear, GLfloat zFar)
+{
+ // tan(double(degree) * 3.1415962 / 180.0 / 2.0);
+ static const float HALF_TAN_TABLE[91] =
+ {
+ 0.00000f, 0.00873f, 0.01746f, 0.02619f, 0.03492f, 0.04366f, 0.05241f, 0.06116f, 0.06993f,
+ 0.07870f, 0.08749f, 0.09629f, 0.10510f, 0.11394f, 0.12278f, 0.13165f, 0.14054f, 0.14945f,
+ 0.15838f, 0.16734f, 0.17633f, 0.18534f, 0.19438f, 0.20345f, 0.21256f, 0.22169f, 0.23087f,
+ 0.24008f, 0.24933f, 0.25862f, 0.26795f, 0.27732f, 0.28675f, 0.29621f, 0.30573f, 0.31530f,
+ 0.32492f, 0.33460f, 0.34433f, 0.35412f, 0.36397f, 0.37389f, 0.38386f, 0.39391f, 0.40403f,
+ 0.41421f, 0.42448f, 0.43481f, 0.44523f, 0.45573f, 0.46631f, 0.47698f, 0.48773f, 0.49858f,
+ 0.50953f, 0.52057f, 0.53171f, 0.54296f, 0.55431f, 0.56577f, 0.57735f, 0.58905f, 0.60086f,
+ 0.61280f, 0.62487f, 0.63707f, 0.64941f, 0.66189f, 0.67451f, 0.68728f, 0.70021f, 0.71329f,
+ 0.72654f, 0.73996f, 0.75356f, 0.76733f, 0.78129f, 0.79544f, 0.80979f, 0.82434f, 0.83910f,
+ 0.85408f, 0.86929f, 0.88473f, 0.90041f, 0.91633f, 0.93252f, 0.94897f, 0.96569f, 0.98270f,
+ 1.00000f
+ };
+
+ int degree = int(fovDegree + 0.5f);
+
+ degree = (degree >= 0) ? degree : 0;
+ degree = (degree <= 90) ? degree : 90;
+
+ GLfloat fxdYMax = GLfloat(zNear * HALF_TAN_TABLE[degree]);
+ GLfloat fxdYMin = -fxdYMax;
+
+ GLfloat fxdXMax = GLfloat(GLfloat(fxdYMax) * aspect);
+ GLfloat fxdXMin = -fxdXMax;
+
+ glFrustumf(fxdXMin, fxdXMax, fxdYMin, fxdYMax, GLfloat(zNear), GLfloat(zFar));
+}
+
+GlRendererTemplate::GlRendererTemplate(void)
+ : __controlWidth(0)
+ , __controlHeight(0)
+ , __angle(0)
+{
+}
+
+GlRendererTemplate::~GlRendererTemplate(void)
+{
+
+}
+
+bool
+GlRendererTemplate::InitializeGl(void)
+{
+ // TODO:
+ // Initialize GL status.
+
+ glShadeModel(GL_SMOOTH);
+ glViewport(0, 0, GetTargetControlWidth(), GetTargetControlHeight());
+
+ glEnable(GL_CULL_FACE);
+ glCullFace(GL_BACK);
+
+ glEnable(GL_DEPTH_TEST);
+ glDepthFunc(GL_LESS);
+
+ glMatrixMode(GL_PROJECTION);
+ glLoadIdentity();
+
+ SetPerspective(60.0f, 1.0f * GetTargetControlWidth() / GetTargetControlHeight(), 1.0f, 400.0f);
+
+ glClearColor(0, 0, 0, 1);
+ glClear(GL_COLOR_BUFFER_BIT);
+
+ return true;
+}
+
+bool
+GlRendererTemplate::TerminateGl(void)
+{
+ // TODO:
+ // Terminate and reset GL status.
+ return true;
+}
+
+bool
+GlRendererTemplate::Draw(void)
+{
+ // TODO:
+ // Draw a scene and perform what to be necessary for each scene.
+
+ static const GLfloat vertices[] =
+ {
+ ZERO, ONEP, ZERO,
+ ONEN, ONEN, ZERO,
+ ONEP, ONEN, ZERO,
+ ZERO, ONEP, ZERO,
+ ONEP, ONEN, ZERO,
+ ONEN, ONEN, ZERO
+ };
+
+ static const GLfloat vertexColor[] =
+ {
+ ONEP, ZERO, ZERO, ONEP,
+ ZERO, ONEP, ZERO, ONEP,
+ ZERO, ZERO, ONEP, ONEP,
+ ONEP, ZERO, ZERO, ONEP,
+ ZERO, ZERO, ONEP, ONEP,
+ ZERO, ONEP, ZERO, ONEP
+ };
+
+ static const unsigned short indexBuffer[] =
+ {
+ 0, 1, 2, 3, 4, 5
+ };
+
+ __angle = (__angle + 10) % (360 * 3);
+
+ glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+
+ glEnableClientState(GL_VERTEX_ARRAY);
+ glVertexPointer(3, GL_FLOAT, 0, vertices);
+
+ glEnableClientState(GL_COLOR_ARRAY);
+ glColorPointer(4, GL_FLOAT, 0, vertexColor);
+
+ glMatrixMode(GL_MODELVIEW);
+ {
+ glLoadIdentity();
+ glTranslatef(0, 0, GLfloat(-5.0f));
+ glRotatef(GLfloat(__angle), 0, GLfloat(1.0f), 0);
+ }
+
+ glDrawElements(GL_TRIANGLES, 3*2, GL_UNSIGNED_SHORT, &indexBuffer[0]);
+
+ glDisableClientState(GL_VERTEX_ARRAY);
+ glDisableClientState(GL_COLOR_ARRAY);
+
+ glFlush();
+
+ return true;
+}
+
+bool
+GlRendererTemplate::Pause(void)
+{
+ // TODO:
+ // Do something necessary when Plyaer is paused.
+
+ return true;
+}
+
+bool
+GlRendererTemplate::Resume(void)
+{
+ // TODO:
+ // Do something necessary when Plyaer is resumed.
+
+ return true;
+}
+
+int
+GlRendererTemplate::GetTargetControlWidth(void)
+{
+ // TODO:
+ // Return target control width
+
+ return __controlWidth;
+}
+
+int
+GlRendererTemplate::GetTargetControlHeight(void)
+{
+ // TODO:
+ // Return target control height
+
+ return __controlHeight;
+}
+
+void
+GlRendererTemplate::SetTargetControlWidth(int width)
+{
+ // TODO:
+ // Assign target control width
+
+ __controlWidth = width;
+}
+
+void
+GlRendererTemplate::SetTargetControlHeight(int height)
+{
+ // TODO:
+ // Assign target control height
+
+ __controlHeight = height;
+}
diff --git a/Template/Tizen Native/OpenGL Application/glplayerformapp/sample.xml b/Template/Tizen Native/OpenGL Application/glplayerformapp/sample.xml
new file mode 100755
index 0000000..71baec8
--- /dev/null
+++ b/Template/Tizen Native/OpenGL Application/glplayerformapp/sample.xml
@@ -0,0 +1,88 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<template>
+
+ <slp-property>
+ <property-group>
+ <sample-name>Form-based</sample-name>
+ <category>Application Template</category>
+ <sdk-version>1.00</sdk-version>
+ <project-type>org.tizen.nativecpp.buildArtefactType.app</project-type>
+ <sample-description>description.xml</sample-description>
+ </property-group>
+ </slp-property>
+
+ <process type="org.tizen.nativeappcommon.TizenCopyFolder">
+ <simple name="projectName" value="$(projectName)"/>
+ <simple name="folderPath" value="project"/>
+ <complex-array name="replaceableFiles">
+ <element>
+ <simple name="sourcePath" value="src/GLPlayerTemplate.cpp"/>
+ <simple name="targetPath" value="src/$(baseName)App.cpp"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="src/GLPlayerTemplateEntry.cpp"/>
+ <simple name="targetPath" value="src/$(baseName)Entry.cpp"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="src/GLPlayerTemplateForm.cpp"/>
+ <simple name="targetPath" value="src/$(baseName)Form.cpp"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="src/GLPlayerTemplateFrame.cpp"/>
+ <simple name="targetPath" value="src/$(baseName)Frame.cpp"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="src/GlRendererTemplate.cpp"/>
+ <simple name="targetPath" value="src/GlRendererTemplate.cpp"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="src/AppResourceId.cpp"/>
+ <simple name="targetPath" value="src/AppResourceId.cpp"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="inc/GLPlayerTemplate.h"/>
+ <simple name="targetPath" value="inc/$(baseName)App.h"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="inc/GLPlayerTemplateForm.h"/>
+ <simple name="targetPath" value="inc/$(baseName)Form.h"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="inc/GLPlayerTemplateFrame.h"/>
+ <simple name="targetPath" value="inc/$(baseName)Frame.h"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="inc/GlRendererTemplate.h"/>
+ <simple name="targetPath" value="inc/GlRendererTemplate.h"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="inc/AppResourceId.h"/>
+ <simple name="targetPath" value="inc/AppResourceId.h"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="manifest.xml"/>
+ <simple name="targetPath" value="manifest.xml"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ </complex-array>
+ </process>
+ <process type="org.tizen.nativecpp.SetDefaultFrameworks">
+ <simple name="projectName" value="$(projectName)"/>
+ <complex-array name="frameworkList">
+ <element>
+ <simple name="framework" value="osp"/>
+ </element>
+ </complex-array>
+ </process>
+</template>
diff --git a/Template/Tizen Native/OpenGL Application/glplayerformapp/screenshot.png b/Template/Tizen Native/OpenGL Application/glplayerformapp/screenshot.png
new file mode 100644
index 0000000..18e6401
--- /dev/null
+++ b/Template/Tizen Native/OpenGL Application/glplayerformapp/screenshot.png
Binary files differ
diff --git a/Template/Tizen Native/OpenGL Application/glplayerframeapp/description.xml b/Template/Tizen Native/OpenGL Application/glplayerframeapp/description.xml
new file mode 100755
index 0000000..cfcdcfe
--- /dev/null
+++ b/Template/Tizen Native/OpenGL Application/glplayerframeapp/description.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="utf-8"?>
+<?xml-stylesheet type="text/xsl" href="../../../../description.xsl"?>
+
+<Overview version="0.17.1">
+ <SampleName> Frame-based GL Application</SampleName>
+ <SampleVersion>1.0</SampleVersion>
+ <Preview>screenshot.png</Preview>
+ <Description>
+ This template is suitable for creating a simple project based on GlPlayer and GlRenderer, which help to use OpenGL-ES applications.
+ This template generates a Frame-based application, which creates a gl window surface for the Frame.
+ If you want to make an application which does not use UI controls except Frame, such as games, this template is the best choice.
+ There are no need to merge UI controls onto framebuffer, therefore, the performance will be better than Form based applications.
+ This template contains a GLRenderer instance which draws a rotating triangle.
+ What developers need to do is to override GlRenderer to draw each scene.
+ </Description>
+</Overview>
diff --git a/Template/Tizen Native/OpenGL Application/glplayerframeapp/project/inc/AppResourceId.h b/Template/Tizen Native/OpenGL Application/glplayerframeapp/project/inc/AppResourceId.h
new file mode 100644
index 0000000..7af87b9
--- /dev/null
+++ b/Template/Tizen Native/OpenGL Application/glplayerframeapp/project/inc/AppResourceId.h
@@ -0,0 +1,5 @@
+#ifndef _APP_RESOURCE_ID_H_
+#define _APP_RESOURCE_ID_H_
+
+
+#endif //_APP_RESOURCE_ID_H_
diff --git a/Template/Tizen Native/OpenGL Application/glplayerframeapp/project/inc/GLPlayerTemplate.h b/Template/Tizen Native/OpenGL Application/glplayerframeapp/project/inc/GLPlayerTemplate.h
new file mode 100755
index 0000000..c85ce2e
--- /dev/null
+++ b/Template/Tizen Native/OpenGL Application/glplayerframeapp/project/inc/GLPlayerTemplate.h
@@ -0,0 +1,69 @@
+#ifndef _$(baseNameUpper)_APP_H_
+#define _$(baseNameUpper)_APP_H_
+
+$(pcheader)
+#include <FGrpGlPlayer.h>
+
+#include "GlRendererTemplate.h"
+
+// $(baseName)App must inherit from UiApp class
+// which provides basic features necessary to define an UiApp.
+class $(baseName)App
+ : public Tizen::App::UiApp
+ , public Tizen::System::IScreenEventListener
+ , public Tizen::Ui::IKeyEventListener
+{
+public:
+ // [Test] UiApp must have a factory method that creates an instance of itself.
+ static Tizen::App::UiApp* CreateInstance(void);
+
+public:
+ $(baseName)App(void);
+ virtual~$(baseName)App(void);
+
+public:
+ // Called when the UiApp is initializing.
+ virtual bool OnAppInitializing(Tizen::App::AppRegistry& appRegistry);
+
+ // Called when the UiApp initializing is finished.
+ virtual bool OnAppInitialized(void);
+
+ // Called when the UiApp is requested to terminate.
+ virtual bool OnAppWillTerminate(void);
+
+ // Called when the UiApp is terminating.
+ virtual bool OnAppTerminating(Tizen::App::AppRegistry& appRegistry, bool forcedTermination = false);
+
+ // Called when the UiApp's frame moves to the top of the screen.
+ virtual void OnForeground(void);
+
+ // Called when this UiApp's frame is moved from top of the screen to the background.
+ virtual void OnBackground(void);
+
+ // Called when the system memory is not sufficient to run the UiApp any further.
+ virtual void OnLowMemory(void);
+
+ // Called when the battery level changes.
+ virtual void OnBatteryLevelChanged(Tizen::System::BatteryLevel batteryLevel);
+
+ // Called when the screen turns on.
+ virtual void OnScreenOn(void);
+
+ // Called when the screen turns off.
+ virtual void OnScreenOff(void);
+
+ // Called when a key is pressed.
+ virtual void OnKeyPressed(const Tizen::Ui::Control& source, Tizen::Ui::KeyCode keyCode);
+
+ // Called when a key is released.
+ virtual void OnKeyReleased(const Tizen::Ui::Control& source, Tizen::Ui::KeyCode keyCode);
+
+ // Called when a key is pressed and held down for some time.
+ virtual void OnKeyLongPressed(const Tizen::Ui::Control& source, Tizen::Ui::KeyCode keyCode);
+
+private:
+ Tizen::Graphics::Opengl::GlPlayer* __player;
+ Tizen::Graphics::Opengl::IGlRenderer* __renderer;
+};
+
+#endif // _$(baseNameUpper)_APP_H_
diff --git a/Template/Tizen Native/OpenGL Application/glplayerframeapp/project/inc/GLPlayerTemplateFrame.h b/Template/Tizen Native/OpenGL Application/glplayerframeapp/project/inc/GLPlayerTemplateFrame.h
new file mode 100755
index 0000000..85c65e9
--- /dev/null
+++ b/Template/Tizen Native/OpenGL Application/glplayerframeapp/project/inc/GLPlayerTemplateFrame.h
@@ -0,0 +1,17 @@
+#ifndef _$(baseNameUpper)_FRAME_H_
+#define _$(baseNameUpper)_FRAME_H_
+
+$(pcheader)
+
+class $(baseName)Frame
+ : public Tizen::Ui::Controls::Frame
+{
+public:
+ $(baseName)Frame(void);
+ virtual ~$(baseName)Frame(void);
+
+ virtual result OnInitializing(void);
+ virtual result OnTerminating(void);
+};
+
+#endif //_$(baseNameUpper)_FRAME_H_
diff --git a/Template/Tizen Native/OpenGL Application/glplayerframeapp/project/inc/GlRendererTemplate.h b/Template/Tizen Native/OpenGL Application/glplayerframeapp/project/inc/GlRendererTemplate.h
new file mode 100755
index 0000000..29299d2
--- /dev/null
+++ b/Template/Tizen Native/OpenGL Application/glplayerframeapp/project/inc/GlRendererTemplate.h
@@ -0,0 +1,33 @@
+#ifndef _GLRENDERER_TEMPLATE_H_
+#define _GLRENDERER_TEMPLATE_H_
+
+$(pcheader)
+#include <FGrpIGlRenderer.h>
+
+class GlRendererTemplate :
+ public Tizen::Graphics::Opengl::IGlRenderer
+{
+public:
+ GlRendererTemplate(void);
+ ~GlRendererTemplate(void);
+
+ virtual bool InitializeGl(void);
+ virtual bool TerminateGl(void);
+
+ virtual bool Draw(void);
+
+ virtual bool Pause(void);
+ virtual bool Resume(void);
+
+ virtual int GetTargetControlWidth(void);
+ virtual int GetTargetControlHeight(void);
+ virtual void SetTargetControlWidth(int width);
+ virtual void SetTargetControlHeight(int height);
+
+private:
+ int __controlWidth;
+ int __controlHeight;
+ int __angle;
+};
+
+#endif // _GLRENDERER_TEMPLATE_H_
diff --git a/Template/Tizen Native/OpenGL Application/glplayerframeapp/project/inc/tizenx.h b/Template/Tizen Native/OpenGL Application/glplayerframeapp/project/inc/tizenx.h
new file mode 100644
index 0000000..4764372
--- /dev/null
+++ b/Template/Tizen Native/OpenGL Application/glplayerframeapp/project/inc/tizenx.h
@@ -0,0 +1,15 @@
+// precompiled header file
+#ifndef TIZENX_H_
+#define TIZENX_H_
+
+#include <FApp.h>
+#include <FBase.h>
+#include <FSystem.h>
+#include <FUi.h>
+#include <FUiIme.h>
+#include <FGraphics.h>
+#include <gl.h>
+#include <FGrpIGlRenderer.h>
+#include <FGrpGlPlayer.h>
+
+#endif
diff --git a/Template/Tizen Native/OpenGL Application/glplayerframeapp/project/manifest.xml b/Template/Tizen Native/OpenGL Application/glplayerframeapp/project/manifest.xml
new file mode 100755
index 0000000..ff5e882
--- /dev/null
+++ b/Template/Tizen Native/OpenGL Application/glplayerframeapp/project/manifest.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Manifest xmlns="http://schemas.tizen.org/2012/12/manifest">
+ <Id>$(manifestAppId)</Id>
+ <Version>1.0.0</Version>
+ <Type>C++App</Type>
+ <Requirements>
+ <Feature Name="http://tizen.org/feature/platform.native.api.version">2.2</Feature>
+ </Requirements>
+ <Apps>
+ <ApiVersion>2.2</ApiVersion>
+ <Privileges></Privileges>
+ <UiApp Name="$(projectName)" Main="True" MenuIconVisible="True">
+ <UiScalability CoordinateSystem="Physical"/>
+ <UiTheme SystemTheme="White"></UiTheme>
+ <DisplayNames>
+ <DisplayName Locale="eng-GB">$(projectName)</DisplayName>
+ </DisplayNames>
+ <Icons>
+ <Icon Section="MainMenu" >mainmenu.png</Icon>
+ </Icons>
+ </UiApp>
+ </Apps>
+</Manifest>
diff --git a/Template/Tizen Native/OpenGL Application/glplayerframeapp/project/res/screen-size-normal/IDL_FORM.xml b/Template/Tizen Native/OpenGL Application/glplayerframeapp/project/res/screen-size-normal/IDL_FORM.xml
new file mode 100755
index 0000000..6e0f53d
--- /dev/null
+++ b/Template/Tizen Native/OpenGL Application/glplayerframeapp/project/res/screen-size-normal/IDL_FORM.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+-->
+<!DOCTYPE Scene SYSTEM "UIForm.dtd">
+<Scene Bversion="3.0.0.v20120410" Dversion="20120315">
+ <LogicalCoordinate>720</LogicalCoordinate>
+ <Form id="IDL_FORM">
+ <property backgroundColor="" backgroundOpacity="100" orientation="Automatic" softKey0NormalIcon="" softKey0PressedIcon="" softKey0Text="" softKey1NormalIcon="" softKey1PressedIcon="" softKey1Text="" title="" titleAlign="ALIGN_CENTER" titleIcon="" translucentFooter="false" translucentHeader="false" translucentIndicator="false"/>
+ <layout mode="Portrait" style="FORM_STYLE_PORTRAIT_INDICATOR" type="LAYOUT_RELATIVE"/>
+ <layout mode="Landscape" style="FORM_STYLE_PORTRAIT_INDICATOR" type="LAYOUT_RELATIVE"/>
+ </Form>
+ <Footer>
+ <property backgroundBitmapPath="" color="" colorOpacity="0" disabledButtonColor="" disabledButtonColorOpacity="0" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="0" disabledItemTextColor="" footerStyle="FOOTER_STYLE_BUTTON_TEXT" highlightedButtonColor="" highlightedButtonColorOpacity="0" highlightedButtonTextColor="" highlightedItemColor="" highlightedItemColorOpacity="0" highlightedItemTextColor="" normalButtonColor="" normalButtonColorOpacity="0" normalButtonTextColor="" normalItemColor="" normalItemColorOpacity="0" normalItemTextColor="" pressedButtonColor="" pressedButtonColorOpacity="0" pressedButtonTextColor="" pressedItemColor="" pressedItemColorOpacity="0" pressedItemTextColor="" selectedItemColor="" selectedItemColorOpacity="0" selectedItemTextColor="" showBackButton="true"/>
+ <itemSet/>
+ </Footer>
+ <Header>
+ <property backgroundBitmapPath="" color="" colorOpacity="0" descriptionText="" descriptionTextColor="" disabledButtonColor="" disabledButtonColorOpacity="0" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="0" disabledItemTextColor="" headerStyle="HEADER_STYLE_TITLE" highlightedButtonColor="" highlightedButtonColorOpacity="0" highlightedButtonTextColor="" highlightedItemColor="" highlightedItemColorOpacity="0" highlightedItemTextColor="" normalButtonColor="" normalButtonColorOpacity="0" normalButtonTextColor="" normalItemColor="" normalItemColorOpacity="0" normalItemTextColor="" pressedButtonColor="" pressedButtonColorOpacity="0" pressedButtonTextColor="" pressedItemColor="" pressedItemColorOpacity="0" pressedItemTextColor="" selectedItemColor="" selectedItemColorOpacity="0" selectedItemTextColor="" titleIconPath="" titleText="Hello Tizen!" titleTextColor=""/>
+ <itemSet/>
+ </Header>
+ <Button id="IDC_BUTTON_OK" parent="IDL_FORM">
+ <property disableTextColor="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="0" highlightedBGBitmapPath="" highlightedColor="" highlightedColorOpacity="0" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="" normalBitmapPath="" normalColor="" normalColorOpacity="0" normalTextColor="" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="0" pressedTextColor="" text="OK" textSize="32" verticalAlign="ALIGN_MIDDLE"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="true" centerVertical="true" height="135" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="420" x="0" y="0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="true" centerVertical="true" height="102" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="400" x="0" y="0"/>
+ </Button>
+</Scene>
diff --git a/Template/Tizen Native/OpenGL Application/glplayerframeapp/project/shared/res/screen-density-xhigh/mainmenu.png b/Template/Tizen Native/OpenGL Application/glplayerframeapp/project/shared/res/screen-density-xhigh/mainmenu.png
new file mode 100755
index 0000000..9765b1b
--- /dev/null
+++ b/Template/Tizen Native/OpenGL Application/glplayerframeapp/project/shared/res/screen-density-xhigh/mainmenu.png
Binary files differ
diff --git a/Template/Tizen Native/OpenGL Application/glplayerframeapp/project/src/AppResourceId.cpp b/Template/Tizen Native/OpenGL Application/glplayerframeapp/project/src/AppResourceId.cpp
new file mode 100644
index 0000000..1565baf
--- /dev/null
+++ b/Template/Tizen Native/OpenGL Application/glplayerframeapp/project/src/AppResourceId.cpp
@@ -0,0 +1,3 @@
+#include "AppResourceId.h"
+
+
diff --git a/Template/Tizen Native/OpenGL Application/glplayerframeapp/project/src/GLPlayerTemplate.cpp b/Template/Tizen Native/OpenGL Application/glplayerframeapp/project/src/GLPlayerTemplate.cpp
new file mode 100755
index 0000000..7cf40f9
--- /dev/null
+++ b/Template/Tizen Native/OpenGL Application/glplayerframeapp/project/src/GLPlayerTemplate.cpp
@@ -0,0 +1,166 @@
+#include "$(baseName)App.h"
+#include "$(baseName)Frame.h"
+
+using namespace Tizen::App;
+using namespace Tizen::Base;
+using namespace Tizen::System;
+using namespace Tizen::Ui;
+using namespace Tizen::Ui::Controls;
+
+$(baseName)App::$(baseName)App(void)
+{
+}
+
+$(baseName)App::~$(baseName)App(void)
+{
+}
+
+UiApp*
+$(baseName)App::CreateInstance(void)
+{
+ // Create the instance through the constructor.
+ return new $(baseName)App();
+}
+
+bool
+$(baseName)App::OnAppInitializing(AppRegistry& appRegistry)
+{
+ // TODO:
+ // Initialize Frame and App specific data.
+ // The App's permanent data and context can be obtained from the appRegistry.
+ //
+ // If this method is successful, return true; otherwise, return false.
+ // If this method returns false, the App will be terminated.
+
+ // Uncomment the following statement to listen to the screen on/off events.
+ //PowerManager::SetScreenEventListener(*this);
+
+ // TODO:
+ // Add your initialization code here
+
+ return true;
+}
+
+bool
+$(baseName)App::OnAppInitialized(void)
+{
+ // TODO:
+ // Add code to do after initialization here.
+
+ // Create a Frame
+ $(baseName)Frame* p$(baseName)Frame = new $(baseName)Frame();
+ p$(baseName)Frame->Construct();
+ p$(baseName)Frame->SetName(L"$(baseName)");
+ AddFrame(*p$(baseName)Frame);
+
+ p$(baseName)Frame->AddKeyEventListener(*this);
+
+ {
+ __player = new Tizen::Graphics::Opengl::GlPlayer;
+ __player->Construct(Tizen::Graphics::Opengl::EGL_CONTEXT_CLIENT_VERSION_1_X, p$(baseName)Frame);
+
+ __player->SetFps(60);
+ __player->SetEglAttributePreset(Tizen::Graphics::Opengl::EGL_ATTRIBUTES_PRESET_RGB565);
+
+ __player->Start();
+ }
+
+ __renderer = new GlRendererTemplate();
+ __player->SetIGlRenderer(__renderer);
+
+ return true;
+}
+
+bool
+$(baseName)App::OnAppWillTerminate(void)
+{
+ // TODO:
+ // Add code to do somethiing before application termination.
+
+ return true;
+}
+
+
+bool
+$(baseName)App::OnAppTerminating(AppRegistry& appRegistry, bool forcedTermination)
+{
+ // TODO:
+ // Deallocate resources allocated by this App for termination.
+ // The App's permanent data and context can be saved via appRegistry.
+
+ __player->Stop();
+
+ if(__renderer != null)
+ {
+ delete __renderer;
+ }
+ delete __player;
+
+ return true;
+}
+
+void
+$(baseName)App::OnForeground(void)
+{
+ // TODO:
+ // Start or resume drawing when the application is moved to the foreground.
+}
+
+void
+$(baseName)App::OnBackground(void)
+{
+ // TODO:
+ // Stop drawing when the application is moved to the background.
+}
+
+void
+$(baseName)App::OnLowMemory(void)
+{
+ // TODO:
+ // Free unnecessary resources or close the application.
+}
+
+void
+$(baseName)App::OnBatteryLevelChanged(BatteryLevel batteryLevel)
+{
+ // TODO:
+ // Handle any changes in battery level here.
+ // Stop using multimedia features(camera, mp3 etc.) if the battery level is CRITICAL.
+}
+
+void
+$(baseName)App::OnScreenOn(void)
+{
+ // TODO:
+ // Get the released resources or resume the operations that were paused or stopped in OnScreenOff().
+}
+
+void
+$(baseName)App::OnScreenOff(void)
+{
+ // TODO:
+ // Unless there is a strong reason to do otherwise, release resources (such as 3D, media, and sensors) to allow the device
+ // to enter the sleep mode to save the battery.
+ // Invoking a lengthy asynchronous method within this listener method can be risky, because it is not guaranteed to invoke a
+ // callback before the device enters the sleep mode.
+ // Similarly, do not perform lengthy operations in this listener method. Any operation must be a quick one.
+}
+
+void
+$(baseName)App::OnKeyPressed(const Control& source, KeyCode keyCode)
+{
+}
+
+void
+$(baseName)App::OnKeyReleased(const Control& source, KeyCode keyCode)
+{
+ if (keyCode == Tizen::Ui::KEY_BACK || keyCode == Tizen::Ui::KEY_ESC)
+ {
+ Terminate();
+ }
+}
+
+void
+$(baseName)App::OnKeyLongPressed(const Control& source, KeyCode keyCode)
+{
+}
diff --git a/Template/Tizen Native/OpenGL Application/glplayerframeapp/project/src/GLPlayerTemplateEntry.cpp b/Template/Tizen Native/OpenGL Application/glplayerframeapp/project/src/GLPlayerTemplateEntry.cpp
new file mode 100644
index 0000000..2d07d92
--- /dev/null
+++ b/Template/Tizen Native/OpenGL Application/glplayerframeapp/project/src/GLPlayerTemplateEntry.cpp
@@ -0,0 +1,37 @@
+//
+// This file contains the Tizen application entry point.
+//
+#include <new>
+#include "$(baseName)App.h"
+
+using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif // __cplusplus
+
+//
+// The entry function of Tizen application called by the operating system.
+//
+_EXPORT_ int
+OspMain(int argc, char* pArgv[])
+{
+ AppLog("Application started.");
+ ArrayList args(SingleObjectDeleter);
+ args.Construct();
+ for (int i = 0; i < argc; i++)
+ {
+ args.Add(new (std::nothrow) String(pArgv[i]));
+ }
+
+ result r = Tizen::App::UiApp::Execute($(baseName)App::CreateInstance, &args);
+ TryLog(r == E_SUCCESS, "[%s] Application execution failed.", GetErrorMessage(r));
+ AppLog("Application finished.");
+
+ return static_cast< int >(r);
+}
+#ifdef __cplusplus
+}
+#endif // __cplusplus
diff --git a/Template/Tizen Native/OpenGL Application/glplayerframeapp/project/src/GLPlayerTemplateFrame.cpp b/Template/Tizen Native/OpenGL Application/glplayerframeapp/project/src/GLPlayerTemplateFrame.cpp
new file mode 100755
index 0000000..6344470
--- /dev/null
+++ b/Template/Tizen Native/OpenGL Application/glplayerframeapp/project/src/GLPlayerTemplateFrame.cpp
@@ -0,0 +1,37 @@
+#include "$(baseName)Frame.h"
+
+using namespace Tizen::Base;
+using namespace Tizen::Ui;
+using namespace Tizen::Ui::Controls;
+
+$(baseName)Frame::$(baseName)Frame(void)
+{
+}
+
+$(baseName)Frame::~$(baseName)Frame(void)
+{
+}
+
+result
+$(baseName)Frame::OnInitializing(void)
+{
+ result r = E_SUCCESS;
+
+ // TODO:
+ // Add your initialization code here
+
+ return r;
+}
+
+result
+$(baseName)Frame::OnTerminating(void)
+{
+ result r = E_SUCCESS;
+
+ // TODO:
+ // Add your termination code here
+
+ return r;
+}
+
+
diff --git a/Template/Tizen Native/OpenGL Application/glplayerframeapp/project/src/GlRendererTemplate.cpp b/Template/Tizen Native/OpenGL Application/glplayerframeapp/project/src/GlRendererTemplate.cpp
new file mode 100644
index 0000000..347eb97
--- /dev/null
+++ b/Template/Tizen Native/OpenGL Application/glplayerframeapp/project/src/GlRendererTemplate.cpp
@@ -0,0 +1,195 @@
+#include "GlRendererTemplate.h"
+
+const GLfloat ONEP = GLfloat(+1.0f);
+const GLfloat ONEN = GLfloat(-1.0f);
+const GLfloat ZERO = GLfloat( 0.0f);
+
+void SetPerspective(GLfloat fovDegree, GLfloat aspect, GLfloat zNear, GLfloat zFar)
+{
+ // tan(double(degree) * 3.1415962 / 180.0 / 2.0);
+ static const float HALF_TAN_TABLE[91] =
+ {
+ 0.00000f, 0.00873f, 0.01746f, 0.02619f, 0.03492f, 0.04366f, 0.05241f, 0.06116f, 0.06993f,
+ 0.07870f, 0.08749f, 0.09629f, 0.10510f, 0.11394f, 0.12278f, 0.13165f, 0.14054f, 0.14945f,
+ 0.15838f, 0.16734f, 0.17633f, 0.18534f, 0.19438f, 0.20345f, 0.21256f, 0.22169f, 0.23087f,
+ 0.24008f, 0.24933f, 0.25862f, 0.26795f, 0.27732f, 0.28675f, 0.29621f, 0.30573f, 0.31530f,
+ 0.32492f, 0.33460f, 0.34433f, 0.35412f, 0.36397f, 0.37389f, 0.38386f, 0.39391f, 0.40403f,
+ 0.41421f, 0.42448f, 0.43481f, 0.44523f, 0.45573f, 0.46631f, 0.47698f, 0.48773f, 0.49858f,
+ 0.50953f, 0.52057f, 0.53171f, 0.54296f, 0.55431f, 0.56577f, 0.57735f, 0.58905f, 0.60086f,
+ 0.61280f, 0.62487f, 0.63707f, 0.64941f, 0.66189f, 0.67451f, 0.68728f, 0.70021f, 0.71329f,
+ 0.72654f, 0.73996f, 0.75356f, 0.76733f, 0.78129f, 0.79544f, 0.80979f, 0.82434f, 0.83910f,
+ 0.85408f, 0.86929f, 0.88473f, 0.90041f, 0.91633f, 0.93252f, 0.94897f, 0.96569f, 0.98270f,
+ 1.00000f
+ };
+
+ int degree = int(fovDegree + 0.5f);
+
+ degree = (degree >= 0) ? degree : 0;
+ degree = (degree <= 90) ? degree : 90;
+
+ GLfloat fxdYMax = GLfloat(zNear * HALF_TAN_TABLE[degree]);
+ GLfloat fxdYMin = -fxdYMax;
+
+ GLfloat fxdXMax = GLfloat(GLfloat(fxdYMax) * aspect);
+ GLfloat fxdXMin = -fxdXMax;
+
+ glFrustumf(fxdXMin, fxdXMax, fxdYMin, fxdYMax, GLfloat(zNear), GLfloat(zFar));
+}
+
+GlRendererTemplate::GlRendererTemplate(void)
+ : __controlWidth(0)
+ , __controlHeight(0)
+ , __angle(0)
+{
+}
+
+GlRendererTemplate::~GlRendererTemplate(void)
+{
+
+}
+
+bool
+GlRendererTemplate::InitializeGl(void)
+{
+ // TODO:
+ // Initialize GL status.
+
+ glShadeModel(GL_SMOOTH);
+ glViewport(0, 0, GetTargetControlWidth(), GetTargetControlHeight());
+
+ glEnable(GL_CULL_FACE);
+ glCullFace(GL_BACK);
+
+ glEnable(GL_DEPTH_TEST);
+ glDepthFunc(GL_LESS);
+
+ glMatrixMode(GL_PROJECTION);
+ glLoadIdentity();
+
+ SetPerspective(60.0f, 1.0f * GetTargetControlWidth() / GetTargetControlHeight(), 1.0f, 400.0f);
+
+ glClearColor(0, 0, 0, 1);
+ glClear(GL_COLOR_BUFFER_BIT);
+
+ return true;
+}
+
+bool
+GlRendererTemplate::TerminateGl(void)
+{
+ // TODO:
+ // Terminate and reset GL status.
+ return true;
+}
+
+bool
+GlRendererTemplate::Draw(void)
+{
+ // TODO:
+ // Draw a scene and perform what to be necessary for each scene.
+
+ static const GLfloat vertices[] =
+ {
+ ZERO, ONEP, ZERO,
+ ONEN, ONEN, ZERO,
+ ONEP, ONEN, ZERO,
+ ZERO, ONEP, ZERO,
+ ONEP, ONEN, ZERO,
+ ONEN, ONEN, ZERO
+ };
+
+ static const GLfloat vertexColor[] =
+ {
+ ONEP, ZERO, ZERO, ONEP,
+ ZERO, ONEP, ZERO, ONEP,
+ ZERO, ZERO, ONEP, ONEP,
+ ONEP, ZERO, ZERO, ONEP,
+ ZERO, ZERO, ONEP, ONEP,
+ ZERO, ONEP, ZERO, ONEP
+ };
+
+ static const unsigned short indexBuffer[] =
+ {
+ 0, 1, 2, 3, 4, 5
+ };
+
+ __angle = (__angle + 10) % (360 * 3);
+
+ glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
+
+ glEnableClientState(GL_VERTEX_ARRAY);
+ glVertexPointer(3, GL_FLOAT, 0, vertices);
+
+ glEnableClientState(GL_COLOR_ARRAY);
+ glColorPointer(4, GL_FLOAT, 0, vertexColor);
+
+ glMatrixMode(GL_MODELVIEW);
+ {
+ glLoadIdentity();
+ glTranslatef(0, 0, GLfloat(-5.0f));
+ glRotatef(GLfloat(__angle), 0, GLfloat(1.0f), 0);
+ }
+
+ glDrawElements(GL_TRIANGLES, 3*2, GL_UNSIGNED_SHORT, &indexBuffer[0]);
+
+ glDisableClientState(GL_VERTEX_ARRAY);
+ glDisableClientState(GL_COLOR_ARRAY);
+
+ glFlush();
+
+ return true;
+}
+
+bool
+GlRendererTemplate::Pause(void)
+{
+ // TODO:
+ // Do something necessary when Plyaer is paused.
+
+ return true;
+}
+
+bool
+GlRendererTemplate::Resume(void)
+{
+ // TODO:
+ // Do something necessary when Plyaer is resumed.
+
+ return true;
+}
+
+int
+GlRendererTemplate::GetTargetControlWidth(void)
+{
+ // TODO:
+ // Return target control width
+
+ return __controlWidth;
+}
+
+int
+GlRendererTemplate::GetTargetControlHeight(void)
+{
+ // TODO:
+ // Return target control height
+
+ return __controlHeight;
+}
+
+void
+GlRendererTemplate::SetTargetControlWidth(int width)
+{
+ // TODO:
+ // Assign target control width
+
+ __controlWidth = width;
+}
+
+void
+GlRendererTemplate::SetTargetControlHeight(int height)
+{
+ // TODO:
+ // Assign target control height
+
+ __controlHeight = height;
+}
diff --git a/Template/Tizen Native/OpenGL Application/glplayerframeapp/sample.xml b/Template/Tizen Native/OpenGL Application/glplayerframeapp/sample.xml
new file mode 100755
index 0000000..d534c33
--- /dev/null
+++ b/Template/Tizen Native/OpenGL Application/glplayerframeapp/sample.xml
@@ -0,0 +1,78 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<template>
+
+ <slp-property>
+ <property-group>
+ <sample-name>Frame-based</sample-name>
+ <category>Application Template</category>
+ <sdk-version>1.00</sdk-version>
+ <project-type>org.tizen.nativecpp.buildArtefactType.app</project-type>
+ <sample-description>description.xml</sample-description>
+ </property-group>
+ </slp-property>
+
+ <process type="org.tizen.nativeappcommon.TizenCopyFolder">
+ <simple name="projectName" value="$(projectName)"/>
+ <simple name="folderPath" value="project"/>
+ <complex-array name="replaceableFiles">
+ <element>
+ <simple name="sourcePath" value="src/GLPlayerTemplate.cpp"/>
+ <simple name="targetPath" value="src/$(baseName)App.cpp"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="src/GLPlayerTemplateEntry.cpp"/>
+ <simple name="targetPath" value="src/$(baseName)Entry.cpp"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="src/GLPlayerTemplateFrame.cpp"/>
+ <simple name="targetPath" value="src/$(baseName)Frame.cpp"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="src/GlRendererTemplate.cpp"/>
+ <simple name="targetPath" value="src/GlRendererTemplate.cpp"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="src/AppResourceId.cpp"/>
+ <simple name="targetPath" value="src/AppResourceId.cpp"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="inc/GLPlayerTemplate.h"/>
+ <simple name="targetPath" value="inc/$(baseName)App.h"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="inc/GLPlayerTemplateFrame.h"/>
+ <simple name="targetPath" value="inc/$(baseName)Frame.h"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="inc/GlRendererTemplate.h"/>
+ <simple name="targetPath" value="inc/GlRendererTemplate.h"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="inc/AppResourceId.h"/>
+ <simple name="targetPath" value="inc/AppResourceId.h"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="manifest.xml"/>
+ <simple name="targetPath" value="manifest.xml"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ </complex-array>
+ </process>
+ <process type="org.tizen.nativecpp.SetDefaultFrameworks">
+ <simple name="projectName" value="$(projectName)"/>
+ <complex-array name="frameworkList">
+ <element>
+ <simple name="framework" value="osp"/>
+ </element>
+ </complex-array>
+ </process>
+</template>
diff --git a/Template/Tizen Native/OpenGL Application/glplayerframeapp/screenshot.png b/Template/Tizen Native/OpenGL Application/glplayerframeapp/screenshot.png
new file mode 100644
index 0000000..18e6401
--- /dev/null
+++ b/Template/Tizen Native/OpenGL Application/glplayerframeapp/screenshot.png
Binary files differ
diff --git a/Template/Tizen Native/Service Application/dynamicboxapp/description.xml b/Template/Tizen Native/Service Application/dynamicboxapp/description.xml
new file mode 100644
index 0000000..9c03454
--- /dev/null
+++ b/Template/Tizen Native/Service Application/dynamicboxapp/description.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8"?>
+<?xml-stylesheet type="text/xsl" href="../../../../description.xsl"?>
+
+<Overview version="0.17.1">
+ <SampleName> DynamicBox Application</SampleName>
+ <SampleVersion>1.0</SampleVersion>
+ <Preview>screenshot.png</Preview>
+ <Description>
+This template is suitable for creating a service application that exports DynamicBox(AppWidget) provider. The template contains the AppWidget provider functionality as well as the functionality for drawing a frame on the remote side screen of DynamicBox viewer(eg. Home screen).
+ </Description>
+</Overview>
diff --git a/Template/Tizen Native/Service Application/dynamicboxapp/project/inc/App.h b/Template/Tizen Native/Service Application/dynamicboxapp/project/inc/App.h
new file mode 100755
index 0000000..e74a7eb
--- /dev/null
+++ b/Template/Tizen Native/Service Application/dynamicboxapp/project/inc/App.h
@@ -0,0 +1,39 @@
+#ifndef _$(baseNameUpper)_APP_H_
+#define _$(baseNameUpper)_APP_H_
+
+$(pcheader)
+
+// $(baseName)App must inherit from ServiceApp class
+// which provides basic features necessary to define an ServiceApp.
+class $(baseName)App
+ : public Tizen::App::ServiceApp
+{
+public:
+ // $(baseName)App must have a factory method that creates an instance of itself.
+ static Tizen::App::ServiceApp* CreateInstance(void);
+
+ $(baseName)App(void);
+ ~$(baseName)App(void);
+
+private:
+
+ // Called when the ServiceApp is initializing.
+ bool OnAppInitializing(Tizen::App::AppRegistry& appRegistry);
+
+ // Called when the ServiceApp initializing is finished.
+ bool OnAppInitialized(void);
+
+ // Called when the ServiceApp is requested to terminate.
+ bool OnAppWillTerminate(void);
+
+ // Called when the ServiceApp is terminating.
+ bool OnAppTerminating(Tizen::App::AppRegistry& appRegistry, bool forcedTermination = false);
+
+ // Called when the system memory is not sufficient to run the ServiceApp any further.
+ void OnLowMemory(void);
+
+ // Called when the battery level changes.
+ void OnBatteryLevelChanged(Tizen::System::BatteryLevel batteryLevel);
+};
+
+#endif // _$(baseNameUpper)_APP_H_
diff --git a/Template/Tizen Native/Service Application/dynamicboxapp/project/inc/AppWidgetFrame.h b/Template/Tizen Native/Service Application/dynamicboxapp/project/inc/AppWidgetFrame.h
new file mode 100644
index 0000000..086453a
--- /dev/null
+++ b/Template/Tizen Native/Service Application/dynamicboxapp/project/inc/AppWidgetFrame.h
@@ -0,0 +1,22 @@
+#ifndef _$(baseNameUpper)_FRAME_H_
+#define _$(baseNameUpper)_FRAME_H_
+
+$(pcheader)
+#include <FShell.h>
+
+class $(baseName)Frame
+ : public Tizen::Shell::AppWidgetFrame
+{
+public:
+ $(baseName)Frame(void);
+ virtual ~$(baseName)Frame(void);
+ virtual result OnInitializing(void);
+ virtual result OnTerminating(void);
+ virtual void OnBoundsChanged(const Tizen::Graphics::Rectangle& oldRect, const Tizen::Graphics::Rectangle& newRect);
+ void OnAppWidgetUpdate(void);
+
+private:
+ Tizen::Ui::Controls::Label* __pLabel;
+};
+
+#endif // _$(baseNameUpper)_FRAME_H_
diff --git a/Template/Tizen Native/Service Application/dynamicboxapp/project/inc/AppWidgetPopupProvider.h b/Template/Tizen Native/Service Application/dynamicboxapp/project/inc/AppWidgetPopupProvider.h
new file mode 100755
index 0000000..c69d104
--- /dev/null
+++ b/Template/Tizen Native/Service Application/dynamicboxapp/project/inc/AppWidgetPopupProvider.h
@@ -0,0 +1,22 @@
+#ifndef _$(baseNameUpper)_POPUP_PROVIDER_H_
+#define _$(baseNameUpper)_POPUP_PROVIDER_H_
+
+$(pcheader)
+#include <FShell.h>
+
+//[$(baseName)AppWidgetPopupProvider] AppWidget popup provider must inherit from the AppWidgetPopupProvider class,
+//which provides basic features necessary to define an AppWidget popup.
+
+class $(baseName)PopupProvider
+ : public Tizen::Shell::AppWidgetPopupProvider
+{
+public:
+ $(baseName)PopupProvider(void);
+ virtual ~$(baseName)PopupProvider(void);
+
+protected:
+ virtual bool OnAppWidgetPopupProviderInitializing(const Tizen::Base::String& userInfo);
+ virtual void OnAppWidgetPopupProviderTerminating(void);
+};
+
+#endif // _$(baseNameUpper)_POPUP_PROVIDER_H_
diff --git a/Template/Tizen Native/Service Application/dynamicboxapp/project/inc/AppWidgetPopupProviderFactory.h b/Template/Tizen Native/Service Application/dynamicboxapp/project/inc/AppWidgetPopupProviderFactory.h
new file mode 100644
index 0000000..8aedd6a
--- /dev/null
+++ b/Template/Tizen Native/Service Application/dynamicboxapp/project/inc/AppWidgetPopupProviderFactory.h
@@ -0,0 +1,17 @@
+#ifndef _$(baseNameUpper)_POPUP_PROVIDER_FACTORY_H_
+#define _$(baseNameUpper)_POPUP_PROVIDER_FACTORY_H_
+
+$(pcheader)
+#include <FShell.h>
+
+class $(baseName)PopupProviderFactory
+: public Tizen::Shell::IAppWidgetPopupProviderFactory
+{
+public:
+ $(baseName)PopupProviderFactory(void);
+ virtual ~$(baseName)PopupProviderFactory(void);
+
+ virtual Tizen::Shell::AppWidgetPopupProvider* CreateInstance(const Tizen::Base::String& name, const Tizen::Base::String& userInfo);
+};
+
+#endif // _$(baseNameUpper)_POPUP_PROVIDER_FACTORY_H_
diff --git a/Template/Tizen Native/Service Application/dynamicboxapp/project/inc/AppWidgetProvider.h b/Template/Tizen Native/Service Application/dynamicboxapp/project/inc/AppWidgetProvider.h
new file mode 100755
index 0000000..5880b06
--- /dev/null
+++ b/Template/Tizen Native/Service Application/dynamicboxapp/project/inc/AppWidgetProvider.h
@@ -0,0 +1,25 @@
+#ifndef _$(baseNameUpper)_PROVIDER_H_
+#define _$(baseNameUpper)_PROVIDER_H_
+
+$(pcheader)
+#include <FShell.h>
+
+// [$(baseName)AppWidgetProvider] AppWidget provider must inherit from the AppWidgetProvider class,
+// which provides basic features necessary to define an AppWidget.
+
+class $(baseName)Provider
+: public Tizen::Shell::AppWidgetProvider
+ {
+public:
+ $(baseName)Provider(void);
+ virtual ~$(baseName)Provider(void);
+
+protected:
+ virtual bool OnAppWidgetProviderInitializing(float width, float height, const Tizen::Base::String& userInfo);
+ virtual void OnAppWidgetProviderTerminating(void);
+ virtual void OnAppWidgetProviderRemoved(void);
+ virtual bool OnAppWidgetProviderUpdating(const Tizen::Base::String& argument);
+};
+
+
+#endif // _$(baseNameUpper)_PROVIDER_H_
diff --git a/Template/Tizen Native/Service Application/dynamicboxapp/project/inc/AppWidgetProviderFactory.h b/Template/Tizen Native/Service Application/dynamicboxapp/project/inc/AppWidgetProviderFactory.h
new file mode 100644
index 0000000..f5d4f3a
--- /dev/null
+++ b/Template/Tizen Native/Service Application/dynamicboxapp/project/inc/AppWidgetProviderFactory.h
@@ -0,0 +1,17 @@
+#ifndef _$(baseNameUpper)_PROVIDER_FACTORY_H_
+#define _$(baseNameUpper)_PROVIDER_FACTORY_H_
+
+$(pcheader)
+#include <FShell.h>
+
+class $(baseName)ProviderFactory
+: public Tizen::Shell::IAppWidgetProviderFactory
+{
+public:
+ $(baseName)ProviderFactory(void);
+ virtual ~$(baseName)ProviderFactory(void);
+
+ virtual Tizen::Shell::AppWidgetProvider* CreateInstance(const Tizen::Base::String& name, float width, float height, const Tizen::Base::String& userInfo);
+};
+
+#endif // _$(baseNameUpper)_PROVIDER_FACTORY_H_
diff --git a/Template/Tizen Native/Service Application/dynamicboxapp/project/inc/tizenx.h b/Template/Tizen Native/Service Application/dynamicboxapp/project/inc/tizenx.h
new file mode 100644
index 0000000..9412bed
--- /dev/null
+++ b/Template/Tizen Native/Service Application/dynamicboxapp/project/inc/tizenx.h
@@ -0,0 +1,14 @@
+// precompiled header file
+#ifndef TIZENX_H_
+#define TIZENX_H_
+
+#include <FApp.h>
+#include <FBase.h>
+#include <FSystem.h>
+#include <FUi.h>
+#include <FUiIme.h>
+#include <FGraphics.h>
+#include <FShell.h>
+#include <gl.h>
+
+#endif
diff --git a/Template/Tizen Native/Service Application/dynamicboxapp/project/manifest.xml b/Template/Tizen Native/Service Application/dynamicboxapp/project/manifest.xml
new file mode 100755
index 0000000..5717cdf
--- /dev/null
+++ b/Template/Tizen Native/Service Application/dynamicboxapp/project/manifest.xml
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<Manifest xmlns="http://schemas.tizen.org/2012/12/manifest">
+ <Id>$(manifestAppId)</Id>
+ <Version>1.0.0</Version>
+ <Type>C++App</Type>
+ <Requirements>
+ <Feature Name="http://tizen.org/feature/platform.native.api.version">2.2</Feature>
+ </Requirements>
+ <Apps>
+ <ApiVersion>2.2</ApiVersion>
+ <ServiceApp Name="$(projectName)" LifeDuration="30000" UseUi="True" Main="True" >
+ <UiScalability BaseScreenSize="Normal" CoordinateSystem="Logical" LogicalCoordinate="720"/>
+ <UiTheme SystemTheme="White"/>
+ <DisplayNames>
+ <DisplayName Locale="eng-GB">$(projectName)</DisplayName>
+ </DisplayNames>
+ <Icons>
+ <Icon Section="MainMenu">mainmenu.png</Icon>
+ </Icons>
+ <AppWidgets>
+ <AppWidget AppWidgetPopupEnabled="True" ProviderName="$(projectName)Provider" UpdatePeriod="1800000">
+ <DisplayNames>
+ <DisplayName Locale="eng-GB">$(projectName)</DisplayName>
+ </DisplayNames>
+ <Sizes>
+ <Size PreviewImage="1x1.png" UseDecorationFrame="True">1x1</Size>
+ <Size PreviewImage="2x1.png" UseDecorationFrame="True">2x1</Size>
+ <Size PreviewImage="2x2.png" UseDecorationFrame="True">2x2</Size>
+ </Sizes>
+ </AppWidget>
+ </AppWidgets>
+ </ServiceApp>
+ </Apps>
+</Manifest>
diff --git a/Template/Tizen Native/Service Application/dynamicboxapp/project/shared/res/screen-density-xhigh/1x1.png b/Template/Tizen Native/Service Application/dynamicboxapp/project/shared/res/screen-density-xhigh/1x1.png
new file mode 100644
index 0000000..0daf10e
--- /dev/null
+++ b/Template/Tizen Native/Service Application/dynamicboxapp/project/shared/res/screen-density-xhigh/1x1.png
Binary files differ
diff --git a/Template/Tizen Native/Service Application/dynamicboxapp/project/shared/res/screen-density-xhigh/2x1.png b/Template/Tizen Native/Service Application/dynamicboxapp/project/shared/res/screen-density-xhigh/2x1.png
new file mode 100644
index 0000000..b0b735d
--- /dev/null
+++ b/Template/Tizen Native/Service Application/dynamicboxapp/project/shared/res/screen-density-xhigh/2x1.png
Binary files differ
diff --git a/Template/Tizen Native/Service Application/dynamicboxapp/project/shared/res/screen-density-xhigh/2x2.png b/Template/Tizen Native/Service Application/dynamicboxapp/project/shared/res/screen-density-xhigh/2x2.png
new file mode 100644
index 0000000..8ffe717
--- /dev/null
+++ b/Template/Tizen Native/Service Application/dynamicboxapp/project/shared/res/screen-density-xhigh/2x2.png
Binary files differ
diff --git a/Template/Tizen Native/Service Application/dynamicboxapp/project/shared/res/screen-density-xhigh/mainmenu.png b/Template/Tizen Native/Service Application/dynamicboxapp/project/shared/res/screen-density-xhigh/mainmenu.png
new file mode 100755
index 0000000..9765b1b
--- /dev/null
+++ b/Template/Tizen Native/Service Application/dynamicboxapp/project/shared/res/screen-density-xhigh/mainmenu.png
Binary files differ
diff --git a/Template/Tizen Native/Service Application/dynamicboxapp/project/src/App.cpp b/Template/Tizen Native/Service Application/dynamicboxapp/project/src/App.cpp
new file mode 100755
index 0000000..dad3e01
--- /dev/null
+++ b/Template/Tizen Native/Service Application/dynamicboxapp/project/src/App.cpp
@@ -0,0 +1,78 @@
+#include <new>
+#include "$(baseName)App.h"
+#include "$(baseName)ProviderFactory.h"
+#include "$(baseName)PopupProviderFactory.h"
+
+using namespace Tizen::App;
+using namespace Tizen::Base;
+using namespace Tizen::System;
+using namespace Tizen::Shell;
+
+$(baseName)App::$(baseName)App(void)
+{
+}
+
+$(baseName)App::~$(baseName)App(void)
+{
+}
+
+ServiceApp*
+$(baseName)App::CreateInstance(void)
+{
+ // Create the instance through the constructor.
+ return new (std::nothrow) $(baseName)App();
+}
+
+bool
+$(baseName)App::OnAppInitializing(AppRegistry& appRegistry)
+{
+ // TODO:
+ // Initialize App specific data, and add your initialization code here
+ // The App's permanent data and context can be obtained from the appRegistry.
+ //
+ // If this method is successful, return true; otherwise, return false.
+ // If this method returns false, the App will be terminated.
+ AppWidgetProviderManager* pAppWidgetProviderManager = AppWidgetProviderManager::GetInstance();
+ AppAssertf(pAppWidgetProviderManager, "AppWidgetProviderManager creation failed.");
+
+ pAppWidgetProviderManager->SetAppWidgetProviderFactory(*(new (std::nothrow) $(baseName)ProviderFactory));
+ pAppWidgetProviderManager->SetAppWidgetPopupProviderFactory(*(new (std::nothrow) $(baseName)PopupProviderFactory));
+
+ return true;
+}
+
+bool
+$(baseName)App::OnAppInitialized(void)
+{
+ return true;
+}
+
+bool
+$(baseName)App::OnAppWillTerminate(void)
+{
+ return true;
+}
+
+bool
+$(baseName)App::OnAppTerminating(AppRegistry& appRegistry, bool forcedTermination)
+{
+ // TODO:
+ // Deallocate resources allocated by this App for termination, and add your termination code here
+ // The App's permanent data and context can be saved via appRegistry.
+ return true;
+}
+
+void
+$(baseName)App::OnLowMemory(void)
+{
+ // TODO:
+ // Free unused resources or close the App.
+}
+
+void
+$(baseName)App::OnBatteryLevelChanged(BatteryLevel batteryLevel)
+{
+ // TODO:
+ // Handle any changes in battery level here.
+ // Stop using multimedia features(camera, mp3 etc.) if the battery level is CRITICAL.
+}
diff --git a/Template/Tizen Native/Service Application/dynamicboxapp/project/src/AppEntry.cpp b/Template/Tizen Native/Service Application/dynamicboxapp/project/src/AppEntry.cpp
new file mode 100755
index 0000000..08f19cb
--- /dev/null
+++ b/Template/Tizen Native/Service Application/dynamicboxapp/project/src/AppEntry.cpp
@@ -0,0 +1,35 @@
+#include <new>
+#include "$(baseName)App.h"
+
+using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+_EXPORT_ int OspMain(int argc, char* pArgv[]);
+
+// The entry function of Tizen C++ application called by the operating system.
+int
+OspMain(int argc, char *pArgv[])
+{
+ AppLog("Application started.");
+
+ ArrayList args(SingleObjectDeleter);
+ args.Construct();
+ for (int i = 0; i < argc; i++)
+ {
+ args.Add(new (std::nothrow) String(pArgv[i]));
+ }
+
+ result r = Tizen::App::ServiceApp::Execute($(baseName)App::CreateInstance, &args);
+ TryLog(r == E_SUCCESS, "[%s] Application execution failed.", GetErrorMessage(r));
+
+ AppLog("Application finished.");
+ return static_cast< int >(r);
+}
+#ifdef __cplusplus
+}
+#endif
diff --git a/Template/Tizen Native/Service Application/dynamicboxapp/project/src/AppWidgetFrame.cpp b/Template/Tizen Native/Service Application/dynamicboxapp/project/src/AppWidgetFrame.cpp
new file mode 100755
index 0000000..d82a439
--- /dev/null
+++ b/Template/Tizen Native/Service Application/dynamicboxapp/project/src/AppWidgetFrame.cpp
@@ -0,0 +1,69 @@
+#include "$(baseName)Provider.h"
+#include "$(baseName)Frame.h"
+
+using namespace Tizen::Graphics;
+using namespace Tizen::Ui;
+using namespace Tizen::Ui::Controls;
+
+
+$(baseName)Frame::$(baseName)Frame(void)
+{
+
+}
+
+$(baseName)Frame::~$(baseName)Frame(void)
+{
+
+}
+
+result
+$(baseName)Frame::OnInitializing(void)
+{
+ // TODO:
+ // Add your initialization code here.
+ __pLabel = new Label();
+ TryReturn(__pLabel, E_OUT_OF_MEMORY, "Failed to allocate memory for Label.");
+
+ FloatRectangle bounds = this->GetBoundsF();
+ result r = __pLabel->Construct(bounds, L"Hello Dynamic Box!");
+ TryReturn(r == E_SUCCESS, r, "[%s] Failed to construct Label.", GetErrorMessage(r));
+
+ __pLabel->SetTextConfig(30, LABEL_TEXT_STYLE_BOLD);
+ __pLabel->SetTextVerticalAlignment(ALIGNMENT_MIDDLE);
+ __pLabel->SetTextHorizontalAlignment(ALIGNMENT_CENTER);
+ __pLabel->SetBackgroundColor(Color::GetColor(COLOR_ID_YELLOW));
+ this->AddControl(__pLabel);
+
+ return E_SUCCESS;
+}
+
+void
+$(baseName)Frame::OnAppWidgetUpdate(void)
+{
+ // TODO:
+ // Add your code to update the AppWidget here.
+
+ Invalidate(true);
+}
+
+result
+$(baseName)Frame::OnTerminating(void)
+{
+ // TODO:
+ // Add your termination code here.
+
+ return E_SUCCESS;
+}
+
+void
+$(baseName)Frame::OnBoundsChanged(const Tizen::Graphics::Rectangle& oldRect, const Tizen::Graphics::Rectangle& newRect)
+{
+ // TODO:
+ // Add your code to resize the AppWidget here.
+ if (__pLabel)
+ {
+ __pLabel->SetBounds(newRect);
+ }
+
+}
+
diff --git a/Template/Tizen Native/Service Application/dynamicboxapp/project/src/AppWidgetPopupProvider.cpp b/Template/Tizen Native/Service Application/dynamicboxapp/project/src/AppWidgetPopupProvider.cpp
new file mode 100755
index 0000000..46da281
--- /dev/null
+++ b/Template/Tizen Native/Service Application/dynamicboxapp/project/src/AppWidgetPopupProvider.cpp
@@ -0,0 +1,66 @@
+#include <new>
+#include "$(baseName)Provider.h"
+#include "$(baseName)PopupProvider.h"
+
+using namespace Tizen::Base;
+using namespace Tizen::Graphics;
+using namespace Tizen::Ui::Controls;
+using namespace Tizen::Shell;
+
+$(baseName)PopupProvider::$(baseName)PopupProvider(void)
+{
+
+}
+
+$(baseName)PopupProvider::~$(baseName)PopupProvider(void)
+{
+
+}
+
+bool
+$(baseName)PopupProvider::OnAppWidgetPopupProviderInitializing(const String& userInfo)
+{
+ // TODO: Initialize the data specific to the AppWidgetFrame and the AppWidget provider.
+ // The AppWidget provider's permanent data and context can be obtained from the appRegistry.
+ //
+ // If this method is successful, return true; otherwise, return false.
+ // If this method returns false, the App will be terminated.
+ AppWidgetPopup* pAppWidgetPopup = new (std::nothrow) AppWidgetPopup;
+ TryReturn(pAppWidgetPopup, false, "Failed to allocate memory for AppWidgetPopup.");
+
+ const float width = 720.0;
+ const float height = 250.0;
+
+ result r = pAppWidgetPopup->Construct(FloatDimension(width, height));
+ TryReturn(r == E_SUCCESS, false, "[%s] Failed to construct AppWidgetPopup.", GetErrorMessage(r));
+
+ // TODO: Put your UI code here.
+ Label* pLabel = new Label();
+ TryReturn(pLabel, false, "Failed to allocate memory for Label.");
+
+ FloatRectangle popupClientAreaBounds = pAppWidgetPopup->GetClientAreaBounds();
+ FloatRectangle rect(0, 0, popupClientAreaBounds.width, popupClientAreaBounds.height);
+
+ r = pLabel->Construct(rect, L"This is Drop View!");
+ TryReturn(r == E_SUCCESS, false, "[%s] Failed to construct Label.", GetErrorMessage(r));
+
+ pLabel->SetTextConfig(30, LABEL_TEXT_STYLE_BOLD);
+ pLabel->SetTextVerticalAlignment(ALIGNMENT_MIDDLE);
+ pLabel->SetTextHorizontalAlignment(ALIGNMENT_CENTER);
+ pLabel->SetBackgroundColor(Color::GetColor(COLOR_ID_GREY));
+ pAppWidgetPopup->AddControl(pLabel);
+
+ pAppWidgetPopup->Show();
+
+ r = SetAppWidgetPopup(pAppWidgetPopup);
+ TryReturn(r == E_SUCCESS, false, "[%s] Failed to invoke SetAppWidgetPopup.", GetErrorMessage(r));
+
+ return true;
+}
+
+void
+$(baseName)PopupProvider::OnAppWidgetPopupProviderTerminating(void)
+{
+ // TODO: Deallocate resources allocated by this AppWidget provider for termination.
+ // The AppWidget provider's permanent data and context can be saved through the appRegistry.
+}
diff --git a/Template/Tizen Native/Service Application/dynamicboxapp/project/src/AppWidgetPopupProviderFactory.cpp b/Template/Tizen Native/Service Application/dynamicboxapp/project/src/AppWidgetPopupProviderFactory.cpp
new file mode 100644
index 0000000..b752a68
--- /dev/null
+++ b/Template/Tizen Native/Service Application/dynamicboxapp/project/src/AppWidgetPopupProviderFactory.cpp
@@ -0,0 +1,24 @@
+#include <new>
+#include "$(baseName)PopupProvider.h"
+#include "$(baseName)PopupProviderFactory.h"
+
+using namespace Tizen::Base;
+using namespace Tizen::Shell;
+
+$(baseName)PopupProviderFactory::$(baseName)PopupProviderFactory(void)
+{
+
+}
+
+$(baseName)PopupProviderFactory::~$(baseName)PopupProviderFactory(void)
+{
+
+}
+
+AppWidgetPopupProvider*
+$(baseName)PopupProviderFactory::CreateInstance(const String& name, const String& userInfo)
+{
+ // TODO:
+ // Create the AppWidgetPopupProvider instance through the constructor.
+ return new (std::nothrow) $(baseName)PopupProvider();
+}
diff --git a/Template/Tizen Native/Service Application/dynamicboxapp/project/src/AppWidgetProvider.cpp b/Template/Tizen Native/Service Application/dynamicboxapp/project/src/AppWidgetProvider.cpp
new file mode 100755
index 0000000..6f6b77a
--- /dev/null
+++ b/Template/Tizen Native/Service Application/dynamicboxapp/project/src/AppWidgetProvider.cpp
@@ -0,0 +1,74 @@
+#include <new>
+#include "$(baseName)Frame.h"
+#include "$(baseName)Provider.h"
+
+using namespace Tizen::Base;
+using namespace Tizen::Graphics;
+using namespace Tizen::Ui::Controls;
+using namespace Tizen::Shell;
+
+$(baseName)Provider::$(baseName)Provider(void)
+{
+}
+
+$(baseName)Provider::~$(baseName)Provider(void)
+{
+}
+
+
+bool
+$(baseName)Provider::OnAppWidgetProviderInitializing(float width, float height, const Tizen::Base::String& userInfo)
+{
+ AppLog("$(baseName)Provider is initializing with width(%f) and height(%f)", width, height);
+
+ // TODO: Initialize the AppWidgetFrame and the specific data that is managed by the $(baseName)Provider.
+ // The $(baseName)Provider's permanent data and context can be obtained from persistent storage.
+ //
+ // If this method is successful, return true; otherwise, return false.
+ // If this method returns false, OnAppWidgetProviderRemoved will be invoked, followed by OnAppWidgetProviderTerminating.
+ // IAppWidgetViewEventListener::OnAppWidgetProviderRemoved will be invoked on the AppWidget viewer(for example, the Home screen) side so that it can remove the corresponding AppWidgetView.
+
+ AppWidgetFrame* pFrame = new (std::nothrow) $(baseName)Frame();
+ TryReturn(pFrame, false, "Failed to allocate memory for AppWidgetFrame.");
+
+ result r = pFrame->Construct(FloatDimension(width, height));
+ TryReturn(r == E_SUCCESS, false, "[%s] Failed to construct $(baseName)Frame.", GetErrorMessage(r));
+
+ r = this->SetAppWidgetFrame(pFrame);
+ TryReturn(r == E_SUCCESS, false, "[%s] Failed to invoke SetAppWidgetFrame.", GetErrorMessage(r));
+
+ // REMARK:
+ // $(baseName)Frame::OnInitializing() will be invoked after $(baseName)Frame::Show() is called.
+ pFrame->Show();
+
+ return true;
+}
+
+void
+$(baseName)Provider::OnAppWidgetProviderTerminating(void)
+{
+ // TODO: Deallocate resources allocated by this AppWidget provider for termination.
+ // The AppWidget provider's permanent data and context can be saved through the appRegistry.
+}
+
+bool
+$(baseName)Provider::OnAppWidgetProviderUpdating(const Tizen::Base::String& argument)
+{
+ $(baseName)Frame* pAppWidgetFrame = dynamic_cast< $(baseName)Frame* >(GetAppWidgetFrame());
+
+ // TODO: Add your code to update the AppWidget here.
+ // If this method is successful, return true; otherwise, return false.
+ // If this method returns false, OnAppWidgetProviderRemoved will be invoked, followed by OnAppWidgetProviderTerminating.
+ // IAppWidgetViewEventListener::OnAppWidgetProviderRemoved will be invoked on the AppWidget viewer(eg, the Home screen) side so that it can remove the corresponding AppWidgetView.
+
+ pAppWidgetFrame->OnAppWidgetUpdate();
+
+ return true;
+}
+
+void
+$(baseName)Provider::OnAppWidgetProviderRemoved(void)
+{
+ // TODO:
+ // The AppWidget provider's permanent data and context can be removed here.
+}
diff --git a/Template/Tizen Native/Service Application/dynamicboxapp/project/src/AppWidgetProviderFactory.cpp b/Template/Tizen Native/Service Application/dynamicboxapp/project/src/AppWidgetProviderFactory.cpp
new file mode 100644
index 0000000..8a811b6
--- /dev/null
+++ b/Template/Tizen Native/Service Application/dynamicboxapp/project/src/AppWidgetProviderFactory.cpp
@@ -0,0 +1,25 @@
+#include <new>
+#include "$(baseName)Provider.h"
+#include "$(baseName)ProviderFactory.h"
+
+using namespace Tizen::Base;
+using namespace Tizen::Shell;
+
+$(baseName)ProviderFactory::$(baseName)ProviderFactory(void)
+{
+
+}
+
+$(baseName)ProviderFactory::~$(baseName)ProviderFactory(void)
+{
+
+}
+
+AppWidgetProvider*
+$(baseName)ProviderFactory::CreateInstance(const String& name, float width, float height, const String& userInfo)
+{
+ // TODO:
+ // Create the AppWidgetProvider instance through the constructor.
+ return new (std::nothrow) $(baseName)Provider();
+}
+
diff --git a/Template/Tizen Native/Service Application/dynamicboxapp/sample.xml b/Template/Tizen Native/Service Application/dynamicboxapp/sample.xml
new file mode 100644
index 0000000..7293863
--- /dev/null
+++ b/Template/Tizen Native/Service Application/dynamicboxapp/sample.xml
@@ -0,0 +1,99 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<template>
+
+ <slp-property>
+ <property-group>
+ <sample-name>DynamicBox Application</sample-name>
+ <category>Service Application Template</category>
+ <sdk-version>1.00</sdk-version>
+ <project-type>org.tizen.nativecpp.buildArtefactType.app</project-type>
+ <sample-description>description.xml</sample-description>
+ </property-group>
+ </slp-property>
+
+ <process type="org.tizen.nativeappcommon.TizenCopyFolder">
+ <simple name="projectName" value="$(projectName)"/>
+ <simple name="folderPath" value="project"/>
+ <complex-array name="replaceableFiles">
+ <element>
+ <simple name="sourcePath" value="inc/AppWidgetFrame.h"/>
+ <simple name="targetPath" value="inc/$(baseName)Frame.h"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="inc/AppWidgetPopupProvider.h"/>
+ <simple name="targetPath" value="inc/$(baseName)PopupProvider.h"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="inc/AppWidgetPopupProviderFactory.h"/>
+ <simple name="targetPath" value="inc/$(baseName)PopupProviderFactory.h"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="inc/AppWidgetProvider.h"/>
+ <simple name="targetPath" value="inc/$(baseName)Provider.h"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="inc/App.h"/>
+ <simple name="targetPath" value="inc/$(baseName)App.h"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="inc/AppWidgetProviderFactory.h"/>
+ <simple name="targetPath" value="inc/$(baseName)ProviderFactory.h"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+
+ <element>
+ <simple name="sourcePath" value="src/AppWidgetFrame.cpp"/>
+ <simple name="targetPath" value="src/$(baseName)Frame.cpp"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="src/AppWidgetPopupProvider.cpp"/>
+ <simple name="targetPath" value="src/$(baseName)PopupProvider.cpp"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="src/AppWidgetPopupProviderFactory.cpp"/>
+ <simple name="targetPath" value="src/$(baseName)PopupProviderFactory.cpp"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="src/AppWidgetProvider.cpp"/>
+ <simple name="targetPath" value="src/$(baseName)Provider.cpp"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="src/App.cpp"/>
+ <simple name="targetPath" value="src/$(baseName)App.cpp"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="src/AppWidgetProviderFactory.cpp"/>
+ <simple name="targetPath" value="src/$(baseName)ProviderFactory.cpp"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="src/AppEntry.cpp"/>
+ <simple name="targetPath" value="src/$(baseName)AppEntry.cpp"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="manifest.xml"/>
+ <simple name="targetPath" value="manifest.xml"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ </complex-array>
+ </process>
+ <process type="org.tizen.nativecpp.SetDefaultFrameworks">
+ <simple name="projectName" value="$(projectName)"/>
+ <complex-array name="frameworkList">
+ <element>
+ <simple name="framework" value="osp"/>
+ </element>
+ </complex-array>
+ </process>
+</template>
diff --git a/Template/Tizen Native/Service Application/dynamicboxapp/screenshot.png b/Template/Tizen Native/Service Application/dynamicboxapp/screenshot.png
new file mode 100644
index 0000000..a8e5e1a
--- /dev/null
+++ b/Template/Tizen Native/Service Application/dynamicboxapp/screenshot.png
Binary files differ
diff --git a/Template/Tizen Native/Service Application/serviceapp/description.xml b/Template/Tizen Native/Service Application/serviceapp/description.xml
new file mode 100644
index 0000000..3b02f2b
--- /dev/null
+++ b/Template/Tizen Native/Service Application/serviceapp/description.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8"?>
+<?xml-stylesheet type="text/xsl" href="../../../../description.xsl"?>
+
+<Overview version="0.17.1">
+ <SampleName>Service Application</SampleName>
+ <SampleVersion>1.0</SampleVersion>
+ <Preview>screenshot.png</Preview>
+ <Description>
+ This template is suitable for creating a service application that does not have a UI and always runs in the background.
+ </Description>
+</Overview>
diff --git a/Template/Tizen Native/Service Application/serviceapp/project/inc/App.h b/Template/Tizen Native/Service Application/serviceapp/project/inc/App.h
new file mode 100644
index 0000000..359d439
--- /dev/null
+++ b/Template/Tizen Native/Service Application/serviceapp/project/inc/App.h
@@ -0,0 +1,37 @@
+#ifndef _$(baseNameUpper)_APP_H_
+#define _$(baseNameUpper)_APP_H_
+
+$(pcheader)
+
+// $(baseName)App must inherit from ServiceApp class
+// which provides basic features necessary to define an ServiceApp.
+class $(baseName)App
+ : public Tizen::App::ServiceApp
+{
+public:
+ // [$(baseName)App] ServiceApp must have a factory method that creates an instance of itself.
+ static Tizen::App::ServiceApp* CreateInstance(void);
+ $(baseName)App(void);
+ ~$(baseName)App(void);
+
+private:
+ // Called when the ServiceApp is initializing.
+ bool OnAppInitializing(Tizen::App::AppRegistry& appRegistry);
+
+ // Called when the ServiceApp initializing is finished.
+ bool OnAppInitialized(void);
+
+ // Called when the ServiceApp is requested to terminate.
+ bool OnAppWillTerminate(void);
+
+ // Called when the ServiceApp is terminating.
+ bool OnAppTerminating(Tizen::App::AppRegistry& appRegistry, bool forcedTermination = false);
+
+ // Called when the system memory is not sufficient to run the ServiceApp any further.
+ void OnLowMemory(void);
+
+ // Called when the battery level changes.
+ void OnBatteryLevelChanged(Tizen::System::BatteryLevel batteryLevel);
+};
+
+#endif // _$(baseNameUpper)_APP_H_
diff --git a/Template/Tizen Native/Service Application/serviceapp/project/inc/tizenx.h b/Template/Tizen Native/Service Application/serviceapp/project/inc/tizenx.h
new file mode 100644
index 0000000..fc7052d
--- /dev/null
+++ b/Template/Tizen Native/Service Application/serviceapp/project/inc/tizenx.h
@@ -0,0 +1,13 @@
+// precompiled header file
+#ifndef TIZENX_H_
+#define TIZENX_H_
+
+#include <FApp.h>
+#include <FBase.h>
+#include <FSystem.h>
+#include <FUi.h>
+#include <FUiIme.h>
+#include <FGraphics.h>
+#include <gl.h>
+
+#endif
diff --git a/Template/Tizen Native/Service Application/serviceapp/project/manifest.xml b/Template/Tizen Native/Service Application/serviceapp/project/manifest.xml
new file mode 100755
index 0000000..b5721b3
--- /dev/null
+++ b/Template/Tizen Native/Service Application/serviceapp/project/manifest.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<Manifest xmlns="http://schemas.tizen.org/2012/12/manifest">
+ <Id>$(manifestAppId)</Id>
+ <Version>1.0.0</Version>
+ <Type>C++App</Type>
+ <Requirements>
+ <Feature Name="http://tizen.org/feature/platform.native.api.version">2.2</Feature>
+ </Requirements>
+ <Apps>
+ <ApiVersion>2.2</ApiVersion>
+ <ServiceApp Main="True" Name="$(projectName)" >
+ <DisplayNames>
+ <DisplayName Locale="eng-GB">$(projectName)</DisplayName>
+ </DisplayNames>
+ <Icons>
+ <Icon Section="MainMenu" >mainmenu.png</Icon>
+ </Icons>
+ </ServiceApp>
+ </Apps>
+</Manifest>
diff --git a/Template/Tizen Native/Service Application/serviceapp/project/shared/res/screen-density-xhigh/mainmenu.png b/Template/Tizen Native/Service Application/serviceapp/project/shared/res/screen-density-xhigh/mainmenu.png
new file mode 100755
index 0000000..9765b1b
--- /dev/null
+++ b/Template/Tizen Native/Service Application/serviceapp/project/shared/res/screen-density-xhigh/mainmenu.png
Binary files differ
diff --git a/Template/Tizen Native/Service Application/serviceapp/project/src/App.cpp b/Template/Tizen Native/Service Application/serviceapp/project/src/App.cpp
new file mode 100644
index 0000000..682b17c
--- /dev/null
+++ b/Template/Tizen Native/Service Application/serviceapp/project/src/App.cpp
@@ -0,0 +1,69 @@
+#include "$(baseName)App.h"
+#include <new>
+
+using namespace Tizen::App;
+using namespace Tizen::Base;
+using namespace Tizen::System;
+
+$(baseName)App::$(baseName)App(void)
+{
+}
+
+$(baseName)App::~$(baseName)App(void)
+{
+}
+
+ServiceApp*
+$(baseName)App::CreateInstance(void)
+{
+ // Create the instance through the constructor.
+ return new (std::nothrow) $(baseName)App();
+}
+
+bool
+$(baseName)App::OnAppInitializing(AppRegistry& appRegistry)
+{
+ // TODO:
+ // Initialize App specific data, and add your initialization code here
+ // The App's permanent data and context can be obtained from the appRegistry.
+ //
+ // If this method is successful, return true; otherwise, return false.
+ // If this method returns false, the App will be terminated.
+ return true;
+}
+
+bool
+$(baseName)App::OnAppInitialized(void)
+{
+ return true;
+}
+
+bool
+$(baseName)App::OnAppWillTerminate(void)
+{
+ return true;
+}
+
+bool
+$(baseName)App::OnAppTerminating(AppRegistry& appRegistry, bool forcedTermination)
+{
+ // TODO:
+ // Deallocate resources allocated by this App for termination, and add your termination code here
+ // The App's permanent data and context can be saved via appRegistry.
+ return true;
+}
+
+void
+$(baseName)App::OnLowMemory(void)
+{
+ // TODO:
+ // Free unused resources or close the App.
+}
+
+void
+$(baseName)App::OnBatteryLevelChanged(BatteryLevel batteryLevel)
+{
+ // TODO:
+ // Handle any changes in battery level here.
+ // Stop using multimedia features(camera, mp3 etc.) if the battery level is CRITICAL.
+}
diff --git a/Template/Tizen Native/Service Application/serviceapp/project/src/Entry.cpp b/Template/Tizen Native/Service Application/serviceapp/project/src/Entry.cpp
new file mode 100644
index 0000000..6361041
--- /dev/null
+++ b/Template/Tizen Native/Service Application/serviceapp/project/src/Entry.cpp
@@ -0,0 +1,43 @@
+#include "$(baseName)App.h"
+#include <new>
+
+using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+_EXPORT_ int OspMain(int argc, char* pArgv[]);
+
+//The entry function of Tizen C++ application called by the operating system.
+int
+OspMain(int argc, char* pArgv[])
+{
+ result r = E_SUCCESS;
+
+ AppLog("Application started.");
+ ArrayList args;
+ args.Construct();
+ for (int i = 0; i < argc; i++)
+ {
+ args.Add(*(new (std::nothrow) String(pArgv[i])));
+ }
+
+ r = Tizen::App::ServiceApp::Execute($(baseName)App::CreateInstance, &args);
+ if (IsFailed(r))
+ {
+ AppLogException("Application execution failed-[%s].", GetErrorMessage(r));
+ r &= 0x0000FFFF;
+ }
+
+ args.RemoveAll(true);
+
+ AppLog("Application finished.");
+
+ return static_cast< int >(r);
+}
+#ifdef __cplusplus
+}
+#endif
diff --git a/Template/Tizen Native/Service Application/serviceapp/sample.xml b/Template/Tizen Native/Service Application/serviceapp/sample.xml
new file mode 100644
index 0000000..7b374ab
--- /dev/null
+++ b/Template/Tizen Native/Service Application/serviceapp/sample.xml
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<template>
+
+ <slp-property>
+ <property-group>
+ <sample-name>Service Application</sample-name>
+ <category>Service Application Template</category>
+ <sdk-version>1.00</sdk-version>
+ <project-type>org.tizen.nativecpp.buildArtefactType.app</project-type>
+ <sample-description>description.xml</sample-description>
+ </property-group>
+ </slp-property>
+
+ <process type="org.tizen.nativeappcommon.TizenCopyFolder">
+ <simple name="projectName" value="$(projectName)"/>
+ <simple name="folderPath" value="project"/>
+ <complex-array name="replaceableFiles">
+ <element>
+ <simple name="sourcePath" value="src/App.cpp"/>
+ <simple name="targetPath" value="src/$(baseName)App.cpp"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="src/Entry.cpp"/>
+ <simple name="targetPath" value="src/$(baseName)Entry.cpp"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="inc/App.h"/>
+ <simple name="targetPath" value="inc/$(baseName)App.h"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="manifest.xml"/>
+ <simple name="targetPath" value="manifest.xml"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ </complex-array>
+ </process>
+ <process type="org.tizen.nativecpp.SetDefaultFrameworks">
+ <simple name="projectName" value="$(projectName)"/>
+ <complex-array name="frameworkList">
+ <element>
+ <simple name="framework" value="osp"/>
+ </element>
+ </complex-array>
+ </process>
+</template>
diff --git a/Template/Tizen Native/Service Application/serviceapp/screenshot.png b/Template/Tizen Native/Service Application/serviceapp/screenshot.png
new file mode 100755
index 0000000..a8e5e1a
--- /dev/null
+++ b/Template/Tizen Native/Service Application/serviceapp/screenshot.png
Binary files differ
diff --git a/Template/Tizen Native/Tab-based Application/scenebasedtabapp/description.xml b/Template/Tizen Native/Tab-based Application/scenebasedtabapp/description.xml
new file mode 100644
index 0000000..d81e050
--- /dev/null
+++ b/Template/Tizen Native/Tab-based Application/scenebasedtabapp/description.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8"?>
+<?xml-stylesheet type="text/xsl" href="../../../../description.xsl"?>
+
+<Overview version="0.17.1">
+ <SampleName>Tab-based Application with SceneManager</SampleName>
+ <SampleVersion>1.0</SampleVersion>
+ <Preview>screenshot.png</Preview>
+ <Description>
+ This template is suitable for creating a tab-based application. The template contains the basic tab switching functionality. This template includes generated code that only works with Relative layout. If you want to change the layout, you need to change the template code which handles the layouting of the Panel.
+ </Description>
+</Overview>
diff --git a/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/inc/App.h b/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/inc/App.h
new file mode 100644
index 0000000..3aea21e
--- /dev/null
+++ b/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/inc/App.h
@@ -0,0 +1,52 @@
+#ifndef _$(baseNameUpper)_APP_H_
+#define _$(baseNameUpper)_APP_H_
+
+$(pcheader)
+
+
+// The $(baseName)App class must inherit from the UiApp class,
+// which provides the basic features necessary to define a UI application.
+
+class $(baseName)App
+ : public Tizen::App::UiApp
+ , public Tizen::System::IScreenEventListener
+{
+public:
+ // The platform calls this method to create the application instance.
+ static Tizen::App::UiApp* CreateInstance(void);
+ $(baseName)App(void);
+ virtual ~$(baseName)App(void);
+
+private:
+ // Called when the UI application is initializing.
+ virtual bool OnAppInitializing(Tizen::App::AppRegistry& appRegistry);
+
+ // Called when the UI application initialization is finished.
+ virtual bool OnAppInitialized(void);
+
+ // Called when the END key is pressed to terminate the UI application (if the device has the END key).
+ virtual bool OnAppWillTerminate(void);
+
+ // Called when the UI application is terminating.
+ virtual bool OnAppTerminating(Tizen::App::AppRegistry& appRegistry, bool forcedTermination = false);
+
+ // Called when the UI application's frame moves to the foreground.
+ virtual void OnForeground(void);
+
+ // Called when the UI application's frame is moved from the foreground to the background.
+ virtual void OnBackground(void);
+
+ // Called when system memory is no longer sufficient to run the UI application. Clean up unnecessary resources to release memory, or terminate the application.
+ virtual void OnLowMemory(void);
+
+ // Called when the battery level changes.
+ virtual void OnBatteryLevelChanged(Tizen::System::BatteryLevel batteryLevel);
+
+ // Called when the screen switches on.
+ virtual void OnScreenOn(void);
+
+ // Called when the screen switches off.
+ virtual void OnScreenOff(void);
+};
+
+#endif // _$(baseNameUpper)_APP_H_
diff --git a/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/inc/AppFormFactory.h b/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/inc/AppFormFactory.h
new file mode 100644
index 0000000..fc4f245
--- /dev/null
+++ b/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/inc/AppFormFactory.h
@@ -0,0 +1,16 @@
+#ifndef _$(baseNameUpper)_FORM_FACTORY_H_
+#define _$(baseNameUpper)_FORM_FACTORY_H_
+
+$(pcheader)
+
+class $(baseName)FormFactory
+ : public Tizen::Ui::Scenes::IFormFactory
+{
+public:
+ $(baseName)FormFactory(void);
+ virtual ~$(baseName)FormFactory(void);
+
+ virtual Tizen::Ui::Controls::Form* CreateFormN(const Tizen::Base::String& formId, const Tizen::Ui::Scenes::SceneId& sceneId);
+};
+
+#endif // _$(baseNameUpper)_FORM_FACTORY_H_
diff --git a/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/inc/AppFrame.h b/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/inc/AppFrame.h
new file mode 100644
index 0000000..f51678c
--- /dev/null
+++ b/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/inc/AppFrame.h
@@ -0,0 +1,18 @@
+#ifndef _$(baseNameUpper)_FRAME_H_
+#define _$(baseNameUpper)_FRAME_H_
+
+$(pcheader)
+
+class $(baseName)Frame
+ : public Tizen::Ui::Controls::Frame
+{
+public:
+ $(baseName)Frame(void);
+ virtual ~$(baseName)Frame(void);
+
+private:
+ virtual result OnInitializing(void);
+ virtual result OnTerminating(void);
+};
+
+#endif //_$(baseNameUpper)_FRAME_H_
diff --git a/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/inc/AppMainForm.h b/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/inc/AppMainForm.h
new file mode 100644
index 0000000..65cde49
--- /dev/null
+++ b/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/inc/AppMainForm.h
@@ -0,0 +1,28 @@
+#ifndef _$(baseNameUpper)_MAIN_FORM_H_
+#define _$(baseNameUpper)_MAIN_FORM_H_
+
+$(pcheader)
+
+class $(baseName)MainForm
+ : public Tizen::Ui::Controls::Form
+ , public Tizen::Ui::IActionEventListener
+ , public Tizen::Ui::Controls::IFormBackEventListener
+{
+public:
+ $(baseName)MainForm(void);
+ virtual ~$(baseName)MainForm(void);
+ bool Initialize(void);
+
+private:
+ virtual result OnInitializing(void);
+ virtual result OnTerminating(void);
+ virtual void OnFormBackRequested(Tizen::Ui::Controls::Form& source);
+ virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);
+
+protected:
+ static const int ID_HEADER_ITEM1 = 101;
+ static const int ID_HEADER_ITEM2 = 102;
+ static const int ID_HEADER_ITEM3 = 103;
+};
+
+#endif //_$(baseNameUpper)_MAIN_FORM_H_
diff --git a/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/inc/AppPanelFactory.h b/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/inc/AppPanelFactory.h
new file mode 100644
index 0000000..00d5bab
--- /dev/null
+++ b/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/inc/AppPanelFactory.h
@@ -0,0 +1,17 @@
+#ifndef _$(baseNameUpper)_PANEL_FACTORY_H_
+#define _$(baseNameUpper)_PANEL_FACTORY_H_
+
+$(pcheader)
+
+
+class $(baseName)PanelFactory
+ : public Tizen::Ui::Scenes::IPanelFactory
+{
+public:
+ $(baseName)PanelFactory(void);
+ virtual ~$(baseName)PanelFactory(void);
+
+ virtual Tizen::Ui::Controls::Panel* CreatePanelN(const Tizen::Base::String& panelId, const Tizen::Ui::Scenes::SceneId& sceneId);
+};
+
+#endif // _$(baseNameUpper)_PANEL_FACTORY_H_
diff --git a/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/inc/AppResourceId.h b/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/inc/AppResourceId.h
new file mode 100644
index 0000000..7337d64
--- /dev/null
+++ b/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/inc/AppResourceId.h
@@ -0,0 +1,14 @@
+#ifndef _APP_RESOURCE_ID_H_
+#define _APP_RESOURCE_ID_H_
+
+extern const wchar_t* IDL_FORM;
+extern const wchar_t* IDL_PANEL1;
+extern const wchar_t* IDL_PANEL2;
+extern const wchar_t* IDL_PANEL3;
+extern const wchar_t* IDC_LABEL1;
+extern const wchar_t* IDSCNT_START;
+extern const wchar_t* IDSCNT_1;
+extern const wchar_t* IDSCNT_2;
+extern const wchar_t* IDSCNT_3;
+
+#endif // _APP_RESOURCE_ID_H_
diff --git a/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/inc/AppTab1.h b/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/inc/AppTab1.h
new file mode 100644
index 0000000..064d662
--- /dev/null
+++ b/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/inc/AppTab1.h
@@ -0,0 +1,24 @@
+#ifndef _$(baseNameUpper)_TAB1_H_
+#define _$(baseNameUpper)_TAB1_H_
+
+$(pcheader)
+class $(baseName)Tab1
+ : public Tizen::Ui::Controls::Panel
+ , public Tizen::Ui::Scenes::ISceneEventListener
+{
+public:
+ $(baseName)Tab1(void);
+ virtual ~$(baseName)Tab1(void);
+ bool Initialize(void);
+
+public:
+ virtual result OnInitializing(void);
+ virtual result OnTerminating(void);
+ virtual void OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previousSceneId,
+ const Tizen::Ui::Scenes::SceneId& currentSceneId, Tizen::Base::Collection::IList* pArgs);
+ virtual void OnSceneDeactivated(const Tizen::Ui::Scenes::SceneId& currentSceneId,
+ const Tizen::Ui::Scenes::SceneId& nextSceneId);
+
+};
+
+#endif // _$(baseNameUpper)_TAB1_H_
diff --git a/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/inc/AppTab2.h b/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/inc/AppTab2.h
new file mode 100644
index 0000000..a66ff04
--- /dev/null
+++ b/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/inc/AppTab2.h
@@ -0,0 +1,25 @@
+#ifndef _$(baseNameUpper)_TAB2_H_
+#define _$(baseNameUpper)_TAB2_H_
+
+$(pcheader)
+
+class $(baseName)Tab2
+ : public Tizen::Ui::Controls::Panel
+ , public Tizen::Ui::Scenes::ISceneEventListener
+{
+public:
+ $(baseName)Tab2(void);
+ virtual ~$(baseName)Tab2(void);
+ bool Initialize(void);
+
+public:
+ virtual result OnInitializing(void);
+ virtual result OnTerminating(void);
+ virtual void OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previousSceneId,
+ const Tizen::Ui::Scenes::SceneId& currentSceneId, Tizen::Base::Collection::IList* pArgs);
+ virtual void OnSceneDeactivated(const Tizen::Ui::Scenes::SceneId& currentSceneId,
+ const Tizen::Ui::Scenes::SceneId& nextSceneId);
+
+};
+
+#endif // _$(baseNameUpper)_TAB2_H_
diff --git a/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/inc/AppTab3.h b/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/inc/AppTab3.h
new file mode 100644
index 0000000..782d604
--- /dev/null
+++ b/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/inc/AppTab3.h
@@ -0,0 +1,25 @@
+#ifndef _$(baseNameUpper)_TAB3_H_
+#define _$(baseNameUpper)_TAB3_H_
+
+$(pcheader)
+
+class $(baseName)Tab3
+ : public Tizen::Ui::Controls::Panel
+ , public Tizen::Ui::Scenes::ISceneEventListener
+{
+public:
+ $(baseName)Tab3(void);
+ virtual ~$(baseName)Tab3(void);
+ bool Initialize(void);
+
+public:
+ virtual result OnInitializing(void);
+ virtual result OnTerminating(void);
+ virtual void OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previousSceneId,
+ const Tizen::Ui::Scenes::SceneId& currentSceneId, Tizen::Base::Collection::IList* pArgs);
+ virtual void OnSceneDeactivated(const Tizen::Ui::Scenes::SceneId& currentSceneId,
+ const Tizen::Ui::Scenes::SceneId& nextSceneId);
+
+};
+
+#endif // _$(baseNameUpper)_TAB3_H_
diff --git a/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/inc/tizenx.h b/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/inc/tizenx.h
new file mode 100644
index 0000000..fc7052d
--- /dev/null
+++ b/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/inc/tizenx.h
@@ -0,0 +1,13 @@
+// precompiled header file
+#ifndef TIZENX_H_
+#define TIZENX_H_
+
+#include <FApp.h>
+#include <FBase.h>
+#include <FSystem.h>
+#include <FUi.h>
+#include <FUiIme.h>
+#include <FGraphics.h>
+#include <gl.h>
+
+#endif
diff --git a/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/manifest.xml b/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/manifest.xml
new file mode 100644
index 0000000..f3b0b28
--- /dev/null
+++ b/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/manifest.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Manifest xmlns="http://schemas.tizen.org/2012/12/manifest">
+ <Id>$(manifestAppId)</Id>
+ <Version>1.0.0</Version>
+ <Type>C++App</Type>
+ <Requirements>
+ <Feature Name="http://tizen.org/feature/platform.native.api.version">2.2</Feature>
+ </Requirements>
+ <Apps>
+ <ApiVersion>2.2</ApiVersion>
+ <Privileges></Privileges>
+ <UiApp Name="$(projectName)" Main="True" MenuIconVisible="True">
+ <UiScalability CoordinateSystem="Logical" BaseScreenSize="Normal" LogicalCoordinate="720"></UiScalability>
+ <UiTheme SystemTheme="White"></UiTheme>
+ <DisplayNames>
+ <DisplayName Locale="eng-GB">$(projectName)</DisplayName>
+ </DisplayNames>
+ <Icons>
+ <Icon Section="MainMenu" >mainmenu.png</Icon>
+ </Icons>
+ </UiApp>
+ </Apps>
+</Manifest>
diff --git a/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/res/screen-size-normal/IDL_FORM.xml b/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/res/screen-size-normal/IDL_FORM.xml
new file mode 100644
index 0000000..83e0ced
--- /dev/null
+++ b/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/res/screen-size-normal/IDL_FORM.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+-->
+<!DOCTYPE Scene SYSTEM "UIForm.dtd">
+
+<Scene Bversion="3.0.0.v20120705" Dversion="20120315">
+ <LogicalCoordinate>720</LogicalCoordinate>
+ <Form id="IDL_FORM">
+ <property backgroundColor="" backgroundOpacity="100" orientation="Automatic" softKey0NormalIcon="" softKey0PressedIcon="" softKey0Text="" softKey1NormalIcon="" softKey1PressedIcon="" softKey1Text="" title="" titleAlign="ALIGN_CENTER" titleIcon="" translucentFooter="false" translucentHeader="false" translucentIndicator="false"/>
+ <layout mode="Portrait" style="FORM_STYLE_PORTRAIT_INDICATOR | FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE |FORM_STYLE_HEADER" type="LAYOUT_RELATIVE"/>
+ <layout mode="Landscape" style="FORM_STYLE_PORTRAIT_INDICATOR | FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE |FORM_STYLE_HEADER" type="LAYOUT_RELATIVE"/>
+ </Form>
+ <Header>
+ <property backgroundBitmapPath="" color="" colorOpacity="0" descriptionText="" descriptionTextColor="" disabledButtonColor="" disabledButtonColorOpacity="0" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="0" disabledItemTextColor="" headerStyle="HEADER_STYLE_TAB" highlightedButtonColor="" highlightedButtonColorOpacity="0" highlightedButtonTextColor="" highlightedItemColor="" highlightedItemColorOpacity="100" highlightedItemTextColor="" normalButtonColor="" normalButtonColorOpacity="0" normalButtonTextColor="" normalItemColor="" normalItemColorOpacity="100" normalItemTextColor="" pressedButtonColor="" pressedButtonColorOpacity="0" pressedButtonTextColor="" pressedItemColor="" pressedItemColorOpacity="100" pressedItemTextColor="" selectedItemColor="" selectedItemColorOpacity="100" selectedItemTextColor="" titleIconPath="" titleText="" titleTextColor=""/>
+ <itemSet>
+ <headerItem actionId="101" disabledBGBitmapPath="" disabledIconPath="" highlightedBGBitmapPath="" highlightedIconPath="" normalBGBitmapPath="" normalIconPath="" pressedBGBitmapPath="" pressedIconPath="" selectedBGBitmapPath="" text="Tab1"/>
+ <headerItem actionId="102" disabledBGBitmapPath="" disabledIconPath="" highlightedBGBitmapPath="" highlightedIconPath="" normalBGBitmapPath="" normalIconPath="" pressedBGBitmapPath="" pressedIconPath="" selectedBGBitmapPath="" text="Tab2"/>
+ <headerItem actionId="103" disabledBGBitmapPath="" disabledIconPath="" highlightedBGBitmapPath="" highlightedIconPath="" normalBGBitmapPath="" normalIconPath="" pressedBGBitmapPath="" pressedIconPath="" selectedBGBitmapPath="" text="Tab3"/>
+ </itemSet>
+ </Header>
+</Scene>
diff --git a/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/res/screen-size-normal/IDL_PANEL1.xml b/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/res/screen-size-normal/IDL_PANEL1.xml
new file mode 100644
index 0000000..aaef2f0
--- /dev/null
+++ b/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/res/screen-size-normal/IDL_PANEL1.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+-->
+<!DOCTYPE ScenePanel SYSTEM "UIForm.dtd">
+
+<ScenePanel Bversion="3.0.0.v20120705" Dversion="20120315">
+ <LogicalCoordinate>720</LogicalCoordinate>
+ <Panel id="IDL_PANEL1">
+ <property backgroundColor="" backgroundColorOpacity="0" compositeEnabled="true" groupStyle="GROUP_STYLE_NONE"/>
+ <layout height="1000" mode="Portrait" type="LAYOUT_RELATIVE" width="720" x="0" y="0"/>
+ <layout height="720" mode="Landscape" type="LAYOUT_RELATIVE" width="1280" x="0" y="0"/>
+ </Panel>
+ <Label id="IDC_LABEL1" parent="IDL_PANEL1">
+ <property backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" text="Tab1 is selected" textColor="" textSize="33" textStyle="LABEL_TEXT_STYLE_NORMAL" verticalAlign="ALIGN_MIDDLE"/>
+ <layout bottomRelation="IDL_PANEL1" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="100" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="0" x="0" y="0"/>
+ <layout bottomRelation="IDL_PANEL1" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="100" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="0" x="0" y="0"/>
+ </Label>
+</ScenePanel>
diff --git a/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/res/screen-size-normal/IDL_PANEL2.xml b/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/res/screen-size-normal/IDL_PANEL2.xml
new file mode 100644
index 0000000..59dad9d
--- /dev/null
+++ b/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/res/screen-size-normal/IDL_PANEL2.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+-->
+<!DOCTYPE ScenePanel SYSTEM "UIForm.dtd">
+
+<ScenePanel Bversion="3.0.0.v20120705" Dversion="20120315">
+ <LogicalCoordinate>720</LogicalCoordinate>
+ <Panel id="IDL_PANEL2">
+ <property backgroundColor="" backgroundColorOpacity="0" compositeEnabled="true" groupStyle="GROUP_STYLE_NONE"/>
+ <layout height="1000" mode="Portrait" type="LAYOUT_RELATIVE" width="720" x="0" y="0"/>
+ <layout height="720" mode="Landscape" type="LAYOUT_RELATIVE" width="1280" x="0" y="0"/>
+ </Panel>
+ <Label id="IDC_LABEL1" parent="IDL_PANEL2">
+ <property backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" text="Tab2 is selected" textColor="" textSize="33" textStyle="LABEL_TEXT_STYLE_NORMAL" verticalAlign="ALIGN_MIDDLE"/>
+ <layout bottomRelation="IDL_PANEL2" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="100" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="0" x="0" y="0"/>
+ <layout bottomRelation="IDL_PANEL2" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="100" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="0" x="0" y="0"/>
+ </Label>
+</ScenePanel>
diff --git a/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/res/screen-size-normal/IDL_PANEL3.xml b/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/res/screen-size-normal/IDL_PANEL3.xml
new file mode 100644
index 0000000..d418fea
--- /dev/null
+++ b/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/res/screen-size-normal/IDL_PANEL3.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+-->
+<!DOCTYPE ScenePanel SYSTEM "UIForm.dtd">
+
+<ScenePanel Bversion="3.0.0.v20120705" Dversion="20120315">
+ <LogicalCoordinate>720</LogicalCoordinate>
+ <Panel id="IDL_PANEL3">
+ <property backgroundColor="" backgroundColorOpacity="0" compositeEnabled="true" groupStyle="GROUP_STYLE_NONE"/>
+ <layout height="1000" mode="Portrait" type="LAYOUT_RELATIVE" width="720" x="0" y="0"/>
+ <layout height="720" mode="Landscape" type="LAYOUT_RELATIVE" width="1280" x="0" y="0"/>
+ </Panel>
+ <Label id="IDC_LABEL1" parent="IDL_PANEL3">
+ <property backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" text="Tab3 is selected" textColor="" textSize="33" textStyle="LABEL_TEXT_STYLE_NORMAL" verticalAlign="ALIGN_MIDDLE"/>
+ <layout bottomRelation="IDL_PANEL3" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="100" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="0" x="0" y="0"/>
+ <layout bottomRelation="IDL_PANEL3" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="100" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="" leftRelationType="RECT_EDGE_RELATION_LEFT_TO_LEFT" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="0" x="0" y="0"/>
+ </Label>
+</ScenePanel>
diff --git a/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/res/screen-size-normal/workflow.xml b/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/res/screen-size-normal/workflow.xml
new file mode 100644
index 0000000..810ee1d
--- /dev/null
+++ b/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/res/screen-size-normal/workflow.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<Workflow>
+ <Scene Form="IDL_FORM" Id="TabScene1" Panel="IDL_PANEL1"/>
+ <Scene Form="IDL_FORM" Id="TabScene2" Panel="IDL_PANEL2"/>
+ <Scene Form="IDL_FORM" Id="TabScene3" Panel="IDL_PANEL3"/>
+ <SceneTransition AnimationType="none" DestroyOption="keep" DirectionType="forward" HistoryOption="no" Id="IDSCNT_START" Method="" SourceId="" SourceResourceType="" TargetId="TabScene1"/>
+ <SceneTransition AnimationType="none" DestroyOption="keep" DirectionType="forward" HistoryOption="no" Id="IDSCNT_3" Method="OnActionPerformed" SourceId="TabScene1" SourceResourceType="IDL_FORM" TargetId="TabScene3"/>
+ <SceneTransition AnimationType="none" DestroyOption="keep" DirectionType="forward" HistoryOption="no" Id="IDSCNT_1" Method="OnActionPerformed" SourceId="TabScene2" SourceResourceType="IDL_FORM" TargetId="TabScene1"/>
+ <SceneTransition AnimationType="none" DestroyOption="keep" DirectionType="forward" HistoryOption="no" Id="IDSCNT_2" Method="OnActionPerformed" SourceId="TabScene3" SourceResourceType="IDL_FORM" TargetId="TabScene2"/>
+ <!--UI Builder(Workflow Designer) only-->
+ <WorkflowDesigner>
+ <Position Name="TabScene1" X="209" Y="98"/>
+ <Position Name="TabScene2" X="408" Y="378"/>
+ <Position Name="TabScene3" X="10" Y="380"/>
+ </WorkflowDesigner>
+</Workflow>
+
diff --git a/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/shared/res/screen-density-xhigh/mainmenu.png b/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/shared/res/screen-density-xhigh/mainmenu.png
new file mode 100755
index 0000000..9765b1b
--- /dev/null
+++ b/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/shared/res/screen-density-xhigh/mainmenu.png
Binary files differ
diff --git a/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/src/App.cpp b/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/src/App.cpp
new file mode 100644
index 0000000..3493170
--- /dev/null
+++ b/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/src/App.cpp
@@ -0,0 +1,106 @@
+#include <new>
+#include "$(baseName)App.h"
+#include "$(baseName)Frame.h"
+
+using namespace Tizen::App;
+using namespace Tizen::System;
+
+$(baseName)App::$(baseName)App(void)
+{
+}
+
+$(baseName)App::~$(baseName)App(void)
+{
+}
+
+UiApp*
+$(baseName)App::CreateInstance(void)
+{
+ // Create the application instance through the constructor.
+ return new (std::nothrow) $(baseName)App();
+}
+
+bool
+$(baseName)App::OnAppInitializing(AppRegistry& appRegistry)
+{
+ // TODO: Initialize application-specific data.
+ // The permanent data and context of the application can be obtained from the application registry (appRegistry).
+ //
+ // If this method is successful, return true; otherwise, return false and the application is terminated.
+
+ // Uncomment the following statement to listen to the screen on and off events:
+ // PowerManager::SetScreenEventListener(*this);
+
+ // TODO: Add your application initialization code here.
+ return true;
+}
+
+bool
+$(baseName)App::OnAppInitialized(void)
+{
+ // Create the application frame.
+ $(baseName)Frame* p$(baseName)Frame = new (std::nothrow) $(baseName)Frame;
+ TryReturn(p$(baseName)Frame != null, false, "The memory is insufficient.");
+ p$(baseName)Frame->Construct();
+ p$(baseName)Frame->SetName(L"$(baseName)");
+ AddFrame(*p$(baseName)Frame);
+
+ return true;
+}
+
+bool
+$(baseName)App::OnAppWillTerminate(void)
+{
+ // TODO: Deallocate or release resources in devices that have the END key.
+ return true;
+}
+
+bool
+$(baseName)App::OnAppTerminating(AppRegistry& appRegistry, bool forcedTermination)
+{
+ // TODO: Deallocate all resources allocated by the application.
+ // The permanent data and context of the application can be saved through the application registry (appRegistry).
+ return true;
+}
+
+void
+$(baseName)App::OnForeground(void)
+{
+ // TODO: Start or resume drawing when the application is moved to the foreground.
+}
+
+void
+$(baseName)App::OnBackground(void)
+{
+ // TODO: Stop drawing when the application is moved to the background to save the CPU and battery consumption.
+}
+
+void
+$(baseName)App::OnLowMemory(void)
+{
+ // TODO: Free unnecessary resources or close the application.
+}
+
+void
+$(baseName)App::OnBatteryLevelChanged(BatteryLevel batteryLevel)
+{
+ // TODO: Handle all battery level changes here.
+ // Stop using multimedia features (such as camera and mp3 playback) if the battery level is CRITICAL.
+}
+
+void
+$(baseName)App::OnScreenOn(void)
+{
+ // TODO: Retrieve the released resources or resume the operations that were paused or stopped in the OnScreenOff() event handler.
+}
+
+void
+$(baseName)App::OnScreenOff(void)
+{
+ // TODO: Release resources (such as 3D, media, and sensors) to allow the device to enter the sleep mode
+ // to save the battery (unless you have a good reason to do otherwise).
+ // Only perform quick operations in this event handler. Any lengthy operations can be risky;
+ // for example, invoking a long asynchronous method within this event handler can cause problems
+ // because the device can enter the sleep mode before the callback is invoked.
+
+}
diff --git a/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/src/AppEntry.cpp b/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/src/AppEntry.cpp
new file mode 100644
index 0000000..33a3c6f
--- /dev/null
+++ b/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/src/AppEntry.cpp
@@ -0,0 +1,37 @@
+//
+//This file contains the Tizen application entry point by default. You do not need to modify this file.
+//
+#include <new>
+#include "$(baseName)App.h"
+
+using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif // __cplusplus
+
+//
+// The framework calls this method as the entry method of the Tizen application.
+//
+_EXPORT_ int
+OspMain(int argc, char* pArgv[])
+{
+ AppLog("Application started.");
+ ArrayList args(SingleObjectDeleter);
+ args.Construct();
+ for (int i = 0; i < argc; i++)
+ {
+ args.Add(new (std::nothrow) String(pArgv[i]));
+ }
+
+ result r = Tizen::App::UiApp::Execute($(baseName)App::CreateInstance, &args);
+ TryLog(r == E_SUCCESS, "[%s] Application execution failed.", GetErrorMessage(r));
+ AppLog("Application finished.");
+
+ return static_cast< int >(r);
+}
+#ifdef __cplusplus
+}
+#endif // __cplusplus
diff --git a/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/src/AppFormFactory.cpp b/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/src/AppFormFactory.cpp
new file mode 100644
index 0000000..cb39395
--- /dev/null
+++ b/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/src/AppFormFactory.cpp
@@ -0,0 +1,34 @@
+#include <new>
+#include "$(baseName)FormFactory.h"
+#include "$(baseName)MainForm.h"
+#include "AppResourceId.h"
+
+using namespace Tizen::Ui::Scenes;
+
+
+$(baseName)FormFactory::$(baseName)FormFactory(void)
+{
+}
+
+$(baseName)FormFactory::~$(baseName)FormFactory(void)
+{
+}
+
+Tizen::Ui::Controls::Form*
+$(baseName)FormFactory::CreateFormN(const Tizen::Base::String& formId, const Tizen::Ui::Scenes::SceneId& sceneId)
+{
+ SceneManager* pSceneManager = SceneManager::GetInstance();
+ AppAssert(pSceneManager);
+ Tizen::Ui::Controls::Form* pNewForm = null;
+
+ if (formId == IDL_FORM)
+ {
+ $(baseName)MainForm* pForm = new (std::nothrow) $(baseName)MainForm();
+ TryReturn(pForm != null, null, "The memory is insufficient.");
+ pForm->Initialize();
+ pNewForm = pForm;
+ }
+ // TODO: Add your form creation code here
+
+ return pNewForm;
+}
diff --git a/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/src/AppFrame.cpp b/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/src/AppFrame.cpp
new file mode 100644
index 0000000..4b7927a
--- /dev/null
+++ b/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/src/AppFrame.cpp
@@ -0,0 +1,44 @@
+#include "$(baseName)Frame.h"
+#include "$(baseName)FormFactory.h"
+#include "$(baseName)PanelFactory.h"
+#include "AppResourceId.h"
+
+using namespace Tizen::Base;
+using namespace Tizen::Ui;
+using namespace Tizen::Ui::Controls;
+using namespace Tizen::Ui::Scenes;
+
+$(baseName)Frame::$(baseName)Frame(void)
+{
+}
+
+$(baseName)Frame::~$(baseName)Frame(void)
+{
+}
+
+result
+$(baseName)Frame::OnInitializing(void)
+{
+ // Prepare Scene management.
+ SceneManager* pSceneManager = SceneManager::GetInstance();
+ static $(baseName)FormFactory formFactory;
+ static $(baseName)PanelFactory panelFactory;
+ pSceneManager->RegisterFormFactory(formFactory);
+ pSceneManager->RegisterPanelFactory(panelFactory);
+ pSceneManager->RegisterScene(L"workflow");
+
+ // Go to the scene.
+ result r = pSceneManager->GoForward(SceneTransitionId(IDSCNT_START));
+
+ // TODO: Add your frame initialization code here.
+ return r;
+}
+
+result
+$(baseName)Frame::OnTerminating(void)
+{
+ result r = E_SUCCESS;
+
+ // TODO: Add your frame termination code here.
+ return r;
+}
diff --git a/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/src/AppMainForm.cpp b/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/src/AppMainForm.cpp
new file mode 100644
index 0000000..b5250e0
--- /dev/null
+++ b/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/src/AppMainForm.cpp
@@ -0,0 +1,83 @@
+#include "$(baseName)MainForm.h"
+#include "AppResourceId.h"
+
+using namespace Tizen::Base;
+using namespace Tizen::App;
+using namespace Tizen::Ui;
+using namespace Tizen::Ui::Controls;
+using namespace Tizen::Ui::Scenes;
+
+
+$(baseName)MainForm::$(baseName)MainForm(void)
+{
+}
+
+$(baseName)MainForm::~$(baseName)MainForm(void)
+{
+}
+
+bool
+$(baseName)MainForm::Initialize(void)
+{
+ result r = Construct(IDL_FORM);
+ TryReturn(r == E_SUCCESS, false, "Failed to construct form");
+
+ return true;
+}
+
+result
+$(baseName)MainForm::OnInitializing(void)
+{
+ result r = E_SUCCESS;
+
+ // TODO: Add your initialization code here
+ Header* pHeader = GetHeader();
+ if (pHeader)
+ {
+ pHeader->AddActionEventListener(*this);
+ }
+
+ // Setup back event listener
+ SetFormBackEventListener(this);
+
+ return r;
+}
+
+result
+$(baseName)MainForm::OnTerminating(void)
+{
+ result r = E_SUCCESS;
+
+ // TODO: Add your termination code here
+ return r;
+}
+
+void
+$(baseName)MainForm::OnActionPerformed(const Tizen::Ui::Control& source, int actionId)
+{
+ SceneManager* pSceneManager = SceneManager::GetInstance();
+ AppAssert(pSceneManager);
+
+ switch(actionId)
+ {
+ case ID_HEADER_ITEM1:
+ pSceneManager->GoForward(SceneTransitionId(IDSCNT_1));
+ break;
+ case ID_HEADER_ITEM2:
+ pSceneManager->GoForward(SceneTransitionId(IDSCNT_2));
+ break;
+ case ID_HEADER_ITEM3:
+ pSceneManager->GoForward(SceneTransitionId(IDSCNT_3));
+ break;
+ default:
+ break;
+ }
+}
+
+void
+$(baseName)MainForm::OnFormBackRequested(Tizen::Ui::Controls::Form& source)
+{
+ UiApp* pApp = UiApp::GetInstance();
+ AppAssert(pApp);
+ pApp->Terminate();
+}
diff --git a/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/src/AppPanelFactory.cpp b/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/src/AppPanelFactory.cpp
new file mode 100644
index 0000000..aa3deaf
--- /dev/null
+++ b/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/src/AppPanelFactory.cpp
@@ -0,0 +1,51 @@
+#include <new>
+#include "$(baseName)PanelFactory.h"
+#include "$(baseName)Tab1.h"
+#include "$(baseName)Tab2.h"
+#include "$(baseName)Tab3.h"
+#include "AppResourceId.h"
+
+using namespace Tizen::Ui::Scenes;
+
+
+$(baseName)PanelFactory::$(baseName)PanelFactory(void)
+{
+}
+
+$(baseName)PanelFactory::~$(baseName)PanelFactory(void)
+{
+}
+
+Tizen::Ui::Controls::Panel*
+$(baseName)PanelFactory::CreatePanelN(const Tizen::Base::String& panelId, const Tizen::Ui::Scenes::SceneId& sceneId)
+{
+ SceneManager* pSceneManager = SceneManager::GetInstance();
+ AppAssert(pSceneManager);
+ Tizen::Ui::Controls::Panel* pNewPanel = null;
+
+ if (panelId == IDL_PANEL1)
+ {
+ $(baseName)Tab1* pPanel = new (std::nothrow) $(baseName)Tab1();
+ pPanel->Initialize();
+ pSceneManager->AddSceneEventListener(sceneId, *pPanel);
+ pNewPanel = pPanel;
+ }
+ else
+ if (panelId == IDL_PANEL2)
+ {
+ $(baseName)Tab2* pPanel = new (std::nothrow) $(baseName)Tab2();
+ pPanel->Initialize();
+ pSceneManager->AddSceneEventListener(sceneId, *pPanel);
+ pNewPanel = pPanel;
+ }
+ else
+ if (panelId == IDL_PANEL3)
+ {
+ $(baseName)Tab3* pPanel = new (std::nothrow) $(baseName)Tab3();
+ pPanel->Initialize();
+ pSceneManager->AddSceneEventListener(sceneId, *pPanel);
+ pNewPanel = pPanel;
+ }
+ // TODO: Add your panel creation code here
+ return pNewPanel;
+}
diff --git a/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/src/AppResourceId.cpp b/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/src/AppResourceId.cpp
new file mode 100644
index 0000000..ca914ac
--- /dev/null
+++ b/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/src/AppResourceId.cpp
@@ -0,0 +1,11 @@
+#include "AppResourceId.h"
+
+const wchar_t* IDL_FORM = L"IDL_FORM";
+const wchar_t* IDC_LABEL1 = L"IDC_LABEL1";
+const wchar_t* IDL_PANEL1 = L"IDL_PANEL1";
+const wchar_t* IDL_PANEL2 = L"IDL_PANEL2";
+const wchar_t* IDL_PANEL3 = L"IDL_PANEL3";
+const wchar_t* IDSCNT_START = L"IDSCNT_START";
+const wchar_t* IDSCNT_1 = L"IDSCNT_1";
+const wchar_t* IDSCNT_2 = L"IDSCNT_2";
+const wchar_t* IDSCNT_3 = L"IDSCNT_3";
diff --git a/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/src/AppTab1.cpp b/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/src/AppTab1.cpp
new file mode 100644
index 0000000..333487a
--- /dev/null
+++ b/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/src/AppTab1.cpp
@@ -0,0 +1,83 @@
+#include "$(baseName)Tab1.h"
+#include "AppResourceId.h"
+
+using namespace Tizen::Graphics;
+using namespace Tizen::Ui;
+using namespace Tizen::Ui::Controls;
+using namespace Tizen::Ui::Scenes;
+
+$(baseName)Tab1::$(baseName)Tab1(void)
+{
+
+}
+
+$(baseName)Tab1::~$(baseName)Tab1(void)
+{
+
+}
+
+bool
+$(baseName)Tab1::Initialize(void)
+{
+ result r = Construct(IDL_PANEL1);
+ if (IsFailed(r))
+ {
+ return false;
+ }
+
+ return true;
+}
+
+result
+$(baseName)Tab1::OnInitializing(void)
+{
+ result r = E_SUCCESS;
+
+ // Layout setting
+ const Form* pForm = dynamic_cast< Form* >(GetParent());
+ if (pForm)
+ {
+ RelativeLayout* pRelativeLayout = dynamic_cast< RelativeLayout* >(pForm->GetLandscapeLayoutN());
+ if (pRelativeLayout)
+ {
+ pRelativeLayout->SetHorizontalFitPolicy(*this, FIT_POLICY_PARENT);
+ pRelativeLayout->SetVerticalFitPolicy(*this, FIT_POLICY_PARENT);
+ delete pRelativeLayout;
+ }
+ pRelativeLayout = dynamic_cast< RelativeLayout* >(pForm->GetPortraitLayoutN());
+ if (pRelativeLayout)
+ {
+ pRelativeLayout->SetHorizontalFitPolicy(*this, FIT_POLICY_PARENT);
+ pRelativeLayout->SetVerticalFitPolicy(*this, FIT_POLICY_PARENT);
+ delete pRelativeLayout;
+ }
+ }
+
+ return r;
+}
+
+result
+$(baseName)Tab1::OnTerminating(void)
+{
+ result r = E_SUCCESS;
+
+ // TODO: Add your termination code here
+
+ return r;
+}
+
+void
+$(baseName)Tab1::OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previousSceneId,
+ const Tizen::Ui::Scenes::SceneId& currentSceneId, Tizen::Base::Collection::IList* pArgs)
+{
+ // TODO: Activate your scene here.
+
+}
+
+void
+$(baseName)Tab1::OnSceneDeactivated(const Tizen::Ui::Scenes::SceneId& currentSceneId,
+ const Tizen::Ui::Scenes::SceneId& nextSceneId)
+{
+ // TODO: Deactivate your scene here.
+
+}
diff --git a/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/src/AppTab2.cpp b/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/src/AppTab2.cpp
new file mode 100644
index 0000000..6627514
--- /dev/null
+++ b/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/src/AppTab2.cpp
@@ -0,0 +1,83 @@
+#include "$(baseName)Tab2.h"
+#include "AppResourceId.h"
+
+using namespace Tizen::Graphics;
+using namespace Tizen::Ui;
+using namespace Tizen::Ui::Controls;
+using namespace Tizen::Ui::Scenes;
+
+$(baseName)Tab2::$(baseName)Tab2(void)
+{
+
+}
+
+$(baseName)Tab2::~$(baseName)Tab2(void)
+{
+
+}
+
+bool
+$(baseName)Tab2::Initialize(void)
+{
+ result r = Construct(IDL_PANEL2);
+ if (IsFailed(r))
+ {
+ return false;
+ }
+
+ return true;
+}
+
+result
+$(baseName)Tab2::OnInitializing(void)
+{
+ result r = E_SUCCESS;
+
+ // Layout setting
+ const Form* pForm = dynamic_cast< Form* >(GetParent());
+ if (pForm)
+ {
+ RelativeLayout* pRelativeLayout = dynamic_cast< RelativeLayout* >(pForm->GetLandscapeLayoutN());
+ if (pRelativeLayout)
+ {
+ pRelativeLayout->SetHorizontalFitPolicy(*this, FIT_POLICY_PARENT);
+ pRelativeLayout->SetVerticalFitPolicy(*this, FIT_POLICY_PARENT);
+ delete pRelativeLayout;
+ }
+ pRelativeLayout = dynamic_cast< RelativeLayout* >(pForm->GetPortraitLayoutN());
+ if (pRelativeLayout)
+ {
+ pRelativeLayout->SetHorizontalFitPolicy(*this, FIT_POLICY_PARENT);
+ pRelativeLayout->SetVerticalFitPolicy(*this, FIT_POLICY_PARENT);
+ delete pRelativeLayout;
+ }
+ }
+
+ return r;
+}
+
+result
+$(baseName)Tab2::OnTerminating(void)
+{
+ result r = E_SUCCESS;
+
+ // TODO: Add your termination code here
+
+ return r;
+}
+
+void
+$(baseName)Tab2::OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previousSceneId,
+ const Tizen::Ui::Scenes::SceneId& currentSceneId, Tizen::Base::Collection::IList* pArgs)
+{
+ // TODO: Activate your scene here.
+
+}
+
+void
+$(baseName)Tab2::OnSceneDeactivated(const Tizen::Ui::Scenes::SceneId& currentSceneId,
+ const Tizen::Ui::Scenes::SceneId& nextSceneId)
+{
+ // TODO: Deactivate your scene here.
+
+}
diff --git a/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/src/AppTab3.cpp b/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/src/AppTab3.cpp
new file mode 100644
index 0000000..b5e8ab5
--- /dev/null
+++ b/Template/Tizen Native/Tab-based Application/scenebasedtabapp/project/src/AppTab3.cpp
@@ -0,0 +1,83 @@
+#include "$(baseName)Tab3.h"
+#include "AppResourceId.h"
+
+using namespace Tizen::Graphics;
+using namespace Tizen::Ui;
+using namespace Tizen::Ui::Controls;
+using namespace Tizen::Ui::Scenes;
+
+$(baseName)Tab3::$(baseName)Tab3(void)
+{
+
+}
+
+$(baseName)Tab3::~$(baseName)Tab3(void)
+{
+
+}
+
+bool
+$(baseName)Tab3::Initialize(void)
+{
+ result r = Construct(IDL_PANEL3);
+ if (IsFailed(r))
+ {
+ return false;
+ }
+
+ return true;
+}
+
+result
+$(baseName)Tab3::OnInitializing(void)
+{
+ result r = E_SUCCESS;
+
+ // Layout setting
+ const Form* pForm = dynamic_cast< Form* >(GetParent());
+ if (pForm)
+ {
+ RelativeLayout* pRelativeLayout = dynamic_cast< RelativeLayout* >(pForm->GetLandscapeLayoutN());
+ if (pRelativeLayout)
+ {
+ pRelativeLayout->SetHorizontalFitPolicy(*this, FIT_POLICY_PARENT);
+ pRelativeLayout->SetVerticalFitPolicy(*this, FIT_POLICY_PARENT);
+ delete pRelativeLayout;
+ }
+ pRelativeLayout = dynamic_cast< RelativeLayout* >(pForm->GetPortraitLayoutN());
+ if (pRelativeLayout)
+ {
+ pRelativeLayout->SetHorizontalFitPolicy(*this, FIT_POLICY_PARENT);
+ pRelativeLayout->SetVerticalFitPolicy(*this, FIT_POLICY_PARENT);
+ delete pRelativeLayout;
+ }
+ }
+
+ return r;
+}
+
+result
+$(baseName)Tab3::OnTerminating(void)
+{
+ result r = E_SUCCESS;
+
+ // TODO: Add your termination code here
+
+ return r;
+}
+
+void
+$(baseName)Tab3::OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previousSceneId,
+ const Tizen::Ui::Scenes::SceneId& currentSceneId, Tizen::Base::Collection::IList* pArgs)
+{
+ // TODO: Activate your scene here.
+
+}
+
+void
+$(baseName)Tab3::OnSceneDeactivated(const Tizen::Ui::Scenes::SceneId& currentSceneId,
+ const Tizen::Ui::Scenes::SceneId& nextSceneId)
+{
+ // TODO: Deactivate your scene here.
+
+}
diff --git a/Template/Tizen Native/Tab-based Application/scenebasedtabapp/sample.xml b/Template/Tizen Native/Tab-based Application/scenebasedtabapp/sample.xml
new file mode 100644
index 0000000..0d64a31
--- /dev/null
+++ b/Template/Tizen Native/Tab-based Application/scenebasedtabapp/sample.xml
@@ -0,0 +1,128 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<template>
+
+ <slp-property>
+ <property-group>
+ <sample-name>With SceneManager</sample-name>
+ <category>Application Template</category>
+ <sdk-version>1.00</sdk-version>
+ <project-type>org.tizen.nativecpp.buildArtefactType.app</project-type>
+ <sample-description>description.xml</sample-description>
+ </property-group>
+ </slp-property>
+
+ <process type="org.tizen.nativeappcommon.TizenCopyFolder">
+ <simple name="projectName" value="$(projectName)"/>
+ <simple name="folderPath" value="project"/>
+ <complex-array name="replaceableFiles">
+ <element>
+ <simple name="sourcePath" value="src/App.cpp"/>
+ <simple name="targetPath" value="src/$(baseName)App.cpp"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="src/AppEntry.cpp"/>
+ <simple name="targetPath" value="src/$(baseName)Entry.cpp"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="src/AppFormFactory.cpp"/>
+ <simple name="targetPath" value="src/$(baseName)FormFactory.cpp"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="src/AppFrame.cpp"/>
+ <simple name="targetPath" value="src/$(baseName)Frame.cpp"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="src/AppMainForm.cpp"/>
+ <simple name="targetPath" value="src/$(baseName)MainForm.cpp"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="src/AppPanelFactory.cpp"/>
+ <simple name="targetPath" value="src/$(baseName)PanelFactory.cpp"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="src/AppTab1.cpp"/>
+ <simple name="targetPath" value="src/$(baseName)Tab1.cpp"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="src/AppTab2.cpp"/>
+ <simple name="targetPath" value="src/$(baseName)Tab2.cpp"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="src/AppTab3.cpp"/>
+ <simple name="targetPath" value="src/$(baseName)Tab3.cpp"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="src/AppResourceId.cpp"/>
+ <simple name="targetPath" value="src/AppResourceId.cpp"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="inc/App.h"/>
+ <simple name="targetPath" value="inc/$(baseName)App.h"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="inc/AppMainForm.h"/>
+ <simple name="targetPath" value="inc/$(baseName)MainForm.h"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="inc/AppFormFactory.h"/>
+ <simple name="targetPath" value="inc/$(baseName)FormFactory.h"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="inc/AppFrame.h"/>
+ <simple name="targetPath" value="inc/$(baseName)Frame.h"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="inc/AppPanelFactory.h"/>
+ <simple name="targetPath" value="inc/$(baseName)PanelFactory.h"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="inc/AppTab1.h"/>
+ <simple name="targetPath" value="inc/$(baseName)Tab1.h"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="inc/AppTab2.h"/>
+ <simple name="targetPath" value="inc/$(baseName)Tab2.h"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="inc/AppTab3.h"/>
+ <simple name="targetPath" value="inc/$(baseName)Tab3.h"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="inc/AppResourceId.h"/>
+ <simple name="targetPath" value="inc/AppResourceId.h"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="manifest.xml"/>
+ <simple name="targetPath" value="manifest.xml"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ </complex-array>
+ </process>
+ <process type="org.tizen.nativecpp.SetDefaultFrameworks">
+ <simple name="projectName" value="$(projectName)"/>
+ <complex-array name="frameworkList">
+ <element>
+ <simple name="framework" value="osp"/>
+ </element>
+ </complex-array>
+ </process>
+</template>
diff --git a/Template/Tizen Native/Tab-based Application/scenebasedtabapp/screenshot.png b/Template/Tizen Native/Tab-based Application/scenebasedtabapp/screenshot.png
new file mode 100644
index 0000000..ff2c8f2
--- /dev/null
+++ b/Template/Tizen Native/Tab-based Application/scenebasedtabapp/screenshot.png
Binary files differ
diff --git a/Template/Tizen Native/Tab-based Application/tabapp/description.xml b/Template/Tizen Native/Tab-based Application/tabapp/description.xml
new file mode 100644
index 0000000..f7a4841
--- /dev/null
+++ b/Template/Tizen Native/Tab-based Application/tabapp/description.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8"?>
+<?xml-stylesheet type="text/xsl" href="../../../../description.xsl"?>
+
+<Overview version="0.17.1">
+ <SampleName>Tab-based Application</SampleName>
+ <SampleVersion>1.0</SampleVersion>
+ <Preview>screenshot.png</Preview>
+ <Description>
+ This template is suitable for creating a tab-based application. The template contains the basic tab switching functionality. This template includes generated code that only works with Relative layout. If you want to change the layout, you need to change the template code which handles the layouting of the Panel.
+ </Description>
+</Overview>
diff --git a/Template/Tizen Native/Tab-based Application/tabapp/project/inc/App.h b/Template/Tizen Native/Tab-based Application/tabapp/project/inc/App.h
new file mode 100644
index 0000000..3aea21e
--- /dev/null
+++ b/Template/Tizen Native/Tab-based Application/tabapp/project/inc/App.h
@@ -0,0 +1,52 @@
+#ifndef _$(baseNameUpper)_APP_H_
+#define _$(baseNameUpper)_APP_H_
+
+$(pcheader)
+
+
+// The $(baseName)App class must inherit from the UiApp class,
+// which provides the basic features necessary to define a UI application.
+
+class $(baseName)App
+ : public Tizen::App::UiApp
+ , public Tizen::System::IScreenEventListener
+{
+public:
+ // The platform calls this method to create the application instance.
+ static Tizen::App::UiApp* CreateInstance(void);
+ $(baseName)App(void);
+ virtual ~$(baseName)App(void);
+
+private:
+ // Called when the UI application is initializing.
+ virtual bool OnAppInitializing(Tizen::App::AppRegistry& appRegistry);
+
+ // Called when the UI application initialization is finished.
+ virtual bool OnAppInitialized(void);
+
+ // Called when the END key is pressed to terminate the UI application (if the device has the END key).
+ virtual bool OnAppWillTerminate(void);
+
+ // Called when the UI application is terminating.
+ virtual bool OnAppTerminating(Tizen::App::AppRegistry& appRegistry, bool forcedTermination = false);
+
+ // Called when the UI application's frame moves to the foreground.
+ virtual void OnForeground(void);
+
+ // Called when the UI application's frame is moved from the foreground to the background.
+ virtual void OnBackground(void);
+
+ // Called when system memory is no longer sufficient to run the UI application. Clean up unnecessary resources to release memory, or terminate the application.
+ virtual void OnLowMemory(void);
+
+ // Called when the battery level changes.
+ virtual void OnBatteryLevelChanged(Tizen::System::BatteryLevel batteryLevel);
+
+ // Called when the screen switches on.
+ virtual void OnScreenOn(void);
+
+ // Called when the screen switches off.
+ virtual void OnScreenOff(void);
+};
+
+#endif // _$(baseNameUpper)_APP_H_
diff --git a/Template/Tizen Native/Tab-based Application/tabapp/project/inc/AppForm.h b/Template/Tizen Native/Tab-based Application/tabapp/project/inc/AppForm.h
new file mode 100644
index 0000000..fef4559
--- /dev/null
+++ b/Template/Tizen Native/Tab-based Application/tabapp/project/inc/AppForm.h
@@ -0,0 +1,29 @@
+#ifndef _$(baseNameUpper)_FORM_H_
+#define _$(baseNameUpper)_FORM_H_
+
+$(pcheader)
+
+class $(baseName)Form
+ : public Tizen::Ui::Controls::Form
+ , public Tizen::Ui::IActionEventListener
+ , public Tizen::Ui::Controls::IFormBackEventListener
+{
+public:
+ $(baseName)Form(void);
+ virtual ~$(baseName)Form(void);
+ bool Initialize(void);
+
+private:
+ virtual result OnInitializing(void);
+ virtual result OnTerminating(void);
+ virtual void OnFormBackRequested(Tizen::Ui::Controls::Form& source);
+ virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);
+
+protected:
+ static const int IDA_HEADER_ITEM1 = 101;
+ static const int IDA_HEADER_ITEM2 = 102;
+ static const int IDA_HEADER_ITEM3 = 103;
+ Tizen::Ui::Controls::Panel* __pPanel[3];
+};
+
+#endif //_$(baseNameUpper)_FORM_H_
diff --git a/Template/Tizen Native/Tab-based Application/tabapp/project/inc/AppFrame.h b/Template/Tizen Native/Tab-based Application/tabapp/project/inc/AppFrame.h
new file mode 100644
index 0000000..1546774
--- /dev/null
+++ b/Template/Tizen Native/Tab-based Application/tabapp/project/inc/AppFrame.h
@@ -0,0 +1,18 @@
+#ifndef _$(baseNameUpper)_FRAME_H_
+#define _$(baseNameUpper)_FRAME_H_
+
+$(pcheader)
+
+class $(baseName)Frame
+ : public Tizen::Ui::Controls::Frame
+{
+public:
+ $(baseName)Frame(void);
+ virtual ~$(baseName)Frame(void);
+
+private:
+ virtual result OnInitializing(void);
+ virtual result OnTerminating(void);
+};
+
+#endif //_$(baseNameUpper)FRAME_H_
diff --git a/Template/Tizen Native/Tab-based Application/tabapp/project/inc/AppResourceId.h b/Template/Tizen Native/Tab-based Application/tabapp/project/inc/AppResourceId.h
new file mode 100644
index 0000000..58c5cf2
--- /dev/null
+++ b/Template/Tizen Native/Tab-based Application/tabapp/project/inc/AppResourceId.h
@@ -0,0 +1,8 @@
+#ifndef _APP_RESOURCE_ID_H_
+#define _APP_RESOURCE_ID_H__
+
+extern const wchar_t* IDL_FORM;
+extern const wchar_t* IDC_PANEL1;
+extern const wchar_t* IDC_PANEL2;
+extern const wchar_t* IDC_PANEL3;
+#endif // _APP_RESOURCE_ID_H_
diff --git a/Template/Tizen Native/Tab-based Application/tabapp/project/inc/tizenx.h b/Template/Tizen Native/Tab-based Application/tabapp/project/inc/tizenx.h
new file mode 100644
index 0000000..fc7052d
--- /dev/null
+++ b/Template/Tizen Native/Tab-based Application/tabapp/project/inc/tizenx.h
@@ -0,0 +1,13 @@
+// precompiled header file
+#ifndef TIZENX_H_
+#define TIZENX_H_
+
+#include <FApp.h>
+#include <FBase.h>
+#include <FSystem.h>
+#include <FUi.h>
+#include <FUiIme.h>
+#include <FGraphics.h>
+#include <gl.h>
+
+#endif
diff --git a/Template/Tizen Native/Tab-based Application/tabapp/project/manifest.xml b/Template/Tizen Native/Tab-based Application/tabapp/project/manifest.xml
new file mode 100755
index 0000000..7ab6757
--- /dev/null
+++ b/Template/Tizen Native/Tab-based Application/tabapp/project/manifest.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Manifest xmlns="http://schemas.tizen.org/2012/12/manifest">
+ <Id>$(manifestAppId)</Id>
+ <Version>1.0.0</Version>
+ <Type>C++App</Type>
+ <Requirements>
+ <Feature Name="http://tizen.org/feature/platform.native.api.version">2.2</Feature>
+ </Requirements>
+ <Apps>
+ <ApiVersion>2.2</ApiVersion>
+ <UiApp Name="$(projectName)" Main="True" MenuIconVisible="True">
+ <UiScalability CoordinateSystem="Logical" BaseScreenSize="Normal" LogicalCoordinate="720"></UiScalability>
+ <UiTheme SystemTheme="White"></UiTheme>
+ <DisplayNames>
+ <DisplayName Locale="eng-GB">$(projectName)</DisplayName>
+ </DisplayNames>
+ <Icons>
+ <Icon Section="MainMenu" >mainmenu.png</Icon>
+ </Icons>
+ </UiApp>
+ </Apps>
+</Manifest>
diff --git a/Template/Tizen Native/Tab-based Application/tabapp/project/res/screen-size-normal/IDL_FORM.xml b/Template/Tizen Native/Tab-based Application/tabapp/project/res/screen-size-normal/IDL_FORM.xml
new file mode 100644
index 0000000..1d2cff4
--- /dev/null
+++ b/Template/Tizen Native/Tab-based Application/tabapp/project/res/screen-size-normal/IDL_FORM.xml
@@ -0,0 +1,52 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+-->
+<!DOCTYPE Scene SYSTEM "UIForm.dtd">
+
+<Scene Bversion="3.0.0.v20120705" Dversion="20120315">
+ <LogicalCoordinate>720</LogicalCoordinate>
+ <Form id="IDL_FORM">
+ <property backgroundColor="" backgroundOpacity="100" orientation="Automatic" softKey0NormalIcon="" softKey0PressedIcon="" softKey0Text="" softKey1NormalIcon="" softKey1PressedIcon="" softKey1Text="" title="" titleAlign="ALIGN_CENTER" titleIcon="" translucentFooter="false" translucentHeader="false" translucentIndicator="false"/>
+ <layout mode="Portrait" style="FORM_STYLE_PORTRAIT_INDICATOR | FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE |FORM_STYLE_HEADER" type="LAYOUT_RELATIVE"/>
+ <layout mode="Landscape" style="FORM_STYLE_PORTRAIT_INDICATOR | FORM_STYLE_LANDSCAPE_INDICATOR_AUTO_HIDE |FORM_STYLE_HEADER" type="LAYOUT_RELATIVE"/>
+ </Form>
+ <Header>
+ <property backgroundBitmapPath="" color="" colorOpacity="0" descriptionText="" descriptionTextColor="" disabledButtonColor="" disabledButtonColorOpacity="0" disabledButtonTextColor="" disabledItemColor="" disabledItemColorOpacity="0" disabledItemTextColor="" headerStyle="HEADER_STYLE_TAB" highlightedButtonColor="" highlightedButtonColorOpacity="0" highlightedButtonTextColor="" highlightedItemColor="" highlightedItemColorOpacity="0" highlightedItemTextColor="" normalButtonColor="" normalButtonColorOpacity="0" normalButtonTextColor="" normalItemColor="" normalItemColorOpacity="0" normalItemTextColor="" pressedButtonColor="" pressedButtonColorOpacity="0" pressedButtonTextColor="" pressedItemColor="" pressedItemColorOpacity="0" pressedItemTextColor="" selectedItemColor="" selectedItemColorOpacity="0" selectedItemTextColor="" titleIconPath="" titleText="" titleTextColor=""/>
+ <itemSet>
+ <headerItem actionId="101" disabledBGBitmapPath="" disabledIconPath="" highlightedBGBitmapPath="" highlightedIconPath="" normalBGBitmapPath="" normalIconPath="" pressedBGBitmapPath="" pressedIconPath="" selectedBGBitmapPath="" text="Tab1"/>
+ <headerItem actionId="102" disabledBGBitmapPath="" disabledIconPath="" highlightedBGBitmapPath="" highlightedIconPath="" normalBGBitmapPath="" normalIconPath="" pressedBGBitmapPath="" pressedIconPath="" selectedBGBitmapPath="" text="Tab2"/>
+ <headerItem actionId="103" disabledBGBitmapPath="" disabledIconPath="" highlightedBGBitmapPath="" highlightedIconPath="" normalBGBitmapPath="" normalIconPath="" pressedBGBitmapPath="" pressedIconPath="" selectedBGBitmapPath="" text="Tab3"/>
+ </itemSet>
+ </Header>
+ <Panel id="IDC_PANEL1" parent="IDL_FORM">
+ <property backgroundColor="" backgroundColorOpacity="0" compositeEnabled="true" groupStyle="GROUP_STYLE_NONE"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="1003" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" type="LAYOUT_RELATIVE" verticalFitPolicy="FIT_POLICY_PARENT" width="720" x="0" y="0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="273" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" type="LAYOUT_RELATIVE" verticalFitPolicy="FIT_POLICY_PARENT" width="1013" x="0" y="0"/>
+ </Panel>
+ <Label id="IDC_LABEL1" parent="IDC_PANEL1">
+ <property backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" text="Tab1 is selected" textColor="" textSize="33" textStyle="LABEL_TEXT_STYLE_NORMAL" verticalAlign="ALIGN_MIDDLE"/>
+ <layout bottomRelation="IDC_PANEL1" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="100" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="0" x="0" y="0"/>
+ <layout bottomRelation="IDC_PANEL1" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="100" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="0" x="0" y="0"/>
+ </Label>
+ <Panel id="IDC_PANEL2" parent="IDL_FORM">
+ <property backgroundColor="" backgroundColorOpacity="0" compositeEnabled="true" groupStyle="GROUP_STYLE_NONE"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="903" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="" leftRelationType="" marginBottom="100" marginLeft="0" marginRight="0" marginTop="0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" type="LAYOUT_RELATIVE" verticalFitPolicy="FIT_POLICY_PARENT" width="720" x="0" y="0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="52" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" type="LAYOUT_RELATIVE" verticalFitPolicy="FIT_POLICY_PARENT" width="533" x="0" y="0"/>
+ </Panel>
+ <Label id="IDC_LABEL2" parent="IDC_PANEL2">
+ <property backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" text="Tab2 is selected" textColor="" textSize="33" textStyle="LABEL_TEXT_STYLE_NORMAL" verticalAlign="ALIGN_MIDDLE"/>
+ <layout bottomRelation="IDC_PANEL2" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="100" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="300" x="0" y="909"/>
+ <layout bottomRelation="IDC_PANEL2" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="100" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="300" x="0" y="909"/>
+ </Label>
+ <Panel id="IDC_PANEL3" parent="IDL_FORM">
+ <property backgroundColor="" backgroundColorOpacity="0" compositeEnabled="true" groupStyle="GROUP_STYLE_NONE"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="903" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="" leftRelationType="" marginBottom="100" marginLeft="0" marginRight="0" marginTop="0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" type="LAYOUT_RELATIVE" verticalFitPolicy="FIT_POLICY_PARENT" width="720" x="0" y="0"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="172" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" type="LAYOUT_RELATIVE" verticalFitPolicy="FIT_POLICY_PARENT" width="801" x="0" y="0"/>
+ </Panel>
+ <Label id="IDC_LABEL3" parent="IDC_PANEL3">
+ <property backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_LEFT" text="Tab3 is selected" textColor="" textSize="33" textStyle="LABEL_TEXT_STYLE_NORMAL" verticalAlign="ALIGN_MIDDLE"/>
+ <layout bottomRelation="IDC_PANEL3" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="100" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="300" x="0" y="909"/>
+ <layout bottomRelation="IDC_PANEL3" bottomRelationType="RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM" centerHorizontal="false" centerVertical="false" height="100" horizontalFitPolicy="FIT_POLICY_PARENT" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="300" x="0" y="909"/>
+ </Label>
+</Scene>
diff --git a/Template/Tizen Native/Tab-based Application/tabapp/project/shared/res/screen-density-xhigh/mainmenu.png b/Template/Tizen Native/Tab-based Application/tabapp/project/shared/res/screen-density-xhigh/mainmenu.png
new file mode 100755
index 0000000..9765b1b
--- /dev/null
+++ b/Template/Tizen Native/Tab-based Application/tabapp/project/shared/res/screen-density-xhigh/mainmenu.png
Binary files differ
diff --git a/Template/Tizen Native/Tab-based Application/tabapp/project/src/App.cpp b/Template/Tizen Native/Tab-based Application/tabapp/project/src/App.cpp
new file mode 100644
index 0000000..56a3b57
--- /dev/null
+++ b/Template/Tizen Native/Tab-based Application/tabapp/project/src/App.cpp
@@ -0,0 +1,107 @@
+#include <new>
+#include "$(baseName)App.h"
+#include "$(baseName)Frame.h"
+
+using namespace Tizen::App;
+using namespace Tizen::System;
+
+$(baseName)App::$(baseName)App(void)
+{
+}
+
+$(baseName)App::~$(baseName)App(void)
+{
+}
+
+UiApp*
+$(baseName)App::CreateInstance(void)
+{
+ // Create the application instance through the constructor.
+ return new (std::nothrow) $(baseName)App();
+}
+
+bool
+$(baseName)App::OnAppInitializing(AppRegistry& appRegistry)
+{
+ // TODO: Initialize application-specific data.
+ // The permanent data and context of the application can be obtained from the application registry (appRegistry).
+ //
+ // If this method is successful, return true; otherwise, return false and the application is terminated.
+
+
+ // Uncomment the following statement to listen to the screen on and off events:
+ // PowerManager::SetScreenEventListener(*this);
+
+ return true;
+}
+
+bool
+$(baseName)App::OnAppInitialized(void)
+{
+ // Create the application frame.
+ $(baseName)Frame* p$(baseName)Frame = new (std::nothrow) $(baseName)Frame;
+ TryReturn(p$(baseName)Frame != null, false, "The memory is insufficient.");
+ p$(baseName)Frame->Construct();
+ p$(baseName)Frame->SetName(L"$(baseName)");
+ AddFrame(*p$(baseName)Frame);
+
+ return true;
+}
+
+bool
+$(baseName)App::OnAppWillTerminate(void)
+{
+ // TODO: Deallocate or release resources in devices that have the END key.
+ return true;
+}
+
+bool
+$(baseName)App::OnAppTerminating(AppRegistry& appRegistry, bool forcedTermination)
+{
+ // TODO: Deallocate all resources allocated by the application.
+ // The permanent data and context of the application can be saved through the application registry (appRegistry).
+ return true;
+}
+
+void
+$(baseName)App::OnForeground(void)
+{
+ // TODO:
+ // Start or resume drawing when the application is moved to the foreground.
+}
+
+void
+$(baseName)App::OnBackground(void)
+{
+ // TODO: Stop drawing when the application is moved to the background to save the CPU and battery consumption.
+}
+
+void
+$(baseName)App::OnLowMemory(void)
+{
+ // TODO: Free unnecessary resources or close the application.
+}
+
+void
+$(baseName)App::OnBatteryLevelChanged(BatteryLevel batteryLevel)
+{
+ // TODO: Handle all battery level changes here.
+ // Stop using multimedia features (such as camera and mp3 playback) if the battery level is CRITICAL.
+}
+
+void
+$(baseName)App::OnScreenOn(void)
+{
+ // TODO: Retrieve the released resources or resume the operations that were paused or stopped in the OnScreenOff() event handler.
+}
+
+void
+$(baseName)App::OnScreenOff(void)
+{
+ // TODO: Release resources (such as 3D, media, and sensors) to allow the device to enter the sleep mode
+ // to save the battery (unless you have a good reason to do otherwise).
+ // Only perform quick operations in this event handler. Any lengthy operations can be risky;
+ // for example, invoking a long asynchronous method within this event handler can cause problems
+ // because the device can enter the sleep mode before the callback is invoked.
+
+}
diff --git a/Template/Tizen Native/Tab-based Application/tabapp/project/src/AppEntry.cpp b/Template/Tizen Native/Tab-based Application/tabapp/project/src/AppEntry.cpp
new file mode 100644
index 0000000..33a3c6f
--- /dev/null
+++ b/Template/Tizen Native/Tab-based Application/tabapp/project/src/AppEntry.cpp
@@ -0,0 +1,37 @@
+//
+//This file contains the Tizen application entry point by default. You do not need to modify this file.
+//
+#include <new>
+#include "$(baseName)App.h"
+
+using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif // __cplusplus
+
+//
+// The framework calls this method as the entry method of the Tizen application.
+//
+_EXPORT_ int
+OspMain(int argc, char* pArgv[])
+{
+ AppLog("Application started.");
+ ArrayList args(SingleObjectDeleter);
+ args.Construct();
+ for (int i = 0; i < argc; i++)
+ {
+ args.Add(new (std::nothrow) String(pArgv[i]));
+ }
+
+ result r = Tizen::App::UiApp::Execute($(baseName)App::CreateInstance, &args);
+ TryLog(r == E_SUCCESS, "[%s] Application execution failed.", GetErrorMessage(r));
+ AppLog("Application finished.");
+
+ return static_cast< int >(r);
+}
+#ifdef __cplusplus
+}
+#endif // __cplusplus
diff --git a/Template/Tizen Native/Tab-based Application/tabapp/project/src/AppForm.cpp b/Template/Tizen Native/Tab-based Application/tabapp/project/src/AppForm.cpp
new file mode 100644
index 0000000..a3b2d06
--- /dev/null
+++ b/Template/Tizen Native/Tab-based Application/tabapp/project/src/AppForm.cpp
@@ -0,0 +1,102 @@
+#include "$(baseName)Form.h"
+#include "AppResourceId.h"
+
+using namespace Tizen::Base;
+using namespace Tizen::App;
+using namespace Tizen::Ui;
+using namespace Tizen::Ui::Controls;
+
+$(baseName)Form::$(baseName)Form(void)
+{
+}
+
+$(baseName)Form::~$(baseName)Form(void)
+{
+}
+
+bool
+$(baseName)Form::Initialize(void)
+{
+ result r = Construct(IDL_FORM);
+ TryReturn(r == E_SUCCESS, false, "Failed to construct form");
+
+ return true;
+}
+result
+$(baseName)Form::OnInitializing(void)
+{
+ result r = E_SUCCESS;
+
+ // TODO: Add your initialization code here
+ Header* pHeader = GetHeader();
+ if (pHeader)
+ {
+ pHeader->AddActionEventListener(*this);
+ }
+ // Setup back event listener
+ SetFormBackEventListener(this);
+
+ // Get a button via resource ID
+ __pPanel[0] = static_cast< Panel* >(GetControl(IDC_PANEL1));
+ __pPanel[1] = static_cast< Panel* >(GetControl(IDC_PANEL2));
+ __pPanel[2] = static_cast< Panel* >(GetControl(IDC_PANEL3));
+
+ __pPanel[0]->SetShowState(true);
+ __pPanel[1]->SetShowState(false);
+ __pPanel[2]->SetShowState(false);
+
+
+ return r;
+}
+
+result
+$(baseName)Form::OnTerminating(void)
+{
+ result r = E_SUCCESS;
+
+ // TODO: Add your termination code here
+
+ return r;
+}
+
+void
+$(baseName)Form::OnActionPerformed(const Tizen::Ui::Control& source, int actionId)
+{
+ switch(actionId)
+ {
+ case IDA_HEADER_ITEM1:
+ {
+ __pPanel[0]->SetShowState(true);
+ __pPanel[1]->SetShowState(false);
+ __pPanel[2]->SetShowState(false);
+ }
+ break;
+ case IDA_HEADER_ITEM2:
+ {
+ __pPanel[0]->SetShowState(false);
+ __pPanel[1]->SetShowState(true);
+ __pPanel[2]->SetShowState(false);
+ }
+ break;
+ case IDA_HEADER_ITEM3:
+ {
+ __pPanel[0]->SetShowState(false);
+ __pPanel[1]->SetShowState(false);
+ __pPanel[2]->SetShowState(true);
+ }
+ break;
+ default:
+ break;
+ }
+ Invalidate(true);
+}
+
+void
+$(baseName)Form::OnFormBackRequested(Tizen::Ui::Controls::Form& source)
+{
+ UiApp* pApp = UiApp::GetInstance();
+ AppAssert(pApp);
+ pApp->Terminate();
+}
+
+
diff --git a/Template/Tizen Native/Tab-based Application/tabapp/project/src/AppFrame.cpp b/Template/Tizen Native/Tab-based Application/tabapp/project/src/AppFrame.cpp
new file mode 100644
index 0000000..a7f41f9
--- /dev/null
+++ b/Template/Tizen Native/Tab-based Application/tabapp/project/src/AppFrame.cpp
@@ -0,0 +1,50 @@
+#include <new>
+#include "$(baseName)Frame.h"
+#include "$(baseName)Form.h"
+
+using namespace Tizen::Base;
+using namespace Tizen::Ui;
+using namespace Tizen::Ui::Controls;
+
+$(baseName)Frame::$(baseName)Frame(void)
+{
+}
+
+$(baseName)Frame::~$(baseName)Frame(void)
+{
+}
+
+result
+$(baseName)Frame::OnInitializing(void)
+{
+ result r = E_SUCCESS;
+
+ // Create a form
+ $(baseName)Form* p$(baseName)Form = new (std::nothrow) $(baseName)Form();
+ TryReturn(p$(baseName)Form != null, false, "The memory is insufficient.");
+ p$(baseName)Form->Initialize();
+
+ // Add the form to the frame
+ AddControl(p$(baseName)Form);
+
+ // Set the current form
+ SetCurrentForm(p$(baseName)Form);
+
+ // Draw the form
+ p$(baseName)Form->Invalidate(true);
+
+ // TODO: Add your frame initialization code here.
+
+ return r;
+}
+
+result
+$(baseName)Frame::OnTerminating(void)
+{
+ result r = E_SUCCESS;
+
+ // TODO: Add your frame termination code here.
+ return r;
+}
+
+
diff --git a/Template/Tizen Native/Tab-based Application/tabapp/project/src/AppResourceId.cpp b/Template/Tizen Native/Tab-based Application/tabapp/project/src/AppResourceId.cpp
new file mode 100644
index 0000000..b3d21aa
--- /dev/null
+++ b/Template/Tizen Native/Tab-based Application/tabapp/project/src/AppResourceId.cpp
@@ -0,0 +1,6 @@
+#include "AppResourceId.h"
+
+const wchar_t* IDL_FORM = L"IDL_FORM";
+const wchar_t* IDC_PANEL1 = L"IDC_PANEL1";
+const wchar_t* IDC_PANEL2 = L"IDC_PANEL2";
+const wchar_t* IDC_PANEL3 = L"IDC_PANEL3";
diff --git a/Template/Tizen Native/Tab-based Application/tabapp/sample.xml b/Template/Tizen Native/Tab-based Application/tabapp/sample.xml
new file mode 100644
index 0000000..ddb244a
--- /dev/null
+++ b/Template/Tizen Native/Tab-based Application/tabapp/sample.xml
@@ -0,0 +1,68 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<template>
+
+ <slp-property>
+ <property-group>
+ <sample-name>Without SceneManager</sample-name>
+ <category>Application Template</category>
+ <sdk-version>1.00</sdk-version>
+ <project-type>org.tizen.nativecpp.buildArtefactType.app</project-type>
+ <sample-description>description.xml</sample-description>
+ </property-group>
+ </slp-property>
+
+ <process type="org.tizen.nativeappcommon.TizenCopyFolder">
+ <simple name="projectName" value="$(projectName)"/>
+ <simple name="folderPath" value="project"/>
+ <complex-array name="replaceableFiles">
+ <element>
+ <simple name="sourcePath" value="src/App.cpp"/>
+ <simple name="targetPath" value="src/$(baseName)App.cpp"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="src/AppEntry.cpp"/>
+ <simple name="targetPath" value="src/$(baseName)Entry.cpp"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="src/AppForm.cpp"/>
+ <simple name="targetPath" value="src/$(baseName)Form.cpp"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="src/AppFrame.cpp"/>
+ <simple name="targetPath" value="src/$(baseName)Frame.cpp"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="inc/App.h"/>
+ <simple name="targetPath" value="inc/$(baseName)App.h"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="inc/AppForm.h"/>
+ <simple name="targetPath" value="inc/$(baseName)Form.h"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="inc/AppFrame.h"/>
+ <simple name="targetPath" value="inc/$(baseName)Frame.h"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="manifest.xml"/>
+ <simple name="targetPath" value="manifest.xml"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ </complex-array>
+ </process>
+ <process type="org.tizen.nativecpp.SetDefaultFrameworks">
+ <simple name="projectName" value="$(projectName)"/>
+ <complex-array name="frameworkList">
+ <element>
+ <simple name="framework" value="osp"/>
+ </element>
+ </complex-array>
+ </process>
+</template>
diff --git a/Template/Tizen Native/Tab-based Application/tabapp/screenshot.png b/Template/Tizen Native/Tab-based Application/tabapp/screenshot.png
new file mode 100644
index 0000000..ff2c8f2
--- /dev/null
+++ b/Template/Tizen Native/Tab-based Application/tabapp/screenshot.png
Binary files differ
diff --git a/Template/Tizen Native/Theme Application/home/description.xml b/Template/Tizen Native/Theme Application/home/description.xml
new file mode 100644
index 0000000..36ee831
--- /dev/null
+++ b/Template/Tizen Native/Theme Application/home/description.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8"?>
+<?xml-stylesheet type="text/xsl" href="../../../../description.xsl"?>
+
+<Overview version="0.17.1">
+ <SampleName>Home Application</SampleName>
+ <SampleVersion>1.0</SampleVersion>
+ <Preview>screenshot.png</Preview>
+ <Description>
+ This template is suitable for creating a home screen application.
+ </Description>
+</Overview>
diff --git a/Template/Tizen Native/Theme Application/home/project/inc/AppResourceId.h b/Template/Tizen Native/Theme Application/home/project/inc/AppResourceId.h
new file mode 100755
index 0000000..5c220ff
--- /dev/null
+++ b/Template/Tizen Native/Theme Application/home/project/inc/AppResourceId.h
@@ -0,0 +1,6 @@
+#ifndef _APP_RESOURCE_ID_H_
+#define _APP_RESOURCE_ID_H_
+
+extern const wchar_t* IDL_FORM;
+
+#endif //_APP_RESOURCE_ID_H_
diff --git a/Template/Tizen Native/Theme Application/home/project/inc/Home.h b/Template/Tizen Native/Theme Application/home/project/inc/Home.h
new file mode 100755
index 0000000..4cdbfcf
--- /dev/null
+++ b/Template/Tizen Native/Theme Application/home/project/inc/Home.h
@@ -0,0 +1,51 @@
+#ifndef _$(baseNameUpper)_APP_H_
+#define _$(baseNameUpper)_APP_H_
+
+$(pcheader)
+
+//The $(baseName)App class must inherit from the UiApp class,
+//which provides the basic features necessary to define a UI application.
+
+class $(baseName)App
+ : public Tizen::App::UiApp
+ , public Tizen::System::IScreenEventListener
+{
+public:
+ //The platform calls this method to create the application instance.
+ static Tizen::App::UiApp* CreateInstance(void);
+
+ $(baseName)App(void);
+ virtual ~$(baseName)App(void);
+
+ // Called when the UI application is initializing.
+ virtual bool OnAppInitializing(Tizen::App::AppRegistry& appRegistry);
+
+ // Called when the UI application initialization is finished.
+ virtual bool OnAppInitialized(void);
+
+ // Called when the END key is pressed to terminate the UI application (if the device has the END key).
+ virtual bool OnAppWillTerminate(void);
+
+ // Called when the UI application is terminating.
+ virtual bool OnAppTerminating(Tizen::App::AppRegistry& appRegistry, bool forcedTermination = false);
+
+ // Called when the UI application's frame moves to the foreground.
+ virtual void OnForeground(void);
+
+ // Called when the UI application's frame is moved from the foreground to the background.
+ virtual void OnBackground(void);
+
+ // Called when system memory is no longer sufficient to run the UI application. Clean up unnecessary resources to release memory, or terminate the application.
+ virtual void OnLowMemory(void);
+
+ // Called when the battery level changes.
+ virtual void OnBatteryLevelChanged(Tizen::System::BatteryLevel batteryLevel);
+
+ // Called when the screen switches on.
+ virtual void OnScreenOn(void);
+
+ // Called when the screen switches off.
+ virtual void OnScreenOff(void);
+};
+
+#endif // _$(baseNameUpper)_APP_H_
diff --git a/Template/Tizen Native/Theme Application/home/project/inc/HomeFrame.h b/Template/Tizen Native/Theme Application/home/project/inc/HomeFrame.h
new file mode 100755
index 0000000..d29c052
--- /dev/null
+++ b/Template/Tizen Native/Theme Application/home/project/inc/HomeFrame.h
@@ -0,0 +1,17 @@
+#ifndef _$(baseNameUpper)_FRAME_H_
+#define _$(baseNameUpper)_FRAME_H_
+
+$(pcheader)
+
+class $(baseName)Frame
+ : public Tizen::Ui::Controls::Frame
+{
+public:
+ $(baseName)Frame(void);
+ virtual ~$(baseName)Frame(void);
+
+ virtual result OnInitializing(void);
+ virtual result OnTerminating(void);
+};
+
+#endif //_$(baseNameUpper)_FRAME_H_
diff --git a/Template/Tizen Native/Theme Application/home/project/inc/MainForm.h b/Template/Tizen Native/Theme Application/home/project/inc/MainForm.h
new file mode 100755
index 0000000..3905418
--- /dev/null
+++ b/Template/Tizen Native/Theme Application/home/project/inc/MainForm.h
@@ -0,0 +1,20 @@
+#ifndef _$(baseNameUpper)_FORM_H_
+#define _$(baseNameUpper)_FORM_H_
+
+$(pcheader)
+
+class $(baseName)Form
+ : public Tizen::Ui::Controls::Form
+{
+public:
+ $(baseName)Form(void);
+ virtual ~$(baseName)Form(void);
+
+ bool Initialize(void);
+
+public:
+ virtual result OnInitializing(void);
+ virtual result OnTerminating(void);
+};
+
+#endif //_$(baseNameUpper)_FORM_H_
diff --git a/Template/Tizen Native/Theme Application/home/project/inc/tizenx.h b/Template/Tizen Native/Theme Application/home/project/inc/tizenx.h
new file mode 100644
index 0000000..fc7052d
--- /dev/null
+++ b/Template/Tizen Native/Theme Application/home/project/inc/tizenx.h
@@ -0,0 +1,13 @@
+// precompiled header file
+#ifndef TIZENX_H_
+#define TIZENX_H_
+
+#include <FApp.h>
+#include <FBase.h>
+#include <FSystem.h>
+#include <FUi.h>
+#include <FUiIme.h>
+#include <FGraphics.h>
+#include <gl.h>
+
+#endif
diff --git a/Template/Tizen Native/Theme Application/home/project/manifest.xml b/Template/Tizen Native/Theme Application/home/project/manifest.xml
new file mode 100755
index 0000000..ef57eee
--- /dev/null
+++ b/Template/Tizen Native/Theme Application/home/project/manifest.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<Manifest xmlns="http://schemas.tizen.org/2012/12/manifest">
+ <Id>$(manifestAppId)</Id>
+ <Version>1.0.0</Version>
+ <Type>C++App</Type>
+ <Requirements>
+ <Feature Name="http://tizen.org/feature/platform.native.api.version">2.2</Feature>
+ </Requirements>
+ <Apps>
+ <ApiVersion>2.2</ApiVersion>
+ <UiApp Main="True" MenuIconVisible="True" Name="$(projectName)">
+ <UiScalability BaseScreenSize="Normal" CoordinateSystem="Logical" LogicalCoordinate="720"/>
+ <UiTheme SystemTheme="White"/>
+ <DisplayNames>
+ <DisplayName Locale="eng-GB">$(projectName)</DisplayName>
+ </DisplayNames>
+ <Icons>
+ <Icon Section="MainMenu">mainmenu.png</Icon>
+ </Icons>
+ <Categories>
+ <Category>http://tizen.org/category/homeapp</Category>
+ </Categories>
+ </UiApp>
+ </Apps>
+</Manifest>
diff --git a/Template/Tizen Native/Theme Application/home/project/res/screen-size-normal/IDL_FORM.xml b/Template/Tizen Native/Theme Application/home/project/res/screen-size-normal/IDL_FORM.xml
new file mode 100755
index 0000000..ec025ad
--- /dev/null
+++ b/Template/Tizen Native/Theme Application/home/project/res/screen-size-normal/IDL_FORM.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+-->
+<!DOCTYPE Scene SYSTEM "UIForm.dtd">
+<Scene Bversion="2.0.0.201302151552" Dversion="20120315">
+ <LogicalCoordinate>720</LogicalCoordinate>
+ <Form id="IDL_FORM">
+ <property backgroundColor="" backgroundColorOpacity="100" orientation="Automatic" softKey0NormalIcon="" softKey0PressedIcon="" softKey0Text="" softKey1NormalIcon="" softKey1PressedIcon="" softKey1Text="" title="" titleAlign="ALIGN_CENTER" titleIcon="" translucentFooter="false" translucentHeader="false" translucentIndicator="false"/>
+ <layout mode="Portrait" style="FORM_STYLE_INDICATOR" type="LAYOUT_RELATIVE"/>
+ <layout mode="Landscape" style="FORM_STYLE_INDICATOR" type="LAYOUT_RELATIVE"/>
+ </Form>
+ <Label id="IDC_LABEL1" parent="IDL_FORM">
+ <property backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_CENTER" text="HOMESCREEN" textColor="" textSize="44" textStyle="LABEL_TEXT_STYLE_BOLD" verticalAlign="ALIGN_MIDDLE"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="80" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="600" x="45" y="190"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="127" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="929" x="206" y="37"/>
+ </Label>
+</Scene>
diff --git a/Template/Tizen Native/Theme Application/home/project/shared/res/screen-density-xhigh/mainmenu.png b/Template/Tizen Native/Theme Application/home/project/shared/res/screen-density-xhigh/mainmenu.png
new file mode 100755
index 0000000..9765b1b
--- /dev/null
+++ b/Template/Tizen Native/Theme Application/home/project/shared/res/screen-density-xhigh/mainmenu.png
Binary files differ
diff --git a/Template/Tizen Native/Theme Application/home/project/src/AppResourceId.cpp b/Template/Tizen Native/Theme Application/home/project/src/AppResourceId.cpp
new file mode 100755
index 0000000..d6b2e0a
--- /dev/null
+++ b/Template/Tizen Native/Theme Application/home/project/src/AppResourceId.cpp
@@ -0,0 +1,3 @@
+#include "AppResourceId.h"
+
+const wchar_t* IDL_FORM = L"IDL_FORM";
diff --git a/Template/Tizen Native/Theme Application/home/project/src/Home.cpp b/Template/Tizen Native/Theme Application/home/project/src/Home.cpp
new file mode 100755
index 0000000..c0f145b
--- /dev/null
+++ b/Template/Tizen Native/Theme Application/home/project/src/Home.cpp
@@ -0,0 +1,114 @@
+#include "$(baseName)App.h"
+#include "$(baseName)Frame.h"
+#include <new>
+
+using namespace Tizen::App;
+using namespace Tizen::Base;
+using namespace Tizen::System;
+using namespace Tizen::Ui;
+using namespace Tizen::Ui::Controls;
+
+$(baseName)App::$(baseName)App(void)
+{
+}
+
+$(baseName)App::~$(baseName)App(void)
+{
+}
+
+UiApp*
+$(baseName)App::CreateInstance(void)
+{
+ // Create the application instance through the constructor.
+ return new (std::nothrow) $(baseName)App();
+}
+
+bool
+$(baseName)App::OnAppInitializing(AppRegistry& appRegistry)
+{
+ // TODO:
+ // Initialize application-specific data.
+ // The permanent data and context of the application can be obtained from the application registry (appRegistry).
+ //
+ // If this method is successful, return true; otherwise, return false and the application is terminated.
+
+ $(baseName)Frame* pFrame = new (std::nothrow) $(baseName)Frame();
+ pFrame->Construct();
+ pFrame->SetName(L"$(baseName)");
+ AddFrame(*pFrame);
+
+ // TODO: Add your initialization code here
+ return true;
+}
+
+bool
+$(baseName)App::OnAppInitialized(void)
+{
+ return true;
+}
+
+bool
+$(baseName)App::OnAppWillTerminate(void)
+{
+ // TODO:
+ // Deallocate or release resources in devices that have the END key.
+ return true;
+}
+
+bool
+$(baseName)App::OnAppTerminating(AppRegistry& appRegistry, bool forcedTermination)
+{
+ // TODO:
+ // Deallocate all resources allocated by the application.
+ // The permanent data and context of the application can be saved through the application registry (appRegistry).
+
+ return true;
+}
+
+void
+$(baseName)App::OnForeground(void)
+{
+ // TODO:
+ // Start or resume drawing when the application is moved to the foreground.
+}
+
+void
+$(baseName)App::OnBackground(void)
+{
+ // TODO:
+ // Stop drawing when the application is moved to the background to save the CPU and battery consumption.
+}
+
+void
+$(baseName)App::OnLowMemory(void)
+{
+ // TODO:
+ // Free unnecessary resources or close the application.
+}
+
+void
+$(baseName)App::OnBatteryLevelChanged(BatteryLevel batteryLevel)
+{
+ // TODO:
+ // Handle all battery level changes here.
+ // Stop using multimedia features (such as camera and mp3 playback) if the battery level is CRITICAL.
+
+}
+
+void
+$(baseName)App::OnScreenOn(void)
+{
+ // TODO:
+ // Retrieve the released resources or resume the operations that were paused or stopped in the OnScreenOff() event handler.
+}
+
+void
+$(baseName)App::OnScreenOff(void)
+{
+ // TODO:
+ // Release resources (such as 3D, media, and sensors) to allow the device to enter the sleep mode
+ // to save the battery (unless you have a good reason to do otherwise).
+ // Only perform quick operations in this event handler. Any lengthy operations can be risky; for
+ // example, invoking a long asynchronous method within this event handler can cause problems
+ // because the device can enter the sleep mode before the callback is invoked.
+}
diff --git a/Template/Tizen Native/Theme Application/home/project/src/HomeEntry.cpp b/Template/Tizen Native/Theme Application/home/project/src/HomeEntry.cpp
new file mode 100755
index 0000000..2d07d92
--- /dev/null
+++ b/Template/Tizen Native/Theme Application/home/project/src/HomeEntry.cpp
@@ -0,0 +1,37 @@
+//
+// This file contains the Tizen application entry point.
+//
+#include <new>
+#include "$(baseName)App.h"
+
+using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif // __cplusplus
+
+//
+// The entry function of Tizen application called by the operating system.
+//
+_EXPORT_ int
+OspMain(int argc, char* pArgv[])
+{
+ AppLog("Application started.");
+ ArrayList args(SingleObjectDeleter);
+ args.Construct();
+ for (int i = 0; i < argc; i++)
+ {
+ args.Add(new (std::nothrow) String(pArgv[i]));
+ }
+
+ result r = Tizen::App::UiApp::Execute($(baseName)App::CreateInstance, &args);
+ TryLog(r == E_SUCCESS, "[%s] Application execution failed.", GetErrorMessage(r));
+ AppLog("Application finished.");
+
+ return static_cast< int >(r);
+}
+#ifdef __cplusplus
+}
+#endif // __cplusplus
diff --git a/Template/Tizen Native/Theme Application/home/project/src/HomeFrame.cpp b/Template/Tizen Native/Theme Application/home/project/src/HomeFrame.cpp
new file mode 100755
index 0000000..3f04eb2
--- /dev/null
+++ b/Template/Tizen Native/Theme Application/home/project/src/HomeFrame.cpp
@@ -0,0 +1,49 @@
+#include "$(baseName)Frame.h"
+#include "$(baseName)Form.h"
+#include <new>
+
+using namespace Tizen::Base;
+using namespace Tizen::Ui;
+using namespace Tizen::Ui::Controls;
+using namespace Tizen::Graphics;
+
+$(baseName)Frame::$(baseName)Frame(void)
+{
+}
+
+$(baseName)Frame::~$(baseName)Frame(void)
+{
+}
+
+result
+$(baseName)Frame::OnInitializing(void)
+{
+ // Create a form
+ $(baseName)Form* pForm = new (std::nothrow) $(baseName)Form();
+ result r = pForm->Initialize();
+
+ // Add the form to the frame
+ r = AddControl(*pForm);
+
+ // Set the current form
+ r = SetCurrentForm(*pForm);
+
+ // Draw the form
+ pForm->Invalidate(true);
+
+ // TODO:
+ // Add your frame initialization code here.
+ return r;
+}
+
+result
+$(baseName)Frame::OnTerminating(void)
+{
+ result r = E_SUCCESS;
+
+ // TODO:
+ // Add your frame termination code here.
+ return r;
+}
+
+
diff --git a/Template/Tizen Native/Theme Application/home/project/src/MainForm.cpp b/Template/Tizen Native/Theme Application/home/project/src/MainForm.cpp
new file mode 100755
index 0000000..1873aed
--- /dev/null
+++ b/Template/Tizen Native/Theme Application/home/project/src/MainForm.cpp
@@ -0,0 +1,44 @@
+#include "AppResourceId.h"
+#include "$(baseName)Form.h"
+
+using namespace Tizen::App;
+using namespace Tizen::Base;
+using namespace Tizen::Ui;
+using namespace Tizen::Ui::Controls;
+
+$(baseName)Form::$(baseName)Form(void)
+{
+}
+
+$(baseName)Form::~$(baseName)Form(void)
+{
+}
+
+bool
+$(baseName)Form::Initialize(void)
+{
+ Construct(IDL_FORM);
+ return true;
+}
+
+result
+$(baseName)Form::OnInitializing(void)
+{
+ result r = E_SUCCESS;
+
+ // TODO:
+ // Add your initialization code here
+ return r;
+}
+
+result
+$(baseName)Form::OnTerminating(void)
+{
+ result r = E_SUCCESS;
+
+ // TODO:
+ // Add your termination code here
+ return r;
+}
+
+
diff --git a/Template/Tizen Native/Theme Application/home/sample.xml b/Template/Tizen Native/Theme Application/home/sample.xml
new file mode 100644
index 0000000..e84dc7f
--- /dev/null
+++ b/Template/Tizen Native/Theme Application/home/sample.xml
@@ -0,0 +1,68 @@
+<?xml version="1.0" encoding="utf-8"?>
+<template>
+
+ <slp-property>
+ <property-group>
+ <sample-name>Home Application</sample-name>
+ <category>Application Template</category>
+ <sdk-version>1.00</sdk-version>
+ <project-type>org.tizen.nativecpp.buildArtefactType.app</project-type>
+ <sample-description>description.xml</sample-description>
+ </property-group>
+ </slp-property>
+
+ <process type="org.tizen.nativeappcommon.TizenCopyFolder">
+ <simple name="projectName" value="$(projectName)"/>
+ <simple name="folderPath" value="project"/>
+ <complex-array name="replaceableFiles">
+ <element>
+ <simple name="sourcePath" value="src/Home.cpp"/>
+ <simple name="targetPath" value="src/$(baseName)App.cpp"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="src/HomeEntry.cpp"/>
+ <simple name="targetPath" value="src/$(baseName)Entry.cpp"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="src/MainForm.cpp"/>
+ <simple name="targetPath" value="src/$(baseName)Form.cpp"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="src/HomeFrame.cpp"/>
+ <simple name="targetPath" value="src/$(baseName)Frame.cpp"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="inc/Home.h"/>
+ <simple name="targetPath" value="inc/$(baseName)App.h"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="inc/MainForm.h"/>
+ <simple name="targetPath" value="inc/$(baseName)Form.h"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="inc/HomeFrame.h"/>
+ <simple name="targetPath" value="inc/$(baseName)Frame.h"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="manifest.xml"/>
+ <simple name="targetPath" value="manifest.xml"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ </complex-array>
+ </process>
+ <process type="org.tizen.nativecpp.SetDefaultFrameworks">
+ <simple name="projectName" value="$(projectName)"/>
+ <complex-array name="frameworkList">
+ <element>
+ <simple name="framework" value="osp"/>
+ </element>
+ </complex-array>
+ </process>
+</template>
diff --git a/Template/Tizen Native/Theme Application/home/screenshot.png b/Template/Tizen Native/Theme Application/home/screenshot.png
new file mode 100644
index 0000000..7b0b714
--- /dev/null
+++ b/Template/Tizen Native/Theme Application/home/screenshot.png
Binary files differ
diff --git a/Template/Tizen Native/Theme Application/lock/description.xml b/Template/Tizen Native/Theme Application/lock/description.xml
new file mode 100644
index 0000000..3fb3b92
--- /dev/null
+++ b/Template/Tizen Native/Theme Application/lock/description.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8"?>
+<?xml-stylesheet type="text/xsl" href="../../../../description.xsl"?>
+
+<Overview version="0.17.1">
+ <SampleName>Lock Application</SampleName>
+ <SampleVersion>1.0</SampleVersion>
+ <Preview>screenshot.png</Preview>
+ <Description>
+ This template is suitable for creating a lock screen application.
+ </Description>
+</Overview>
diff --git a/Template/Tizen Native/Theme Application/lock/project/inc/AppResourceId.h b/Template/Tizen Native/Theme Application/lock/project/inc/AppResourceId.h
new file mode 100755
index 0000000..e0b2631
--- /dev/null
+++ b/Template/Tizen Native/Theme Application/lock/project/inc/AppResourceId.h
@@ -0,0 +1,7 @@
+#ifndef _APP_RESOURCE_ID_H_
+#define _APP_RESOURCE_ID_H_
+
+extern const wchar_t* IDL_FORM;
+extern const wchar_t* IDC_BUTTON1;
+
+#endif //_APP_RESOURCE_ID_H_
diff --git a/Template/Tizen Native/Theme Application/lock/project/inc/Lock.h b/Template/Tizen Native/Theme Application/lock/project/inc/Lock.h
new file mode 100755
index 0000000..ff229b6
--- /dev/null
+++ b/Template/Tizen Native/Theme Application/lock/project/inc/Lock.h
@@ -0,0 +1,51 @@
+#ifndef _$(baseNameUpper)_APP_H_
+#define _$(baseNameUpper)_APP_H_
+
+$(pcheader)
+
+//The $(baseName)App class must inherit from the UiApp class,
+//which provides the basic features necessary to define a UI application.
+
+class $(baseName)App
+ : public Tizen::App::UiApp
+ , public Tizen::System::IScreenEventListener
+{
+public:
+ //The platform calls this method to create the application instance.
+ static Tizen::App::UiApp* CreateInstance(void);
+
+ $(baseName)App(void);
+ virtual ~$(baseName)App(void);
+
+ // Called when the UiApp is initializing.
+ virtual bool OnAppInitializing(Tizen::App::AppRegistry& appRegistry);
+
+ // Called when the UiApp initializing is finished.
+ virtual bool OnAppInitialized(void);
+
+ // Called when the UiApp is requested to terminate.
+ virtual bool OnAppWillTerminate(void);
+
+ // Called when the UiApp is terminating.
+ virtual bool OnAppTerminating(Tizen::App::AppRegistry& appRegistry, bool forcedTermination = false);
+
+ // Called when the UiApp's frame moves to the top of the screen.
+ virtual void OnForeground(void);
+
+ // Called when this UiApp's frame is moved from top of the screen to the background.
+ virtual void OnBackground(void);
+
+ // Called when the system memory is not sufficient to run the UiApp any further.
+ virtual void OnLowMemory(void);
+
+ // Called when the battery level changes.
+ virtual void OnBatteryLevelChanged(Tizen::System::BatteryLevel batteryLevel);
+
+ // Called when the screen turns on.
+ virtual void OnScreenOn(void);
+
+ // Called when the screen turns off.
+ virtual void OnScreenOff(void);
+};
+
+#endif // _$(baseNameUpper)_APP_H_
diff --git a/Template/Tizen Native/Theme Application/lock/project/inc/LockFrame.h b/Template/Tizen Native/Theme Application/lock/project/inc/LockFrame.h
new file mode 100755
index 0000000..d29c052
--- /dev/null
+++ b/Template/Tizen Native/Theme Application/lock/project/inc/LockFrame.h
@@ -0,0 +1,17 @@
+#ifndef _$(baseNameUpper)_FRAME_H_
+#define _$(baseNameUpper)_FRAME_H_
+
+$(pcheader)
+
+class $(baseName)Frame
+ : public Tizen::Ui::Controls::Frame
+{
+public:
+ $(baseName)Frame(void);
+ virtual ~$(baseName)Frame(void);
+
+ virtual result OnInitializing(void);
+ virtual result OnTerminating(void);
+};
+
+#endif //_$(baseNameUpper)_FRAME_H_
diff --git a/Template/Tizen Native/Theme Application/lock/project/inc/MainForm.h b/Template/Tizen Native/Theme Application/lock/project/inc/MainForm.h
new file mode 100755
index 0000000..dd5b4ca
--- /dev/null
+++ b/Template/Tizen Native/Theme Application/lock/project/inc/MainForm.h
@@ -0,0 +1,25 @@
+#ifndef _$(baseNameUpper)_FORM_H_
+#define _$(baseNameUpper)_FORM_H_
+
+$(pcheader)
+
+class $(baseName)Form
+ : public Tizen::Ui::Controls::Form
+ , public Tizen::Ui::IActionEventListener
+{
+public:
+ $(baseName)Form(void);
+ virtual ~$(baseName)Form(void);
+
+ bool Initialize(void);
+
+ virtual result OnInitializing(void);
+ virtual result OnTerminating(void);
+
+ virtual void OnActionPerformed(const Tizen::Ui::Control& source, int actionId);
+
+private:
+ static const int IDA_UNLOCK_BUTTON = 101;
+};
+
+#endif //_$(baseNameUpper)_FORM_H_
diff --git a/Template/Tizen Native/Theme Application/lock/project/inc/tizenx.h b/Template/Tizen Native/Theme Application/lock/project/inc/tizenx.h
new file mode 100644
index 0000000..fc7052d
--- /dev/null
+++ b/Template/Tizen Native/Theme Application/lock/project/inc/tizenx.h
@@ -0,0 +1,13 @@
+// precompiled header file
+#ifndef TIZENX_H_
+#define TIZENX_H_
+
+#include <FApp.h>
+#include <FBase.h>
+#include <FSystem.h>
+#include <FUi.h>
+#include <FUiIme.h>
+#include <FGraphics.h>
+#include <gl.h>
+
+#endif
diff --git a/Template/Tizen Native/Theme Application/lock/project/manifest.xml b/Template/Tizen Native/Theme Application/lock/project/manifest.xml
new file mode 100755
index 0000000..20f2ac4
--- /dev/null
+++ b/Template/Tizen Native/Theme Application/lock/project/manifest.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<Manifest xmlns="http://schemas.tizen.org/2012/12/manifest">
+ <Id>$(manifestAppId)</Id>
+ <Version>1.0.0</Version>
+ <Type>C++App</Type>
+ <Requirements>
+ <Feature Name="http://tizen.org/feature/platform.native.api.version">2.2</Feature>
+ </Requirements>
+ <Apps>
+ <ApiVersion>2.2</ApiVersion>
+ <UiApp Main="True" MenuIconVisible="True" Name="$(projectName)">
+ <UiScalability BaseScreenSize="Normal" CoordinateSystem="Logical" LogicalCoordinate="720"/>
+ <UiTheme SystemTheme="White"/>
+ <DisplayNames>
+ <DisplayName Locale="eng-GB">$(projectName)</DisplayName>
+ </DisplayNames>
+ <Icons>
+ <Icon Section="MainMenu">mainmenu.png</Icon>
+ </Icons>
+ <Categories>
+ <Category>http://tizen.org/category/lockapp</Category>
+ </Categories>
+ </UiApp>
+ </Apps>
+</Manifest>
diff --git a/Template/Tizen Native/Theme Application/lock/project/res/screen-size-normal/IDL_FORM.xml b/Template/Tizen Native/Theme Application/lock/project/res/screen-size-normal/IDL_FORM.xml
new file mode 100755
index 0000000..37ef56f
--- /dev/null
+++ b/Template/Tizen Native/Theme Application/lock/project/res/screen-size-normal/IDL_FORM.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+ This XML file was automatically generated by UiBuilder - do not modify by hand.
+-->
+<!DOCTYPE Scene SYSTEM "UIForm.dtd">
+<Scene Bversion="2.0.0.201302151552" Dversion="20120315">
+ <LogicalCoordinate>720</LogicalCoordinate>
+ <Form id="IDL_FORM">
+ <property backgroundColor="" backgroundColorOpacity="100" orientation="Automatic" softKey0NormalIcon="" softKey0PressedIcon="" softKey0Text="" softKey1NormalIcon="" softKey1PressedIcon="" softKey1Text="" title="" titleAlign="ALIGN_CENTER" titleIcon="" translucentFooter="false" translucentHeader="false" translucentIndicator="false"/>
+ <layout mode="Portrait" style="FORM_STYLE_INDICATOR" type="LAYOUT_RELATIVE"/>
+ <layout mode="Landscape" style="FORM_STYLE_INDICATOR" type="LAYOUT_RELATIVE"/>
+ </Form>
+ <Label id="IDC_LABEL1" parent="IDL_FORM">
+ <property backgroundBitmapPath="" backgroundColor="" backgroundColorOpacity="0" horizontalAlign="ALIGN_CENTER" text="LOCKSCREEN" textColor="" textSize="44" textStyle="LABEL_TEXT_STYLE_BOLD" verticalAlign="ALIGN_MIDDLE"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="80" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="600" x="45" y="190"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="77" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="983" x="176" y="58"/>
+ </Label>
+ <Button id="IDC_BUTTON1" parent="IDL_FORM">
+ <property DisabledBitmapX="0" DisabledBitmapY="0" NormalBitmapX="0" NormalBitmapY="0" PressedBitmapX="0" PressedBitmapY="0" disableTextColor="" disabledBitmapPath="" disabledColor="" disabledColorOpacity="100" highlightedBGBitmapPath="" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalAlign="ALIGN_CENTER" normalBGBitmapPath="" normalBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedBitmapPath="" pressedColor="" pressedColorOpacity="100" pressedTextColor="" text="Unlock" textSize="44" verticalAlign="ALIGN_MIDDLE"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="true" centerVertical="false" height="160" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Portrait" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="598" x="61" y="960"/>
+ <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="79" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" verticalFitPolicy="FIT_POLICY_FIXED" width="1063" x="78" y="246"/>
+ </Button>
+</Scene>
diff --git a/Template/Tizen Native/Theme Application/lock/project/shared/res/screen-density-xhigh/mainmenu.png b/Template/Tizen Native/Theme Application/lock/project/shared/res/screen-density-xhigh/mainmenu.png
new file mode 100755
index 0000000..9765b1b
--- /dev/null
+++ b/Template/Tizen Native/Theme Application/lock/project/shared/res/screen-density-xhigh/mainmenu.png
Binary files differ
diff --git a/Template/Tizen Native/Theme Application/lock/project/src/AppResourceId.cpp b/Template/Tizen Native/Theme Application/lock/project/src/AppResourceId.cpp
new file mode 100755
index 0000000..5300224
--- /dev/null
+++ b/Template/Tizen Native/Theme Application/lock/project/src/AppResourceId.cpp
@@ -0,0 +1,4 @@
+#include "AppResourceId.h"
+
+const wchar_t* IDL_FORM = L"IDL_FORM";
+const wchar_t* IDC_BUTTON1 = L"IDC_BUTTON1";
diff --git a/Template/Tizen Native/Theme Application/lock/project/src/Lock.cpp b/Template/Tizen Native/Theme Application/lock/project/src/Lock.cpp
new file mode 100755
index 0000000..ebea0ef
--- /dev/null
+++ b/Template/Tizen Native/Theme Application/lock/project/src/Lock.cpp
@@ -0,0 +1,112 @@
+#include "$(baseName)App.h"
+#include "$(baseName)Frame.h"
+#include <new>
+
+using namespace Tizen::App;
+using namespace Tizen::Base;
+using namespace Tizen::System;
+using namespace Tizen::Ui;
+using namespace Tizen::Ui::Controls;
+
+$(baseName)App::$(baseName)App(void)
+{
+}
+
+$(baseName)App::~$(baseName)App(void)
+{
+}
+
+UiApp*
+$(baseName)App::CreateInstance(void)
+{
+ // Create the application instance through the constructor.
+ return new (std::nothrow) $(baseName)App();
+}
+
+bool
+$(baseName)App::OnAppInitializing(AppRegistry& appRegistry)
+{
+ // TODO:
+ // Initialize application-specific data.
+ // The permanent data and context of the application can be obtained from the application registry (appRegistry).
+ //
+ // If this method is successful, return true; otherwise, return false and the application is terminated.
+
+ $(baseName)Frame* pFrame = new (std::nothrow) $(baseName)Frame();
+ pFrame->Construct();
+ pFrame->SetName(L"$(baseName)");
+ AddFrame(*pFrame);
+
+ // TODO: Add your initialization code here
+ return true;
+}
+
+bool
+$(baseName)App::OnAppInitialized(void)
+{
+ return true;
+}
+
+bool
+$(baseName)App::OnAppWillTerminate(void)
+{
+ // TODO:
+ // Deallocate or release resources in devices that have the END key.
+ return true;
+}
+
+bool
+$(baseName)App::OnAppTerminating(AppRegistry& appRegistry, bool forcedTermination)
+{
+ // TODO:
+ // Deallocate all resources allocated by the application.
+ // The permanent data and context of the application can be saved through the application registry (appRegistry).
+ return true;
+}
+
+void
+$(baseName)App::OnForeground(void)
+{
+ // TODO:
+ // Start or resume drawing when the application is moved to the foreground.
+}
+
+void
+$(baseName)App::OnBackground(void)
+{
+ // TODO:
+ // Stop drawing when the application is moved to the background to save the CPU and battery consumption.
+}
+
+void
+$(baseName)App::OnLowMemory(void)
+{
+ // TODO:
+ // Free unnecessary resources or close the application.
+}
+
+void
+$(baseName)App::OnBatteryLevelChanged(BatteryLevel batteryLevel)
+{
+ // TODO:
+ // Handle all battery level changes here.
+ // Stop using multimedia features (such as camera and mp3 playback) if the battery level is CRITICAL.
+}
+
+void
+$(baseName)App::OnScreenOn(void)
+{
+ // TODO:
+ // Retrieve the released resources or resume the operations that were paused or stopped in the OnScreenOff() event handler.
+}
+
+void
+$(baseName)App::OnScreenOff(void)
+{
+ // TODO:
+ // Release resources (such as 3D, media, and sensors) to allow the device to enter the sleep mode
+ // to save the battery (unless you have a good reason to do otherwise).
+ // Only perform quick operations in this event handler. Any lengthy operations can be risky; for
+ // example, invoking a long asynchronous method within this event handler can cause problems
+ // because the device can enter the sleep mode before the callback is invoked.
+}
diff --git a/Template/Tizen Native/Theme Application/lock/project/src/LockEntry.cpp b/Template/Tizen Native/Theme Application/lock/project/src/LockEntry.cpp
new file mode 100755
index 0000000..2d07d92
--- /dev/null
+++ b/Template/Tizen Native/Theme Application/lock/project/src/LockEntry.cpp
@@ -0,0 +1,37 @@
+//
+// This file contains the Tizen application entry point.
+//
+#include <new>
+#include "$(baseName)App.h"
+
+using namespace Tizen::Base;
+using namespace Tizen::Base::Collection;
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif // __cplusplus
+
+//
+// The entry function of Tizen application called by the operating system.
+//
+_EXPORT_ int
+OspMain(int argc, char* pArgv[])
+{
+ AppLog("Application started.");
+ ArrayList args(SingleObjectDeleter);
+ args.Construct();
+ for (int i = 0; i < argc; i++)
+ {
+ args.Add(new (std::nothrow) String(pArgv[i]));
+ }
+
+ result r = Tizen::App::UiApp::Execute($(baseName)App::CreateInstance, &args);
+ TryLog(r == E_SUCCESS, "[%s] Application execution failed.", GetErrorMessage(r));
+ AppLog("Application finished.");
+
+ return static_cast< int >(r);
+}
+#ifdef __cplusplus
+}
+#endif // __cplusplus
diff --git a/Template/Tizen Native/Theme Application/lock/project/src/LockFrame.cpp b/Template/Tizen Native/Theme Application/lock/project/src/LockFrame.cpp
new file mode 100755
index 0000000..bda6874
--- /dev/null
+++ b/Template/Tizen Native/Theme Application/lock/project/src/LockFrame.cpp
@@ -0,0 +1,48 @@
+#include "$(baseName)Frame.h"
+#include "$(baseName)Form.h"
+#include <new>
+
+using namespace Tizen::Base;
+using namespace Tizen::Ui;
+using namespace Tizen::Ui::Controls;
+
+$(baseName)Frame::$(baseName)Frame(void)
+{
+}
+
+$(baseName)Frame::~$(baseName)Frame(void)
+{
+}
+
+result
+$(baseName)Frame::OnInitializing(void)
+{
+ // Create a form
+ $(baseName)Form* pForm = new (std::nothrow) $(baseName)Form();
+ result r = pForm->Initialize();
+
+ // Add the form to the frame
+ r = AddControl(*pForm);
+
+ // Set the current form
+ r = SetCurrentForm(*pForm);
+
+ // Draw the form
+ pForm->Invalidate(true);
+
+ // TODO:
+ // Add your frame initialization code here.
+ return r;
+}
+
+result
+$(baseName)Frame::OnTerminating(void)
+{
+ result r = E_SUCCESS;
+
+ // TODO:
+ // Add your frame termination code here.
+ return r;
+}
+
+
diff --git a/Template/Tizen Native/Theme Application/lock/project/src/MainForm.cpp b/Template/Tizen Native/Theme Application/lock/project/src/MainForm.cpp
new file mode 100755
index 0000000..8f465cd
--- /dev/null
+++ b/Template/Tizen Native/Theme Application/lock/project/src/MainForm.cpp
@@ -0,0 +1,59 @@
+#include "AppResourceId.h"
+#include "$(baseName)Form.h"
+
+using namespace Tizen::App;
+using namespace Tizen::Base;
+using namespace Tizen::Ui;
+using namespace Tizen::Ui::Controls;
+
+$(baseName)Form::$(baseName)Form(void)
+{
+}
+
+$(baseName)Form::~$(baseName)Form(void)
+{
+}
+
+bool
+$(baseName)Form::Initialize(void)
+{
+ Construct(IDL_FORM);
+ return true;
+}
+
+result
+$(baseName)Form::OnInitializing(void)
+{
+ result r = E_SUCCESS;
+
+ Button *pButton = static_cast<Button*>(GetControl(IDC_BUTTON1));
+ pButton->SetActionId(IDA_UNLOCK_BUTTON);
+ pButton->AddActionEventListener(*this);
+
+ // TODO:
+ // Add your initialization code here
+ return r;
+}
+
+result
+$(baseName)Form::OnTerminating(void)
+{
+ result r = E_SUCCESS;
+
+ // TODO:
+ // Add your termination code here
+ return r;
+}
+
+void
+$(baseName)Form::OnActionPerformed(const Tizen::Ui::Control& source, int actionId)
+{
+ // TODO:
+ // To unlock the screen, terminate the lock application.
+ if (actionId == IDA_UNLOCK_BUTTON)
+ {
+ UiApp* pApp = UiApp::GetInstance();
+ AppAssert(pApp);
+ pApp->Terminate();
+ }
+}
diff --git a/Template/Tizen Native/Theme Application/lock/sample.xml b/Template/Tizen Native/Theme Application/lock/sample.xml
new file mode 100644
index 0000000..d74f274
--- /dev/null
+++ b/Template/Tizen Native/Theme Application/lock/sample.xml
@@ -0,0 +1,68 @@
+<?xml version="1.0" encoding="utf-8"?>
+<template>
+
+ <slp-property>
+ <property-group>
+ <sample-name>Lock Application</sample-name>
+ <category>Application Template</category>
+ <sdk-version>1.00</sdk-version>
+ <project-type>org.tizen.nativecpp.buildArtefactType.app</project-type>
+ <sample-description>description.xml</sample-description>
+ </property-group>
+ </slp-property>
+
+ <process type="org.tizen.nativeappcommon.TizenCopyFolder">
+ <simple name="projectName" value="$(projectName)"/>
+ <simple name="folderPath" value="project"/>
+ <complex-array name="replaceableFiles">
+ <element>
+ <simple name="sourcePath" value="src/Lock.cpp"/>
+ <simple name="targetPath" value="src/$(baseName)App.cpp"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="src/LockEntry.cpp"/>
+ <simple name="targetPath" value="src/$(baseName)Entry.cpp"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="src/MainForm.cpp"/>
+ <simple name="targetPath" value="src/$(baseName)Form.cpp"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="src/LockFrame.cpp"/>
+ <simple name="targetPath" value="src/$(baseName)Frame.cpp"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="inc/Lock.h"/>
+ <simple name="targetPath" value="inc/$(baseName)App.h"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="inc/MainForm.h"/>
+ <simple name="targetPath" value="inc/$(baseName)Form.h"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="inc/LockFrame.h"/>
+ <simple name="targetPath" value="inc/$(baseName)Frame.h"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ <element>
+ <simple name="sourcePath" value="manifest.xml"/>
+ <simple name="targetPath" value="manifest.xml"/>
+ <simple name="replaceable" value = "true"/>
+ </element>
+ </complex-array>
+ </process>
+ <process type="org.tizen.nativecpp.SetDefaultFrameworks">
+ <simple name="projectName" value="$(projectName)"/>
+ <complex-array name="frameworkList">
+ <element>
+ <simple name="framework" value="osp"/>
+ </element>
+ </complex-array>
+ </process>
+</template>
diff --git a/Template/Tizen Native/Theme Application/lock/screenshot.png b/Template/Tizen Native/Theme Application/lock/screenshot.png
new file mode 100644
index 0000000..bcfc248
--- /dev/null
+++ b/Template/Tizen Native/Theme Application/lock/screenshot.png
Binary files differ