Handling Source adapter
[platform/framework/native/media.git] / src / FMedia_ICameraCoordinatorListener.h
1 //
2 // Open Service Platform
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
4 //
5 // Licensed under the Apache License, Version 2.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
8 //
9 //     http://www.apache.org/licenses/LICENSE-2.0
10 //
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
16 //
17
18 /**
19  * @file                        FMedia_ICameraCoordinatorListener.h
20  * @brief                       This is the header file for the %_ICameraCoordinatorListener interface.
21  *
22  * This header file contains the declarations of the %_ICameraCoordinatorListener interface.
23  */
24
25 #ifndef _FMEDIA_INTERNAL_CAMERA_COORDINATOR_LISTENER_H
26 #define _FMEDIA_INTERNAL_CAMERA_COORDINATOR_LISTENER_H
27
28 #include "FMedia_CameraTypes.h"
29
30 namespace Tizen { namespace Media
31 {
32
33 /**
34  * @interface   _ICameraCoordinatorListener
35  * @brief               This interface provides a listener that receives callbacks associated with the %_CameraCoordinator class.
36  */
37 class _ICameraCoordinatorListener
38 {
39 public:
40         /**
41         * This polymorphic destructor should be overridden if required. This way, the destructors of the derived classes are called when the destructor@n
42         * of this interface is called.
43         *
44         */
45         virtual ~_ICameraCoordinatorListener(void) {}
46
47         /**
48         * Called when the mode is prepared to change.
49         *
50         * @return               An error code
51         * @param[in]     mode           camera mode
52         */
53         virtual result OnCameraCoordinatorModeChangePrepared(_CameraMode mode) = 0;
54
55         /**
56         * Called when the mode is changed.
57         *
58         * @return               An error code
59         * @param[in]     mode           camera mode
60         */
61         virtual result OnCameraCoordinatorModeChanged(_CameraMode mode) = 0;
62
63         /**
64         * Called when the other module is removed
65         *
66         * @return               An error code
67         */
68         virtual result OnCameraCoordinatorOtherRemoved(void) = 0;
69
70 };
71
72 }}// Tizen::Media
73
74 #endif