2 * Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 #ifndef __SLIDER_WIDGET_H__
18 #define __SLIDER_WIDGET_H__
22 public IMusicControllerListener,
23 public IMouseMoveListener,
24 public IChangedListener {
26 struct SSliderWidget *m;
29 static Eina_Bool sm_CbUpdateSlider(void *dt);
30 Eina_Bool m_OnUpdateSlider(void);
32 bool m_AddSlider(void);
33 void m_RemoveTimer(void);
35 void m_UpdateSongInfo(void);
39 IMouseMoveListener(this),
40 IChangedListener(this),
42 virtual ~CSliderWidget() {}
44 bool Create(Evas_Object *eoParent);
45 virtual void Destroy(void);
47 Evas_Object* Base(void);
51 //! This function is invoked when playback is complete.
52 virtual void OnComplete(void);
53 //! This function is invoked when new song is played.
54 virtual void OnStartPlayback(void);
56 virtual void OnStopPlayback(void);
57 //! This function is invoked when playback is paused.
58 virtual void OnPausePlayback(void);
59 //! This function is invoked when playback is resumed.
60 virtual void OnResumePlayback(void);
62 virtual void OnPosition(int milsec);
64 virtual void OnChanged(int id, Evas_Object *obj);
65 virtual void OnMouseMove(int id, Evas *e, Evas_Object *obj, Evas_Event_Mouse_Move *ev);
68 #endif // __PLAYBACK_VIEW_H__