Update privilege string, PackageAppInfo for wgt
[platform/framework/native/appfw.git] / src / app / FApp_AppControlEventArg.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_AppControlEventArg.h
20  * @brief       This is the header file of _AppControlEventArg class.
21  */
22
23 #ifndef _FAPP_INTERNAL_APP_CONTROL_EVENT_ARG_H_
24 #define _FAPP_INTERNAL_APP_CONTROL_EVENT_ARG_H_
25
26 #include <FBaseObject.h>
27 #include <FOspConfig.h>
28 #include <FAppTypes.h>
29 #include <FBaseRtIEventArg.h>
30
31 namespace Tizen { namespace Base { namespace Collection {
32 class IList;
33 class IMap;
34 }}}
35
36 namespace Tizen { namespace App
37 {
38
39 class _AppArg;
40
41 /**
42  * @class               _AppControlEventArg
43  * @brief
44  */
45 class _AppControlEventArg
46         : public Tizen::Base::Object
47         , public Tizen::Base::Runtime::IEventArg
48 {
49 public:
50         _AppControlEventArg(int reqId, _AppArg* p, int res)
51                 : __reqId(reqId)
52                 , __pArg(p)
53                 , __result(res)
54         {
55         }
56
57         virtual ~_AppControlEventArg(void);
58
59         int GetRequestId(void) const
60         {
61                 return __reqId;
62         }
63
64         _AppArg* GetAppArg(void) const
65         {
66                 return __pArg;
67         }
68
69         int GetResult(void) const
70         {
71                 return __result;
72         }
73
74 private:
75         _AppControlEventArg(const _AppControlEventArg& rhs);
76
77         _AppControlEventArg& operator =(const _AppControlEventArg& rhs);
78
79 private:
80         int __reqId;
81         _AppArg* __pArg;
82         int __result;
83 }; // _AppControlEventArg
84
85 /**
86  * @class               _NativeAppControlEventArg
87  * @brief
88  */
89 class _NativeAppControlEventArg
90         : public Tizen::Base::Object
91         , public Tizen::Base::Runtime::IEventArg
92 {
93 public:
94         _NativeAppControlEventArg(int reqId, int res, const Tizen::Base::Collection::IMap* pArgs);
95
96         virtual ~_NativeAppControlEventArg(void);
97
98         int GetRequestId(void) const
99         {
100                 return __reqId;
101         }
102
103         int GetResult(void) const
104         {
105                 return __result;
106         }
107
108         const Tizen::Base::Collection::IMap* GetArgs(void) const
109         {
110                 return __pArgs;
111         }
112
113 private:
114         int __reqId;
115         int __result;
116         Tizen::Base::Collection::IMap* __pArgs;
117 }; // _NativeAppControlEventArg
118
119 /**
120  * @class               _AppControlStartEventArg
121  * @brief
122  */
123 class _AppControlStartEventArg
124         : public Tizen::Base::Object
125         , public Tizen::Base::Runtime::IEventArg
126 {
127 public:
128         _AppControlStartEventArg(int reqId, const AppId& appId, const Tizen::Base::String& operationId)
129                 : __reqId(reqId)
130                 , __appId(appId)
131                 , __operationId(operationId)
132         {
133         }
134
135         virtual ~_AppControlStartEventArg(void)
136         {
137         }
138
139         int GetRequestId(void) const
140         {
141                 return __reqId;
142         }
143
144         AppId GetAppId(void) const
145         {
146                 return __appId;
147         }
148
149         Tizen::Base::String GetOperationId(void) const
150         {
151                 return __operationId;
152         }
153
154 private:
155         _AppControlStartEventArg(const _AppControlStartEventArg& rhs);
156
157         _AppControlStartEventArg& operator =(const _AppControlStartEventArg& rhs);
158
159 private:
160         int __reqId;
161         AppId __appId;
162         Tizen::Base::String __operationId;
163 }; // _AppControlStartEventArg
164
165 } } // Tizen::App
166
167 #endif // _FAPP_INTERNAL_APP_CONTROL_EVENT_ARG_H_