xbmc
LIRC.h
1 /*
2  * Copyright (C) 2007-2018 Team Kodi
3  * This file is part of Kodi - https://kodi.tv
4  *
5  * SPDX-License-Identifier: GPL-2.0-or-later
6  * See LICENSES/README.md for more information.
7  */
8 
9 #pragma once
10 
11 #include "input/IRTranslator.h"
12 #include "threads/CriticalSection.h"
13 #include "threads/Thread.h"
14 
15 #include <chrono>
16 #include <string>
17 
18 class CLirc : CThread
19 {
20 public:
21  CLirc();
22  ~CLirc() override;
23  void Start();
24 
25 protected:
26  void Process() override;
27  void ProcessCode(char *buf);
28  bool CheckDaemon();
29 
30  int m_fd = -1;
31  std::chrono::time_point<std::chrono::steady_clock> m_firstClickTime;
32  CCriticalSection m_critSection;
33  CIRTranslator m_irTranslator;
34  int m_profileId;
35 };
Definition: Thread.h:44
Definition: IRTranslator.h:17
Definition: LIRC.h:18