Rename a pamareter to be consistant through the APIs 19/118919/2
authorMu-Woong Lee <muwoong.lee@samsung.com>
Tue, 14 Mar 2017 12:46:16 +0000 (21:46 +0900)
committerMu-Woong Lee <muwoong.lee@samsung.com>
Tue, 14 Mar 2017 13:10:26 +0000 (06:10 -0700)
Change-Id: I5338edc46a0f2bbde50badb1cb2e1ab51a6a6f80
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
include/ContextStore.h
src/client-dummy/ContextStore.cpp
src/client/ContextStore.cpp
src/client/PlatformManagedStore.cpp
src/client/PlatformManagedStore.h

index 214c988..cf6c098 100644 (file)
@@ -30,7 +30,7 @@ namespace ctx {
 
                virtual int insert(const std::string& columns, Tuple* record);
                virtual int insert(const std::string& columns, std::vector<Tuple*>& records);
-               virtual int retrieve(const ContextStoreSearchQuery& query, std::vector<Tuple*>& result);
+               virtual int retrieve(const ContextStoreSearchQuery& query, std::vector<Tuple*>& records);
                virtual int remove(const std::string& selection);
 
        protected:
index 3ac2af0..3f14d37 100644 (file)
@@ -37,7 +37,7 @@ int ContextStore::insert(const std::string& columns, std::vector<Tuple*>& record
        return E_SUPPORT;
 }
 
-int ContextStore::retrieve(const ContextStoreSearchQuery& query, std::vector<Tuple*>& result)
+int ContextStore::retrieve(const ContextStoreSearchQuery& query, std::vector<Tuple*>& records)
 {
        return E_SUPPORT;
 }
index 3ac2af0..3f14d37 100644 (file)
@@ -37,7 +37,7 @@ int ContextStore::insert(const std::string& columns, std::vector<Tuple*>& record
        return E_SUPPORT;
 }
 
-int ContextStore::retrieve(const ContextStoreSearchQuery& query, std::vector<Tuple*>& result)
+int ContextStore::retrieve(const ContextStoreSearchQuery& query, std::vector<Tuple*>& records)
 {
        return E_SUPPORT;
 }
index ed913af..57f41c4 100644 (file)
@@ -59,7 +59,7 @@ int PlatformManagedStore::insert(const std::string& columns, std::vector<Tuple*>
        return __proxy->call(METHOD_INSERT, param);
 }
 
-int PlatformManagedStore::retrieve(const ContextStoreSearchQuery& query, std::vector<Tuple*>& result)
+int PlatformManagedStore::retrieve(const ContextStoreSearchQuery& query, std::vector<Tuple*>& records)
 {
        IF_FAIL_RETURN(query.valid(), E_PARAM);
 
@@ -74,7 +74,7 @@ int PlatformManagedStore::retrieve(const ContextStoreSearchQuery& query, std::ve
        GVariant* vals = NULL;
        g_variant_get(outParam, "(v)", &vals);
 
-       result = Tuple::buildFrom(vals);
+       records = Tuple::buildFrom(vals);
        return E_NONE;
 }
 
index c5d0786..77c3d38 100644 (file)
@@ -34,7 +34,7 @@ namespace ctx {
 
                int insert(const std::string& columns, Tuple* record);
                int insert(const std::string& columns, std::vector<Tuple*>& records);
-               int retrieve(const ContextStoreSearchQuery& query, std::vector<Tuple*>& result);
+               int retrieve(const ContextStoreSearchQuery& query, std::vector<Tuple*>& records);
                int remove(const std::string& selection);
 
        private: