IoTivity C++ SDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
NSMediaContents.h
Go to the documentation of this file.
1 //******************************************************************
2 //
3 // Copyright 2016 Samsung Electronics All Rights Reserved.
4 //
5 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
6 //
7 // Licensed under the Apache License, Version 2.0 (the "License");
8 // you may not use this file except in compliance with the License.
9 // You may obtain a copy of the License at
10 //
11 // http://www.apache.org/licenses/LICENSE-2.0
12 //
13 // Unless required by applicable law or agreed to in writing, software
14 // distributed under the License is distributed on an "AS IS" BASIS,
15 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 // See the License for the specific language governing permissions and
17 // limitations under the License.
18 //
19 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
20 
27 #ifndef _NS_MEDIA_CONTENTS_H_
28 #define _NS_MEDIA_CONTENTS_H_
29 
30 
31 #include <string>
32 #include "NSCommon.h"
33 
34 namespace OIC
35 {
36  namespace Service
37  {
43  {
44  public:
48  NSMediaContents() = default;
49 
55  NSMediaContents(::NSMediaContents *mediacontents);
56 
62  NSMediaContents(const std::string &iconImage)
63  : m_iconImage(iconImage)
64  {
65  }
66 
67 
71  ~NSMediaContents() = default;
72 
78  std::string getIconImage() const;
79 
85  void setIconImage(const std::string &iconImage);
86 
87  private:
88  std::string m_iconImage;
89 
90  };
91  }
92 }
93 #endif /* _NS_MEDIA_CONTENTS_H_ */
~NSMediaContents()=default
Destructor of NSMediaContents.
std::string getIconImage() const
This method is for getting icon image from the Notification service media contents.
NSMediaContents(const std::string &iconImage)
Constructor of NSMediaContents.
Definition: NSMediaContents.h:62
void setIconImage(const std::string &iconImage)
This method is for setting icon image for the Notification service media contents.
This class provides a set of APIs for Notification service Media Contents.
Definition: NSMediaContents.h:42
NSMediaContents()=default
Constructor of NSMediaContents.
This file provides APIs of Notification Service for common functions.