Tizen 2.1 base
[apps/osp/MyFiles.git] / src / MfOtherMediaMetaData.cpp
1 //
2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
3 //
4 // Licensed under the Flora License, Version 1.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://floralicense.org/license/
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  * @file: MfOtherMediaMetaData.cpp
19  * @brief: This file contains the implementation of OtherMediaMetaData class,
20  * which acts as a Other Meta Data Provider.
21  */
22
23 #include "MfOtherMediaMetaData.h"
24
25 using namespace Tizen::Base;
26
27 OtherMediaMetaData::OtherMediaMetaData(void)
28         : __pFileFormat(null)
29 {
30         //empty implementation
31 }
32
33 OtherMediaMetaData::~OtherMediaMetaData(void)
34 {
35         AppLogDebug("Entry");
36         if (__pFileFormat != null)
37         {
38                 delete __pFileFormat;
39                 __pFileFormat = null;
40         }
41         AppLogDebug("Exit %s", GetErrorMessage(GetLastResult()));
42 }
43
44 OtherMediaMetaData&
45 OtherMediaMetaData::operator =(const OtherMediaMetaData& otherMediaMetaData)
46 {
47         AppLogDebug("Entry");
48         if (this != &otherMediaMetaData)
49         {
50                 __pFileFormat = otherMediaMetaData.__pFileFormat;
51         }
52         AppLogDebug("Exit %s", GetErrorMessage(GetLastResult()));
53         return *this;
54 }
55
56 OtherMediaMetaData::OtherMediaMetaData(const OtherMediaMetaData& otherMediaMetaData)
57 {
58         __pFileFormat = otherMediaMetaData.__pFileFormat;
59 }
60
61 void
62 OtherMediaMetaData::SetFileFormat(String* pFileFormat)
63 {
64         __pFileFormat = pFileFormat;
65 }
66
67 String*
68 OtherMediaMetaData::GetFileFormat(void)
69 {
70         return __pFileFormat;
71 }