2 // Open Service Platform
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
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
9 // http://www.apache.org/licenses/LICENSE-2.0
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.
19 * @file FMedia_CamPtrUtil.h
20 * @brief This header file contains the declarations of the pointer utility fuctions for the camera and recorder.
24 #ifndef _FMEDIA_INTERNAL_CAM_PTR_UTIL_H_
25 #define _FMEDIA_INTERNAL_CAM_PTR_UTIL_H_
28 #include <FBaseColIList.h>
29 #include <FBaseColIListT.h>
30 #include <FGrpPixelFormat.h>
31 #include <FMediaTypes.h>
32 #include "FMedia_CameraTypes.h"
34 namespace Tizen { namespace Media
39 * @brief This class is utility for list pointer handling.
47 void operator() (Tizen::Base::Collection::IListT<camera_pixel_format_e>* pList) const
56 void operator() (Tizen::Base::Collection::IList* pList) const
60 pList->RemoveAll(true);
65 void operator() (Tizen::Base::Collection::IListT<int>* pList) const
74 void operator() (Tizen::Base::Collection::IListT<Tizen::Graphics::PixelFormat>* pList) const
83 void operator() (Tizen::Base::Collection::IListT<CodecType>* pList) const
92 void operator() (Tizen::Base::Collection::IListT<MediaContainerType>* pList) const
101 void operator() (Tizen::Base::Collection::IListT<_CameraDeviceType>* pList) const
111 static Remover remover;
117 _ListPtrUtil(const _ListPtrUtil& rhs);
118 _ListPtrUtil& operator =(const _ListPtrUtil& rhs);