Remove the cache when language change event occurs
[platform/core/appfw/pkgmgr-info.git] / src / common / request_type.cc
index ae960d2..e80c500 100644 (file)
 
 namespace pkgmgr_common {
 
-const std::string& ReqTypeToString(ReqType type) {
-  static std::string convertArray[] = {
-      "GET_PKG_INFO"
+const char* ReqTypeToString(ReqType type) {
+  static const char* convertArray[] = {
+      "GET_PKG_INFO",
       "GET_APP_INFO",
       "SET_PKG_INFO",
       "SET_CERT_INFO",
       "GET_CERT_INFO",
       "GET_PKG_DEP_INFO",
-      "QUERY",
+      "READ_QUERY",
+      "WRITE_QUERY",
       "COMMAND",
+      "CREATE_DB",
+      "CREATE_CACHE",
+      "REMOVE_ALL_CACHE",
       "ERROR_REQ_TYPE"
   };
-  if (type <= ReqType::REQ_TYPE_NONE
-     || type >= ReqType::MAX)
+
+  if (type <= ReqType::REQ_TYPE_NONE || type >= ReqType::MAX)
     return convertArray[ReqType::MAX];
 
   return convertArray[type];