MythTV  master
Presentable.cpp
Go to the documentation of this file.
1 /* Presentable.cpp
2 
3  Copyright (C) David C. J. Matthews 2004 dm at prolingua.co.uk
4 
5  This program is free software; you can redistribute it and/or
6  modify it under the terms of the GNU General Public License
7  as published by the Free Software Foundation; either version 2
8  of the License, or (at your option) any later version.
9 
10  This program is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License
16  along with this program; if not, write to the Free Software
17  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
18  Or, point your browser to http://www.gnu.org/copyleft/gpl.html
19 
20 */
21 
22 
23 #include "Presentable.h"
24 #include "Ingredients.h"
25 #include "Root.h"
26 
28 {
29  if (! m_fRunning)
30  {
31  Activation(engine);
32  }
33 }
34 
36 {
37  if (m_fRunning)
38  {
39  Deactivation(engine);
40  }
41 }
MHRoot::Activation
virtual void Activation(MHEngine *engine)
Definition: Root.cpp:70
MHPresentable::Run
void Run(MHEngine *engine) override
Definition: Presentable.cpp:27
Presentable.h
MHRoot::Deactivation
virtual void Deactivation(MHEngine *engine)
Definition: Root.cpp:86
MHEngine
Definition: Engine.h:72
MHRoot::m_fRunning
bool m_fRunning
Definition: Root.h:253
Ingredients.h
Root.h
MHPresentable::Stop
void Stop(MHEngine *engine) override
Definition: Presentable.cpp:35