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
16 #include "rmi/app-proxy.h"
20 AppProxy::AppProxy(KrateControlContext& ctx)
29 AppProxy::AppInfo AppProxy::getAppInfo(const std::string& name, const std::string& appid)
32 return context->methodCall<AppProxy::AppInfo>("AppProxy::getAppInfo", name, appid);
33 } catch (runtime::Exception& e) {}
34 return AppProxy::AppInfo();
37 int AppProxy::createIterator(const std::string& krate)
40 return context->methodCall<int>("AppProxy::createIterator", krate);
41 } catch (runtime::Exception& e) {}
45 AppProxy::AppInfo AppProxy::getIteratorValue(int iterator)
48 return context->methodCall<AppProxy::AppInfo>("AppProxy::getIteratorValue", iterator);
49 } catch (runtime::Exception& e) {}
50 return AppProxy::AppInfo();
53 bool AppProxy::nextIterator(int iterator)
56 return context->methodCall<bool>("AppProxy::nextIterator", iterator);
57 } catch (runtime::Exception& e) {}
61 int AppProxy::destroyIterator(int iterator)
64 return context->methodCall<int>("AppProxy::destroyIterator", iterator);
65 } catch (runtime::Exception& e) {}
69 int AppProxy::launch(const std::string& name, const AppProxy::Bundle& bundle)
72 return context->methodCall<int>("AppProxy::launch", name, bundle);
73 } catch (runtime::Exception& e) {
78 int AppProxy::resume(const std::string& name, const std::string& appid)
81 return context->methodCall<int>("AppProxy::resume", name, appid);
82 } catch (runtime::Exception& e) {
87 int AppProxy::terminate(const std::string& name, const std::string& appid)
90 return context->methodCall<int>("AppProxy::terminate", name, appid);
91 } catch (runtime::Exception& e) {
96 bool AppProxy::isRunning(const std::string& name, const std::string& appid)
99 return context->methodCall<bool>("AppProxy::isRunning", name, appid);
100 } catch (runtime::Exception& e) {