<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Verdana;
        color:windowtext;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Verdana><span
style='font-size:10.0pt;font-family:Verdana'>I have been studying the code of
mythtv for a while now.<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Verdana><span
style='font-size:10.0pt;font-family:Verdana'>I understand that while a movie is
being played in mythfrontend, a loop in tv_play.cpp gets on executing.<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Verdana><span
style='font-size:10.0pt;font-family:Verdana'>&nbsp;<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Verdana><span
style='font-size:10.0pt;font-family:Verdana'>While a movie is being played, if
I press the &quot;Esc&quot; button, the movie stops playing and MythTV returns
to the screen where we have<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Verdana><span
style='font-size:10.0pt;font-family:Verdana'>&nbsp;<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Verdana><span
style='font-size:10.0pt;font-family:Verdana'>&nbsp;&nbsp;&nbsp;&nbsp; * Watch Recordings<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Verdana><span
style='font-size:10.0pt;font-family:Verdana'>&nbsp;&nbsp;&nbsp;&nbsp; * etc etc<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Verdana><span
style='font-size:10.0pt;font-family:Verdana'>&nbsp;<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Verdana><span
style='font-size:10.0pt;font-family:Verdana'>Now, what I wanna do is simulate
this &quot;Esc pressing&quot; with the help of a single function call that can
cause the movie to stop and make MythTV return to the above mentioned screen.
Due to my poor knowledge in QT I am unable to solve the problem in hand.<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Verdana><span
style='font-size:10.0pt;font-family:Verdana'>&nbsp;<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Verdana><span
style='font-size:10.0pt;font-family:Verdana'>Can anyone help me figure this
out?<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Verdana><span
style='font-size:10.0pt;font-family:Verdana'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Verdana><span
style='font-size:10.0pt;font-family:Verdana'>&nbsp;<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Verdana><span
style='font-size:10.0pt;font-family:Verdana'>I would like to run a thread
alongwith the RunMainLoop (if i am correct) in tv_play.cpp that wuold keep on
checking for some signal (not exactly signal per se, it could be a change in
value in a database table etc).<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Verdana><span
style='font-size:10.0pt;font-family:Verdana'>the moment I detect that change,
my function is called and the movie play stops, making MythTV to return to the
abov screen.<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Verdana><span
style='font-size:10.0pt;font-family:Verdana'>&nbsp;<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Verdana><span
style='font-size:10.0pt;font-family:Verdana'>&nbsp;<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Verdana><span
style='font-size:10.0pt;font-family:Verdana'>&nbsp;<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Verdana><span
style='font-size:10.0pt;font-family:Verdana'>Regards,<o:p></o:p></span></font></p>

<p class=MsoNormal style='text-autospace:none'><font size=2 face=Verdana><span
style='font-size:10.0pt;font-family:Verdana'>sr<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Verdana><span style='font-size:10.0pt;
font-family:Verdana'><o:p>&nbsp;</o:p></span></font></p>

</div>

</body>

</html>