Dali 3D User Interface Engine
indicator-interface.h
Go to the documentation of this file.
1 #ifndef __DALI_INTERNAL_BASE_INDICATOR_INTERFACE_H__
2 #define __DALI_INTERNAL_BASE_INDICATOR_INTERFACE_H__
3 
4 /*
5  * Copyright (c) 2015 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 // INTERNAL INCLUDES
25 #include <window.h>
26 
27 namespace Dali
28 {
29 namespace Internal
30 {
31 namespace Adaptor
32 {
33 
34 class Adaptor;
35 
42 {
43 public:
44 
48  enum Type
49  {
53  };
54 
55 
56 public:
57 
61  class Observer
62  {
63  public:
68  virtual void IndicatorTypeChanged( Type type ) = 0;
69 
74  virtual void IndicatorClosed(IndicatorInterface* indicator) = 0;
75 
80  virtual void IndicatorVisibilityChanged( bool isVisible ) = 0;
81  };
82 
83 
84 public:
85 
90 
94  virtual ~IndicatorInterface() {}
95 
100  virtual void SetAdaptor(Adaptor* adaptor) = 0;
101 
108  virtual Dali::Actor GetActor() = 0;
109 
114  virtual void Open( Dali::Window::WindowOrientation orientation ) = 0;
115 
122  virtual void Close() = 0;
123 
128  virtual void SetOpacityMode( Dali::Window::IndicatorBgOpacity mode ) = 0;
129 
135  virtual void SetVisible( Dali::Window::IndicatorVisibleMode visibleMode, bool forceUpdate = false ) = 0;
136 
141  virtual bool IsConnected() = 0;
142 
151  virtual bool SendMessage( int messageDomain, int messageId, const void *data, int size ) = 0;
152 
153 
154 };
155 
156 } // Adaptor
157 } // Internal
158 } // Dali
159 
160 #endif
Dali Docs Home
Read more about Dali