Dreamforce 2014 Demo of RFID-based Salesforce Case generation for status reporting.

Dependencies:   ID12RFID ReportDB SalesforceCaseGenerator SalesforceInterface

Dependents:   mbed_mqtt_endpoint_ublox_ethernet mbed_mqtt_endpoint_ublox_cellular mbed_nsp_endpoint_ublox_cellular mbed_nsp_endpoint_ublox_ethernet ... more

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers StatusReporter.h Source File

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 "ReportDB.h"
00028  #include "ID12RFID.h"
00029  
00030  class StatusReporter {
00031      private:
00032         Logger                  *m_logger;
00033         ReportDB                 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_