change Copyright headers, change line endings to Unix format
[platform/core/system/swap-probe.git] / probe_ui / osp_frameani.cpp
1 /*
2  *  DA probe
3  *
4  * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Contact: 
7  *
8  * Jaewon Lim <jaewon81.lim@samsung.com>
9  * Woojin Jung <woojin2.jung@samsung.com>
10  * Juyoung Kim <j0.kim@samsung.com>
11  * 
12  * This library is free software; you can redistribute it and/or modify it under
13  * the terms of the GNU Lesser General Public License as published by the
14  * Free Software Foundation; either version 2.1 of the License, or (at your option)
15  * any later version.
16  * 
17  * This library is distributed in the hope that it will be useful, but WITHOUT ANY
18  * WARRANTY; without even the implied warranty of MERCHANTABILITY or
19  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
20  * License for more details.
21  *
22  * You should have received a copy of the GNU Lesser General Public License
23  * along with this library; if not, write to the Free Software Foundation, Inc., 51
24  * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
25  *
26  * Contributors:
27  * - S-Core Co., Ltd
28  * 
29  */
30
31 #include "daprobe.h"
32 #include "dahelper.h"
33 #include "osp_frameani.h"
34
35 DAFrameAnimationEventListener DAFrameAnimationEventListener::rInstance;
36
37 DAFrameAnimationEventListener::DAFrameAnimationEventListener()
38 {
39 }
40
41 DAFrameAnimationEventListener::~DAFrameAnimationEventListener()
42 {
43 }
44
45 void DAFrameAnimationEventListener::OnFormTransitionAnimationFinished(FrameAnimator &source, Frame &frame, Form &form1, Form &form2)
46 {
47         probeBlockStart();
48         SCREENSHOT_SET();
49 //      SCREENSHOT_DONE();
50         probeBlockEnd();
51 }
52
53 void DAFrameAnimationEventListener::OnFormTransitionAnimationStarted(FrameAnimator &source, Frame &frame, Form &form1, Form &form2)
54 {
55         probeBlockStart();
56         SCREENSHOT_UNSET();
57         probeBlockEnd();
58 }
59
60 void DAFrameAnimationEventListener::OnFormTransitionAnimationStopped(FrameAnimator &source, Frame &frame, Form &form1, Form &form2)
61 {
62         probeBlockStart();
63         SCREENSHOT_SET();
64 //      SCREENSHOT_DONE();
65         probeBlockEnd();
66 }
67
68 DAFrameAnimationEventListener& DAFrameAnimationEventListener::GetInstance(void)
69 {
70         return rInstance;
71 }
72
73 IFrameAnimatorEventListener& GetFrameAnimatorEventListener()
74 {
75         DAFrameAnimationEventListener& listener = DAFrameAnimationEventListener::GetInstance();
76         return static_cast<IFrameAnimatorEventListener&>(listener);
77 }
78