57 typedef std::list<PIRPtr> PIRList;
74 bool sendCCF(
const std::string & serial,
const std::string ccf,
unsigned char bitmask,
unsigned char repeats );
77 IPIRPtr
findPIR(
const std::string & serial );
83 bool learn(
const std::string & serial );
88 std::string
pirList( PIR::Type type );
93 pthread_mutex_t m_Mutex;
95 void closedCallback(
const std::string & serial );
96 void addPIR( PIRPtr p );
97 PIRPtr findPIRLocked(
const std::string & serial );
Contains the PIR-1/PIR-4 objects currently available on the system.
Definition: manager.h:52
bool init()
Initialization, checkDevices is permformed at this point.
Definition: manager.cpp:217
bool cancelLearn(const std::string &serial)
cancels learning on the specified PIR-1
Definition: manager.cpp:90
bool sendCCF(const std::string &serial, const std::string ccf, unsigned char bitmask, unsigned char repeats)
Sends a CCF code.
Definition: manager.cpp:223
bool learn(const std::string &serial)
start learning on the specified PIR-1
Definition: manager.cpp:79
the Settings structure.
Definition: pirlib2.h:334
void checkDevices()
runs the PIR-1 / PIR-4 device detection routine. New devices may appear at this point.
Definition: manager.cpp:6
~Manager()
Destructor.
Definition: manager.cpp:209
IPIRPtr findPIR(const std::string &serial)
returns the PIR object for specific serial
Definition: manager.cpp:154
Manager(PIR_Settings *settings)
Constructor.
Definition: manager.cpp:188
std::string pirList(PIR::Type type)
returns a comma separated list of serial numbers of available PIR's with requested type...
Definition: manager.cpp:101