3ae97e5cd4f170bac41010f39e3b576ceb073369
[platform/framework/native/appfw.git] / src / base / runtime / FBaseRt_EventDrivenThreadEventArg.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        FBaseRt_EventDrivenThreadEventArg.h
19  * @brief       This is the header file for the _EventDrivenThreadEventArg class.
20  *
21  * This file contains the declarations of _EventDrivenThreadEventArg.
22  */
23
24 #ifndef _FBASERT_INTERNAL_EVENT_DRIVEN_THREAD_EVENT_ARG_H_
25 #define _FBASERT_INTERNAL_EVENT_DRIVEN_THREAD_EVENT_ARG_H_
26
27 #include <FBaseObject.h>
28 #include <FBaseColIList.h>
29 #include "FBaseRtIEventArg.h"
30
31
32 namespace Tizen { namespace Base { namespace Runtime
33 {
34
35 enum _EventDrivenTrheadEventType
36 {
37         EVENT_DRIVEN_THREAD_EVENT_TYPE_USER_EVENT,
38         EVENT_DRIVEN_THREAD_EVENT_TYPE_STOP
39 };
40
41 class _EventDrivenThreadEventArg
42         : public Tizen::Base::Object
43         , public IEventArg
44 {
45 public:
46         _EventDrivenThreadEventArg(_EventDrivenTrheadEventType type, RequestId reqId, const Tizen::Base::Collection::IList* pArgs);
47         virtual ~_EventDrivenThreadEventArg(void);
48
49         RequestId GetRequestId(void) const;
50         Tizen::Base::Collection::IList* GetArgs(void) const;
51         _EventDrivenTrheadEventType GetType(void) const;
52
53 private:
54         _EventDrivenTrheadEventType __type;
55         RequestId __reqId;
56         const Tizen::Base::Collection::IList* __pArgs;
57 };
58
59
60 } } } // Tizen::Runtime
61
62
63 #endif