fork of StatusReporter with specific changes for the changeover to the support personnel database
Dependencies: ID12RFID SalesforceCaseGenerator-df2014 SalesforceInterface SupportPersonnelDB
Dependents: df-2014-rfid-case-gen-k64f-complete df-2014-rfid-case-gen-k64f-exercise
Fork of StatusReporter by
StatusReporter.h
00001 /* Copyright C2014 ARM, MIT License 00002 * 00003 * Author: Doug Anson (doug.anson@arm.com) 00004 * 00005 * Permission is hereby granted, free of charge, to any person obtaining a copy of this software 00006 * and associated documentation files the "Software", to deal in the Software without restriction, 00007 * including without limitation the rights to use, copy, modify, merge, publish, distribute, 00008 * sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is 00009 * furnished to do so, subject to the following conditions: 00010 * 00011 * The above copyright notice and this permission notice shall be included in all copies or 00012 * substantial portions of the Software. 00013 * 00014 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING 00015 * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 00016 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, 00017 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 00018 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 00019 */ 00020 00021 #ifndef _STATUS_REPORTER_H_ 00022 #define _STATUS_REPORTER_H_ 00023 00024 #include "Definitions.h" 00025 #include "Logger.h" 00026 #include "SalesForceCaseGenerator.h" 00027 #include "SupportPersonnelDB.h" 00028 #include "ID12RFID.h" 00029 00030 class StatusReporter { 00031 private: 00032 Logger *m_logger; 00033 SupportPersonnelDB m_db; 00034 SalesForceCaseGenerator m_case_generator; 00035 ID12RFID m_rfid_reader; 00036 00037 public: 00038 StatusReporter(HTTPClient *http,Logger *logger); 00039 virtual ~StatusReporter(); 00040 00041 void checkAndReportOnStatus(); 00042 00043 private: 00044 int getLocalTemperature(); 00045 Logger *logger(); 00046 }; 00047 00048 #endif // _STATUS_REPORTER_H_
Generated on Wed Jul 20 2022 22:15:32 by 1.7.2