Ginga  0.13.6.1771-df200
The iTV middleware.
NclMedia.h
Go to the documentation of this file.
1 /* Copyright (C) 2006-2017 PUC-Rio/Laboratorio TeleMidia
2 
3 This file is part of Ginga (Ginga-NCL).
4 
5 Ginga is free software: you can redistribute it and/or modify it
6 under the terms of the GNU General Public License as published by
7 the Free Software Foundation, either version 2 of the License, or
8 (at your option) any later version.
9 
10 Ginga is distributed in the hope that it will be useful, but WITHOUT
11 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
13 License for more details.
14 
15 You should have received a copy of the GNU General Public License
16 along with Ginga. If not, see <http://www.gnu.org/licenses/>. */
17 
18 #ifndef NCL_MEDIA_H
19 #define NCL_MEDIA_H
20 
21 #include "NclNode.h"
22 
24 
25 class NclMediaRefer;
26 class NclMedia: public NclNode
27 {
28 public:
29  NclMedia (NclDocument *, const string &, bool);
30  ~NclMedia ();
31 
32  bool isSettings ();
33 
34  void setMimeType (const string &);
35  string getMimeType ();
36 
37  string getSrc ();
38  void setSrc (const string &);
39 
41  const set<NclMediaRefer *> *getInstSameInstances ();
42 
43 private:
45  string _src;
46  string _mimetype;
47  set<NclMediaRefer *> _instances;
48 };
49 
51 
52 #endif // NCL_MEDIA_H
string getSrc()
Definition: NclMedia.cpp:58
Definition: NclDocument.h:25
Definition: NclMediaRefer.h:27
void addSameInstance(NclMediaRefer *)
Definition: NclMedia.cpp:92
string _src
Definition: NclMedia.h:45
string _mimetype
Definition: NclMedia.h:46
#define GINGA_NAMESPACE_END
Definition: aux-ginga.h:62
bool isSettings()
Definition: NclMedia.cpp:40
bool _isSettings
Definition: NclMedia.h:44
const set< NclMediaRefer * > * getInstSameInstances()
Definition: NclMedia.cpp:99
string getMimeType()
Definition: NclMedia.cpp:46
#define GINGA_NAMESPACE_BEGIN
Definition: aux-ginga.h:61
~NclMedia()
Definition: NclMedia.cpp:34
void setMimeType(const string &)
Definition: NclMedia.cpp:52
Definition: NclMedia.h:26
NclMedia(NclDocument *, const string &, bool)
Definition: NclMedia.cpp:26
void setSrc(const string &)
Definition: NclMedia.cpp:64
Definition: NclNode.h:26
set< NclMediaRefer * > _instances
Definition: NclMedia.h:47