/[projects]/smsdaemon/Sms.h
ViewVC logotype

Contents of /smsdaemon/Sms.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 196 - (show annotations) (download)
Thu Dec 18 06:53:29 2008 UTC (15 years, 4 months ago) by torben
File MIME type: text/plain
File size: 785 byte(s)
Make pretty

astyle -t -b -N

1 #ifndef __SMS_H__
2 #define __SMS_H__
3
4 #include <string>
5
6 class SMS
7 {
8 public:
9 SMS();
10 SMS(std::string index, std::string _sender, std::string _message, std::string _timestamp="");
11
12 std::string ExtractCommand();
13 std::string ExtractParameters();
14
15
16 void SetIndex(std::string i)
17 {
18 sms_index=i;
19 }
20 void SetSender(std::string s)
21 {
22 sender=s;
23 }
24 void SetMessage(std::string m)
25 {
26 message=m;
27 }
28 void SetTimestamp(std::string t)
29 {
30 timestamp=t;
31 }
32
33
34
35 std::string GetIndex()
36 {
37 return sms_index;
38 }
39 std::string GetSender()
40 {
41 return sender;
42 }
43 std::string GetMessage()
44 {
45 return message;
46 }
47 std::string GetTimestamp()
48 {
49 return timestamp;
50 }
51
52 private:
53 std::string sms_index;
54 std::string sender;
55 std::string message;
56 std::string timestamp;
57 };
58
59
60
61 #endif // __SMS_H__

  ViewVC Help
Powered by ViewVC 1.1.20