Fix action_model.hh, action_parameter.hh
authorSangyoon Jang <jeremy.jang@samsung.com>
Thu, 13 Feb 2025 06:17:44 +0000 (15:17 +0900)
committer장상윤/Tizen Platform Lab(SR)/삼성전자 <jeremy.jang@samsung.com>
Thu, 13 Feb 2025 06:44:02 +0000 (15:44 +0900)
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
src/common/action_model.cc [new file with mode: 0644]
src/common/action_model.h [new file with mode: 0644]
src/common/action_parameter.cc [new file with mode: 0644]
src/common/action_parameter.h [new file with mode: 0644]
src/common/model/action_model.cc [deleted file]
src/common/model/action_model.h [deleted file]
src/common/model/action_parameter.cc [deleted file]
src/common/model/action_parameter.h [deleted file]

diff --git a/src/common/action_model.cc b/src/common/action_model.cc
new file mode 100644 (file)
index 0000000..f89ceee
--- /dev/null
@@ -0,0 +1,21 @@
+/*
+ * Copyright (c) 2024 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 "common/action_model.h"
+
+namespace common {
+
+}  // namespace common
diff --git a/src/common/action_model.h b/src/common/action_model.h
new file mode 100644 (file)
index 0000000..2e2bf39
--- /dev/null
@@ -0,0 +1,41 @@
+/*
+ * Copyright (c) 2024 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef COMMON_ACTION_MODEL_H_
+#define COMMON_ACTION_MODEL_H_
+
+#include <vector>
+#include "common/action_parameter.h"
+
+namespace common {
+
+enum class ActionType {
+  AppControl = 0,
+  Plugin = 1
+};
+
+class ActionModel {
+ public:
+  ActionModel() = default;
+  ~ActionModel() = default;
+
+ private:
+  std::vector<ActionParameter> params_;
+};
+
+}   // namespace common
+
+#endif  // COMMON_ACTION_MODEL_H_
diff --git a/src/common/action_parameter.cc b/src/common/action_parameter.cc
new file mode 100644 (file)
index 0000000..4714e57
--- /dev/null
@@ -0,0 +1,21 @@
+/*
+ * Copyright (c) 2024 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 "common/action_parameter.h"
+
+namespace common {
+
+}  // namespace common
diff --git a/src/common/action_parameter.h b/src/common/action_parameter.h
new file mode 100644 (file)
index 0000000..1b70b0e
--- /dev/null
@@ -0,0 +1,43 @@
+/*
+ * Copyright (c) 2024 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef COMMON_ACTION_PARAMETER_H_
+#define COMMON_ACTION_PARAMETER_H_
+
+#include <string>
+
+namespace common {
+
+enum class ParameterType {
+  IntType = 1,
+  StringType = 0
+};
+
+class ActionParameter {
+ public:
+  ActionParameter() = default;
+  ~ActionParameter();
+
+ private:
+  ParameterType type_;
+  std::string name_;
+  std::string description_;
+  bool is_required_;
+};
+
+}   // namespace common
+
+#endif  // COMMON_ACTION_PARAMETER_H_
diff --git a/src/common/model/action_model.cc b/src/common/model/action_model.cc
deleted file mode 100644 (file)
index d8ce64b..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-/*
- * Copyright (c) 2024 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 "action_model.h"
-
-namespace action {
-
-class ActionModel {
-
-}
-
-}
diff --git a/src/common/model/action_model.h b/src/common/model/action_model.h
deleted file mode 100644 (file)
index 8b30007..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- * Copyright (c) 2024 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#ifndef MODEL_ACTION_MODEL_H_
-#define MODEL_ACTION_MODEL_H_
-
-#include <vector>
-#include "action_parameter.h"
-namespace action {
-
-enum class ActionType {
-  AppControl = 0,
-  Plugin = 1
-}
-
-class ActionModel {
- public:
-  ActionModel() = default;
-  ~ActionModel() = default;
-
- private:
-  std::vector<ActionParameter> params_;
-}
-
-}   // namespace action
-
-#endif  // MODEL_ACTION_MODEL_H_
diff --git a/src/common/model/action_parameter.cc b/src/common/model/action_parameter.cc
deleted file mode 100644 (file)
index 3fb7901..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-/*
- * Copyright (c) 2024 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 "action_parameter.h"
-
-namespace action {
-
-class ActionParameter {
-
-}
-
-}
diff --git a/src/common/model/action_parameter.h b/src/common/model/action_parameter.h
deleted file mode 100644 (file)
index d94c9e4..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * Copyright (c) 2024 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#ifndef MODEL_ACTION_MODEL_H_
-#define MODEL_ACTION_MODEL_H_
-
-#include "action_parameter.h"
-
-namespace action {
-
-enum class ParameterType {
-  IntType = 1,
-  StringType = 0
-}
-
-class ActionParameter {
- public:
-  ActionParameter() = default;
-  ~ActionParameter();
-
- private:
-  ParameterType type_;
-  std::string name_;
-  std::string description_;
-  bool is_required_;
-}
-
-
-
-}   // namespace action
-
-#endif  // MODEL_ACTION_MODEL_H_