void IExtensionService.Initialize()
 {
     lirc = new LircClient("banshee");
     poll = new Thread(new ThreadStart(PollThread));
     poll.Start();
 }
 public void Dispose()
 {
     poll.Abort();
     lirc.Dispose();
     lirc = null;
 }
Пример #3
0
        static IDisposable SetUpLirc()
        {
            var lirc = new LircClient(Settings.Default.LircServer, Settings.Default.LircPort);

              var handlers = new ILircKeyHandler[]
              {
            new FastForwardKey(),
            new DeleteCurrentFileKey(),
            new ArchiveCurrentFileKey()
              }
            .Select(x => x.SetUp(lirc));

              return new CompositeDisposable(handlers);
        }