Merge "Update deprecated libprivilege-control API functions." into tizen
[platform/framework/native/appfw.git] / src / app / inc / FApp_AppUserEventArg.h
1 //
2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
3 //
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
7 //
8 //     http://www.apache.org/licenses/LICENSE-2.0
9 //
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.
15 //
16
17 /**
18  * @file        FApp_AppUserEventArg.h
19  * @brief       This is the header file for the _AppUserEventArg class.
20  *
21  * This file contains the declarations of _AppUserEventArg.
22  */
23
24 #ifndef _FAPP_INTERNAL_APP_USER_EVENT_ARG_H_
25 #define _FAPP_INTERNAL_APP_USER_EVENT_ARG_H_
26
27 #include <FBaseObject.h>
28 #include <FBaseColIList.h>
29 #include <FBaseRtIEventArg.h>
30
31 namespace Tizen { namespace App
32 {
33
34 class _AppUserEventArg
35         : public Tizen::Base::Object
36         , public Tizen::Base::Runtime::IEventArg
37 {
38 public:
39         _AppUserEventArg(RequestId reqId, const Tizen::Base::Collection::IList* pArgs, bool isPublic)
40                 : __reqId(reqId)
41                 , __pArgs(pArgs)
42                 , __isPublic(isPublic)
43         {
44         }
45
46         virtual ~_AppUserEventArg(void) {}
47
48         RequestId GetRequestId(void) const
49         {
50                 return __reqId;
51         }
52
53         Tizen::Base::Collection::IList* GetArgs(void) const
54         {
55                 return const_cast<Tizen::Base::Collection::IList*>(__pArgs);
56         }
57
58         bool IsPublic(void) const
59         {
60                 return __isPublic;
61         }
62
63 private:
64         _AppUserEventArg(const _AppUserEventArg& value);
65
66         _AppUserEventArg& operator =(const _AppUserEventArg& source);
67
68 private:
69         const RequestId __reqId;
70         const Tizen::Base::Collection::IList* __pArgs;
71         const bool __isPublic;
72 };
73
74
75 } } // Tizen::App
76
77 #endif // _FAPP_INTERNAL_APP_USER_EVENT_ARG_H_