smsService.h
1 
5 #pragma once
6 
7 //Boost app
8 #define BOOST_APPLICATION_FEATURE_NS_SELECT_BOOST
9 
10 #ifdef TESTING
11 #include "gtest/gtest.h"
12 #endif
13 
14 #include <boost/shared_ptr.hpp>
15 #include <boost/asio.hpp>
16 #include <boost/application.hpp>
17 #include <boost/application/auto_handler.hpp>
18 #include <boost/make_shared.hpp>
19 
20 // singleton access
21 
22 /*<<Optionally, create a function to give us easy access to global context>>*/
23 inline boost::application::global_context_ptr this_application()
24 {
25  return boost::application::global_context::get();
26 }
27 
34 {
35 private:
36  bool m_modem_active;
37  boost::asio::io_service* _io;
38  std::string mServiceName;
39 
40 public:
41  //constructor
42  SmsService();
43  //destructor
44  ~SmsService();
45 
46  int operator()(boost::application::context& context);
47  bool stop(boost::application::context& context);
48 
49 private:
50 // void update_service_status(int update_milliseconds);
51 
52 
53 };
Implements the service functionality creating the server and other objects in the application context...
Definition: smsService.h:33