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

Annotation of /smsdaemon/Sms.h

Parent Directory Parent Directory | Revision Log Revision Log


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

astyle -t -b -N

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 torben 196 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 torben 142
33    
34 torben 196
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 torben 142 private:
53 torben 26 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