Merge "move redundant logic to server" into tizen_2.2
[platform/framework/native/appfw.git] / src / io / FIo_FileEvent.h
1 //
2 // Copyright (c) 2013 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        FIo_FileEvent.h
19  * @brief       This is the header file for the _FileEvent class.
20  *
21  * This header file contains the declarations of the _FileEvent class.
22  */
23
24 #ifndef _FIO_INTERNAL_FILE_EVENT_H_
25 #define _FIO_INTERNAL_FILE_EVENT_H_
26
27 #include <FBaseRtIEventListener.h>
28 #include <FBaseRtIEventArg.h>
29 #include <FBaseRt_Event.h>
30
31 namespace Tizen { namespace Io
32 {
33
34 class _FileEventArg
35         : public Tizen::Base::Runtime::IEventArg
36 {
37
38 public:
39         _FileEventArg(unsigned long event, Tizen::Base::String path, unsigned int eventId)
40                 : __event(event)
41                 , __path(path)
42                 , __eventId(eventId)
43         {
44         }
45         unsigned long __event;
46         Tizen::Base::String __path;
47         unsigned int __eventId;
48 }; // _FileEventArg
49
50 class _FileEvent
51         : public Tizen::Base::Runtime::_Event
52 {
53
54 public:
55         result Construct(void);
56
57 protected:
58         virtual void FireImpl(Tizen::Base::Runtime::IEventListener& listener, const Tizen::Base::Runtime::IEventArg& arg);
59
60 }; // _FileEvent
61
62 }} // Tizen::Io
63
64 #endif // _FIO_INTERNAL_FILE_EVENT_H_
65