Merge "Add a _LocalizedNumParser class and 4 static functions" into tizen_2.1
[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)
40                 : __reqId(reqId)
41                 , __pArgs(pArgs)
42         {
43         }
44
45         virtual ~_AppUserEventArg(void) {}
46
47         RequestId GetRequestId(void) const
48         {
49                 return __reqId;
50         }
51         Tizen::Base::Collection::IList* GetArgs(void) const
52         {
53                 return const_cast<Tizen::Base::Collection::IList*>( __pArgs );
54         }
55
56 private:
57         _AppUserEventArg(const _AppUserEventArg& value);
58
59         _AppUserEventArg& operator =(const _AppUserEventArg& source);
60
61 private:
62         RequestId __reqId;
63         const Tizen::Base::Collection::IList* __pArgs;
64 };
65
66
67 } } // Tizen::App
68
69 #endif // _FAPP_INTERNAL_APP_USER_EVENT_ARG_H_