2 * Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License
17 #include "rmi/manager.h"
21 Manager::Manager(KrateControlContext& ctx) :
30 int Manager::createKrate(const std::string& name, const std::string& setupWizAppid)
33 return context->methodCall<int>("Manager::createKrate", name, setupWizAppid);
34 } catch (runtime::Exception& e) {
39 int Manager::removeKrate(const std::string& name)
42 return context->methodCall<int>("Manager::removeKrate", name);
43 } catch (runtime::Exception& e) {
48 int Manager::lockKrate(const std::string& name)
51 return context->methodCall<int>("Manager::lockKrate", name);
52 } catch (runtime::Exception& e) {
57 int Manager::unlockKrate(const std::string& name)
60 return context->methodCall<int>("Manager::unlockKrate", name);
61 } catch (runtime::Exception& e) {
66 int Manager::getKrateState(const std::string& name)
69 return context->methodCall<int>("Manager::getKrateState", name);
70 } catch (runtime::Exception& e) {
75 std::vector<std::string> Manager::getKrateList(int state)
77 std::vector<std::string> empty;
79 return context->methodCall<std::vector<std::string>>("Manager::getKrateList", state);
80 } catch (runtime::Exception& e) {
85 int Manager::resetKratePassword(const std::string& name, const std::string& newPassword)
88 return context->methodCall<int>("Manager::resetKratePassword", name, newPassword);
89 } catch (runtime::Exception& e) {