~ubuntu-branches/ubuntu/lucid/mythtv/lucid

« back to all changes in this revision

Viewing changes to libs/libmythui/AppleRemoteListener.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Mario Limonciello, Mario Limonciello, John Baab
  • Date: 2009-09-29 01:33:23 UTC
  • mfrom: (1.1.35 upstream)
  • Revision ID: james.westby@ubuntu.com-20090929013323-6pvn8encm757zbxw
Tags: 0.22.0~trunk22101-0ubuntu1
[ Mario Limonciello ]
* New upstream checkout (r22101)
* Try to guard and make sure that ~mythtv is read from /etc/passwd 
  rather than assuming it's /home/mythtv.

[ John Baab ]
* debian/mythtv-common.postinst:
  - Added symlink for /home/mythtv/.mythtv/config.xml

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
#include "AppleRemoteListener.h"
 
3
 
1
4
#include <QApplication>
2
5
#include <QKeySequence>
3
6
#include "lircevent.h"
4
7
 
5
 
#include "AppleRemoteListener.h"
6
 
 
7
8
AppleRemoteListener::AppleRemoteListener(QObject* mainWindow_)
8
9
                   : mainWindow(mainWindow_)
9
10
{
10
11
}
11
12
 
12
 
void
13
 
AppleRemoteListener::appleRemoteButton(AppleRemote::Event button,
14
 
                                       bool               pressedDown)
 
13
void AppleRemoteListener::appleRemoteButton(AppleRemote::Event button,
 
14
                                            bool pressedDown)
15
15
{
16
16
    char* code = 0;
17
17
    bool separateRelease = false;
47
47
            separateRelease=true;
48
48
            break;
49
49
        case AppleRemote::MenuHold:
50
 
            code="M";
 
50
            code='M';
51
51
            break;
52
52
        case AppleRemote::PlaySleep:
53
 
            code="P";
 
53
            code='P';
54
54
            break;
55
55
        case AppleRemote::ControlSwitched:
56
56
            return;