1 |
torben |
26 |
#ifndef __SMS_H__ |
2 |
|
|
#define __SMS_H__ |
3 |
|
|
|
4 |
|
|
#include <string> |
5 |
|
|
|
6 |
|
|
class SMS |
7 |
|
|
{ |
8 |
|
|
public: |
9 |
|
|
SMS(); |
10 |
torben |
142 |
SMS(std::string index, std::string _sender, std::string _message, std::string _timestamp=""); |
11 |
torben |
26 |
|
12 |
torben |
142 |
std::string ExtractCommand(); |
13 |
|
|
std::string ExtractParameters(); |
14 |
torben |
26 |
|
15 |
torben |
142 |
|
16 |
|
|
void SetIndex(std::string i) {sms_index=i;} |
17 |
|
|
void SetSender(std::string s) {sender=s;} |
18 |
|
|
void SetMessage(std::string m) {message=m;} |
19 |
|
|
void SetTimestamp(std::string t) {timestamp=t;} |
20 |
|
|
|
21 |
|
|
|
22 |
|
|
|
23 |
|
|
std::string GetIndex() {return sms_index;} |
24 |
|
|
std::string GetSender() {return sender;} |
25 |
|
|
std::string GetMessage() {return message;} |
26 |
|
|
std::string GetTimestamp() {return timestamp;} |
27 |
|
|
|
28 |
|
|
private: |
29 |
torben |
26 |
std::string sms_index; |
30 |
|
|
std::string sender; |
31 |
|
|
std::string message; |
32 |
|
|
std::string timestamp; |
33 |
|
|
}; |
34 |
|
|
|
35 |
|
|
|
36 |
|
|
|
37 |
|
|
#endif // __SMS_H__ |