~ubuntu-branches/ubuntu/jaunty/psi/jaunty

« back to all changes in this revision

Viewing changes to src/tools/tunecontroller/plugins/itunes/itunescontroller.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jan Niehusmann
  • Date: 2008-08-28 18:46:52 UTC
  • mfrom: (1.2.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20080828184652-iiik12dl91nq7cdi
Tags: 0.12-2
Uploading to unstable (Closes: Bug#494352)

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
{
56
56
        // TODO: Poll iTunes for current playing tune
57
57
        CFNotificationCenterRef center = CFNotificationCenterGetDistributedCenter();
58
 
        CFNotificationCenterAddObserver(center, this, ITunesController::iTunesCallback, CFSTR("com.apple.iTunes.playerInfo"), NULL, CFNotificationSuspensionBehaviorDeliverImmediately); 
 
58
        CFNotificationCenterAddObserver(center, this, ITunesController::iTunesCallback, CFSTR("com.apple.iTunes.playerInfo"), NULL, CFNotificationSuspensionBehaviorDeliverImmediately);
 
59
}
 
60
 
 
61
ITunesController::~ITunesController()
 
62
{
 
63
        CFNotificationCenterRef center = CFNotificationCenterGetDistributedCenter();
 
64
        CFNotificationCenterRemoveObserver(center, this, CFSTR("com.apple.iTunes.playerInfo"), NULL);
59
65
}
60
66
 
61
67
Tune ITunesController::currentTune()