sync with tizen_2.0
[platform/framework/native/appfw.git] / src / app / FApp_ConditionManagerProxy.h
1 //
2 // Open Service Platform
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
4 //
5 // Licensed under the Apache License, Version 2.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
8 //
9 //     http://www.apache.org/licenses/LICENSE-2.0
10 //
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
16 //
17
18 /**
19  * @file        FApp_ConditionManagerProxy.h
20  * @brief       This is the header file of the _ConditionManagerProxy class.
21  */
22
23 #ifndef _FAPP_INTERNAL_CONDITION_MANAGER_PROXY_H_
24 #define _FAPP_INTERNAL_CONDITION_MANAGER_PROXY_H_
25
26 #include <FBaseObject.h>
27 #include <FBaseString.h>
28 #include <FAppTypes.h>
29 #include <FAppAppManager.h>
30
31 #include "FApp_Types.h"
32
33 namespace Tizen { namespace Io { class _IpcClient; } }
34
35 namespace Tizen { namespace App
36 {
37
38 /**
39  * @class        _ConditionManagerProxy
40  * @brief
41  * @since 2.1
42  */
43 class _ConditionManagerProxy
44 {
45 public:
46         _ConditionManagerProxy(void);
47
48         ~_ConditionManagerProxy(void);
49
50         result Construct(void);
51
52         result RegisterAppLaunch(const AppId& appId, const Tizen::Base::String& executableName, const Tizen::Base::String& condition, const Tizen::Base::Collection::IList* pArguments, AppManager::LaunchOption option);
53
54         result UnregisterAppLaunch(const AppId& appId, const Tizen::Base::String& executableName, const Tizen::Base::String* pCondition);
55
56         bool IsAppLaunchRegistered(const AppId& appId, const Tizen::Base::String& executableName, const Tizen::Base::String* pCondition = null) const;
57
58 private:
59         _ConditionManagerProxy(const _ConditionManagerProxy& rhs);
60
61         _ConditionManagerProxy& operator =(const _ConditionManagerProxy& rhs);
62
63 private:
64         Tizen::Io::_IpcClient* __pIpcClient;
65
66 }; // _ConditionManagerProxy
67
68 } } // Tizen::App
69
70 #endif // _FAPP_INTERNAL_CONDITION_MANAGER_PROXY_H_