#include "atom/common/atom_command_line.h"
#include "base/logging.h"
#include "content/public/app/content_main.h"
+#include "tizen/common/app_db.h"
+#include "tizen/common/app_control.h"
+#include "tizen/common/constants.h"
namespace runtime {
void UiRuntime::OnAppControl(app_control_h app_control) {
LOG(ERROR) << "OnAppControl()";
+ std::unique_ptr<common::AppControl>
+ appcontrol(new common::AppControl(app_control));
+ common::AppDB* appdb = common::AppDB::GetInstance();
+ appdb->Set(kAppDBRuntimeSection, kAppDBRuntimeBundle,
+ appcontrol->encoded_bundle());
}
void UiRuntime::OnLanguageChanged(const std::string& language) {
return ui_app_main(_params->argc, const_cast<char**>(_params->argv), &ops, this);
}
-
-} //namespace
\ No newline at end of file
+} //namespace
'sources': [
'command_line.h',
'command_line.cc',
+ 'constants.h',
+ 'constants.cc',
'file_utils.h',
'file_utils.cc',
'string_utils.h',
--- /dev/null
+/*
+ * Copyright (c) 2018 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+//#include "tizen/common/constants.h"
+#include "constants.h"
+
+namespace runtime {
+
+const char kAppDBRuntimeSection[] = "Runtime";
+const char kAppDBRuntimeBundle[] = "encoded_bundle";
+
+} // namespace runtime
--- /dev/null
+/*
+ * Copyright (c) 2018 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+namespace runtime {
+
+extern const char kAppDBRuntimeSection[];
+extern const char kAppDBRuntimeBundle[];
+
+} // namespace runtime
+