Dali 3D User Interface Engine
file-descriptor-monitor.h
Go to the documentation of this file.
1 #ifndef __DALI_INTERNAL_FILE_DESCRIPTOR_MONITOR_H__
2 #define __DALI_INTERNAL_FILE_DESCRIPTOR_MONITOR_H__
3 
4 /*
5  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  *
19  */
20 
21 // EXTERNAL INCLUDES
23 
24 namespace Dali
25 {
26 
27 namespace Integration
28 {
29 class Core;
30 }
31 
32 namespace Internal
33 {
34 
35 namespace Adaptor
36 {
37 
43 {
44 public:
45 
49  enum EventType
50  {
51  FD_NO_EVENT = 0x0,
52  FD_READABLE = 0x1, // For example when monitoring a socket, data is available to read from the socket receive buffer
53  FD_WRITABLE = 0x2, // For example when monitoring a socket space is available in socket send buffer
54  FD_ERROR = 0x4,
55  };
56 
90  FileDescriptorMonitor( int fileDescriptor, CallbackBase* callback, int eventBitmask );
91 
96 
97 private:
98 
99  // Undefined
100  FileDescriptorMonitor( const FileDescriptorMonitor& fileDescriptorMonitor );
101 
102  // Undefined
103  FileDescriptorMonitor& operator=( const FileDescriptorMonitor& fileDescriptorMonitor );
104 
105 private:
106  struct Impl;
107  Impl* mImpl;
108 };
109 
110 } // namespace Adaptor
111 
112 } // namespace Internal
113 
114 } // namespace Dali
115 
116 #endif // __DALI_INTERNAL_FILE_DESCRIPTOR_MONITOR_H__
Dali Docs Home
Read more about Dali