sms.h
1 #pragma once
2 
3 #include <rapidjson/document.h>
4 #include <boost/shared_ptr.hpp>
5 
6 #include "iSms.h"
7 #define CREATIONDATE_FORMAT "%H:%M:%S %d/%m/%Y"
8 
9 #ifdef TESTING
10 #include "gtest/gtest.h"
11 #endif
12 
17 class Sms : public ISms
18 {
19 private:
20  static unsigned int sSmsCounter;
21 
22  Sms(const std::string& sourceid, const int& smsid, const dpySms::SmsInformation& info);
23 public:
24  Sms(const std::string& sourceid, const dpySms::SmsInformation& info);
25  virtual ~Sms();
26  static boost::system::error_code fromJson(const rapidjson::Value& jsonSms, const std::string& localSourceId, const std::string& smsid, boost::shared_ptr<Sms>& resultSms);
27  static void setSmsCounter(int smsCounter);
28  static int getSmsCounter();
29 
30 #ifdef TESTING
31 public:
32  FRIEND_TEST(smsList_advanced_test,sms_added_to_sms_list);
33 
34 #endif //TESTING
35 };
Allows to interact with the SMS service.
Definition: smsApi.h:74