Add AppResourceId to DynamicBox Viewer tizen
authorkeonpyo.kong <keonpyo.kong@samsung.com>
Thu, 26 Sep 2013 02:24:06 +0000 (11:24 +0900)
committerkeonpyo.kong <keonpyo.kong@samsung.com>
Thu, 26 Sep 2013 02:24:06 +0000 (11:24 +0900)
Change-Id: Ic58bce794ed798b5e949f313bec18f4a1fa1270c
Signed-off-by: keonpyo.kong <keonpyo.kong@samsung.com>
project/inc/AppResourceId.h [new file with mode: 0644]
project/src/AppResourceId.cpp [new file with mode: 0644]
project/src/DynamicBoxViewerMainForm.cpp
project/src/ViewForm.cpp

diff --git a/project/inc/AppResourceId.h b/project/inc/AppResourceId.h
new file mode 100644 (file)
index 0000000..d1f347b
--- /dev/null
@@ -0,0 +1,24 @@
+//
+// Tizen C++ SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora 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://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+#ifndef _APP_RESOURCE_ID_H_
+#define _APP_RESOURCE_ID_H_
+
+extern const wchar_t* IDF_FORM;
+extern const wchar_t* IDF_VIEW_FORM;
+
+#endif // _APP_RESOURCE_ID_H_
diff --git a/project/src/AppResourceId.cpp b/project/src/AppResourceId.cpp
new file mode 100644 (file)
index 0000000..f9b1a3f
--- /dev/null
@@ -0,0 +1,21 @@
+//
+// Tizen C++ SDK
+// Copyright (c) 2012 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Flora 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://floralicense.org/license/
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an AS IS BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+#include "AppResourceId.h"
+
+const wchar_t* IDF_FORM = L"IDF_FORM";
+const wchar_t* IDF_VIEW_FORM = L"IDF_VIEW_FORM";
index 2ddb2d1..dc85727 100644 (file)
@@ -20,6 +20,7 @@
 #include <FShell.h>
 #include "DynamicBoxViewerMainForm.h"
 #include "DynamicBoxViewerFormFactory.h"
+#include "AppResourceId.h"
 
 using namespace Tizen::Base;
 using namespace Tizen::Base::Collection;
@@ -76,7 +77,7 @@ DynamicBoxViewerMainForm::~DynamicBoxViewerMainForm(void)
 bool
 DynamicBoxViewerMainForm::Initialize(void)
 {
-       Construct(L"IDF_FORM");
+       Construct(IDF_FORM);
 
        return true;
 }
index c8fbaa2..1ace7ae 100644 (file)
@@ -22,6 +22,7 @@
 #include <FShellAppWidgetProviderInfo.h>
 #include <FShellAppWidgetSizeInfo.h>
 #include "ViewForm.h"
+#include "AppResourceId.h"
 
 using namespace std;
 using namespace Tizen::Base;
@@ -244,7 +245,7 @@ ViewForm::~ViewForm(void)
 bool
 ViewForm::Initialize()
 {
-       Form::Construct(L"IDF_VIEW_FORM");
+       Form::Construct(IDF_VIEW_FORM);
 
        return true;
 }