Synchronize automated tests with other repos
[platform/core/uifw/dali-core.git] / dali / internal / event / actor-attachments / actor-attachment-impl.cpp
1 /*
2  * Copyright (c) 2014 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 // CLASS HEADER
19 #include <dali/internal/event/actor-attachments/actor-attachment-impl.h>
20
21 namespace Dali
22 {
23
24 namespace Internal
25 {
26
27 bool ActorAttachment::OnStage() const
28 {
29   return mIsOnStage;
30 }
31
32 /**
33  * This method is called by the parent actor.
34  */
35 void ActorAttachment::Connect()
36 {
37   mIsOnStage = true;
38
39   // Notification for derived classes
40   OnStageConnection();
41 }
42
43 /**
44  * This method is called by the parent actor.
45  */
46 void ActorAttachment::Disconnect()
47 {
48   // Notification for derived classes
49   OnStageDisconnection();
50
51   mIsOnStage = false;
52 }
53
54 ActorAttachment::ActorAttachment( EventThreadServices& eventThreadServices )
55 : mEventThreadServices( eventThreadServices ),
56   mIsOnStage( false )
57 {
58 }
59
60 ActorAttachment::~ActorAttachment()
61 {
62 }
63
64 } // namespace Internal
65
66 } // namespace Dali