Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Couple patches by Anduin Withers (myth_system(), cleanup in rankprogr…
…ams.cpp). git-svn-id: http://svn.mythtv.org/svn/trunk@2030 7dbf422c-18fa-0310-86e9-fd20926502f2
- Loading branch information
Isaac Richards
committed
Aug 13, 2003
1 parent
78fe75f
commit a4f7807
Showing
13 changed files
with
114 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#include <qapplication.h> | ||
#include <qstring.h> | ||
#include "mythcontext.h" | ||
|
||
#include "lircevent.h" | ||
|
||
LircEventLock::LircEventLock(bool lock_events) | ||
: events_locked(false) | ||
{ | ||
if (lock_events) | ||
lock(); | ||
} | ||
|
||
LircEventLock::~LircEventLock() | ||
{ | ||
if (events_locked) | ||
unlock(); | ||
} | ||
|
||
void LircEventLock::lock() | ||
{ | ||
MythMainWindow *mw = gContext->GetMainWindow(); | ||
if (mw) | ||
{ | ||
events_locked = true; | ||
QApplication::postEvent((QObject *)mw, | ||
new LircMuteEvent(events_locked)); | ||
} | ||
} | ||
|
||
void LircEventLock::unlock() | ||
{ | ||
MythMainWindow *mw = gContext->GetMainWindow(); | ||
if (mw) | ||
{ | ||
events_locked = false; | ||
QApplication::postEvent((QObject *)mw, | ||
new LircMuteEvent(events_locked)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters