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 Doug Anson

Committer:
ansond
Date:
Fri Sep 26 04:34:10 2014 +0000
Revision:
19:1cf0bad37c62
Parent:
16:d196d812f651
Child:
25:4a49843cd881
revamped to use new salesforce interface

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ansond 0:ba3327ba3a04 1 /* Copyright C2014 ARM, MIT License
ansond 0:ba3327ba3a04 2 *
ansond 19:1cf0bad37c62 3 * Author: Doug Anson (doug.anson@arm.com)
ansond 19:1cf0bad37c62 4 *
ansond 0:ba3327ba3a04 5 * Permission is hereby granted, free of charge, to any person obtaining a copy of this software
ansond 0:ba3327ba3a04 6 * and associated documentation files the "Software", to deal in the Software without restriction,
ansond 0:ba3327ba3a04 7 * including without limitation the rights to use, copy, modify, merge, publish, distribute,
ansond 0:ba3327ba3a04 8 * sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
ansond 0:ba3327ba3a04 9 * furnished to do so, subject to the following conditions:
ansond 0:ba3327ba3a04 10 *
ansond 0:ba3327ba3a04 11 * The above copyright notice and this permission notice shall be included in all copies or
ansond 0:ba3327ba3a04 12 * substantial portions of the Software.
ansond 0:ba3327ba3a04 13 *
ansond 0:ba3327ba3a04 14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
ansond 0:ba3327ba3a04 15 * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
ansond 0:ba3327ba3a04 16 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
ansond 0:ba3327ba3a04 17 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
ansond 0:ba3327ba3a04 18 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
ansond 0:ba3327ba3a04 19 */
ansond 0:ba3327ba3a04 20
ansond 0:ba3327ba3a04 21 #ifndef _STATUS_REPORTER_H_
ansond 0:ba3327ba3a04 22 #define _STATUS_REPORTER_H_
ansond 0:ba3327ba3a04 23
ansond 0:ba3327ba3a04 24 #include "Definitions.h"
ansond 19:1cf0bad37c62 25 #include "Logger.h"
ansond 0:ba3327ba3a04 26 #include "SalesForceCaseGenerator.h"
ansond 16:d196d812f651 27 #include "ReportDB.h"
ansond 0:ba3327ba3a04 28 #include "ID12RFID.h"
ansond 0:ba3327ba3a04 29
ansond 0:ba3327ba3a04 30 class StatusReporter {
ansond 0:ba3327ba3a04 31 private:
ansond 19:1cf0bad37c62 32 Logger *m_logger;
ansond 16:d196d812f651 33 ReportDB m_db;
ansond 0:ba3327ba3a04 34 SalesForceCaseGenerator m_case_generator;
ansond 0:ba3327ba3a04 35 ID12RFID m_rfid_reader;
ansond 0:ba3327ba3a04 36
ansond 0:ba3327ba3a04 37 public:
ansond 19:1cf0bad37c62 38 StatusReporter(HTTPClient *http,Logger *logger);
ansond 0:ba3327ba3a04 39 virtual ~StatusReporter();
ansond 0:ba3327ba3a04 40
ansond 0:ba3327ba3a04 41 void checkAndReportOnStatus();
ansond 16:d196d812f651 42
ansond 16:d196d812f651 43 private:
ansond 16:d196d812f651 44 int getLocalTemperature();
ansond 19:1cf0bad37c62 45 Logger *logger();
ansond 0:ba3327ba3a04 46 };
ansond 0:ba3327ba3a04 47
ansond 0:ba3327ba3a04 48 #endif // _STATUS_REPORTER_H_