Ginga  0.13.6.1771-df200
The iTV middleware.
MediaSettings.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 MEDIA_SETTINGS_H
19 #define MEDIA_SETTINGS_H
20 
21 #include "Media.h"
22 
24 
25 class MediaSettings: public Media
26 {
27 public:
28  MediaSettings (const string &);
29  ~MediaSettings ();
30 
31  // Object:
32  string getObjectTypeAsString () override;
33  void setProperty (const string &, const string &, Time) override;
34  void sendTickEvent (Time, Time, Time) override;
35 
36  // Media;
37  bool isFocused () override;
38  bool getZ (int *, int *) override;
39  void redraw (cairo_t *) override;
40 
41  // FormatterSettings:
42  void updateCurrentFocus (const string &);
43  void scheduleFocusUpdate (const string &);
44 
45  private:
46  string _nextFocus; // next focus index
47  bool _hasNextFocus; // true if a focus update is scheduled
48 };
49 
51 
52 #endif // MEDIA_SETTINGS_H
void sendTickEvent(Time, Time, Time) override
Definition: MediaSettings.cpp:58
void setProperty(const string &, const string &, Time) override
Definition: MediaSettings.cpp:49
void updateCurrentFocus(const string &)
Definition: MediaSettings.cpp:92
void scheduleFocusUpdate(const string &)
Definition: MediaSettings.cpp:123
string _nextFocus
Definition: MediaSettings.h:46
string getObjectTypeAsString() override
Definition: MediaSettings.cpp:43
#define GINGA_NAMESPACE_END
Definition: aux-ginga.h:62
~MediaSettings()
Definition: MediaSettings.cpp:35
Definition: MediaSettings.h:25
#define GINGA_NAMESPACE_BEGIN
Definition: aux-ginga.h:61
bool isFocused() override
Definition: MediaSettings.cpp:72
Definition: Media.h:26
void redraw(cairo_t *) override
Definition: MediaSettings.cpp:84
MediaSettings(const string &)
Definition: MediaSettings.cpp:29
bool _hasNextFocus
Definition: MediaSettings.h:47
bool getZ(int *, int *) override
Definition: MediaSettings.cpp:78
GstClockTime Time
Definition: aux-ginga.h:115