00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036 #ifndef INCL_MSUDEVICE_INFO
00037 #define INCL_MSUDEVICE_INFO
00038
00039
00040 #include "base/fscapi.h"
00041 #include "base/constants.h"
00042 #include "base/globalsdef.h"
00043 #include "base/util/StringBuffer.h"
00044
00045 BEGIN_FUNAMBOL_NAMESPACE
00046
00053 class MSUDeviceInfo {
00054
00055 private:
00056 StringBuffer phoneNumber;
00057 StringBuffer password;
00058 StringBuffer platform;
00059 StringBuffer emailAddress;
00060 StringBuffer timezone;
00061 StringBuffer manufacturer;
00062 StringBuffer model;
00063 StringBuffer carrier;
00064 StringBuffer countryCodeA2;
00065
00066
00067 protected:
00068 void setPlatform(const char* v) { platform = v; }
00069
00070 public:
00071
00072
00073 MSUDeviceInfo(const char* phoneNum, const char* passwd, const char* plat);
00074
00075 virtual ~MSUDeviceInfo();
00076
00077 void setPhoneNumber(const char* v) { phoneNumber = v; }
00078 void setPassword(const char* v) { password = v; }
00079
00084 virtual void completeOptionalFields() { }
00085
00086 const StringBuffer& getPhoneNumber() const {
00087 return phoneNumber;
00088 }
00089
00090 const StringBuffer& getPassword() const {
00091 return password;
00092 }
00093
00094 const StringBuffer& getPlatform() const {
00095 return platform;
00096 }
00097
00098 const StringBuffer& getEmailAddress() {
00099 return emailAddress;
00100 }
00101 void setEmailAddress(const char* v) { emailAddress = v; }
00102
00103 const StringBuffer& getTimezone() const {
00104 return timezone;
00105 }
00106 void setTimezone(const char* v) { timezone = v; }
00107
00108
00109 const StringBuffer& getManufacturer() const {
00110 return manufacturer;
00111 }
00112 void setManufacturer(const char* v) { manufacturer = v; }
00113
00114 const StringBuffer& getModel() const {
00115 return model;
00116 }
00117 void setModel(const char* v) { model = v; }
00118
00119 const StringBuffer& getCarrier() const {
00120 return carrier;
00121 }
00122 void setCarrier(const char* v) { carrier = v; }
00123
00124 const StringBuffer& getCountryCodeA2() const {
00125 return countryCodeA2;
00126 }
00127 void setCountryCodeA2(const char* v) { countryCodeA2 = v; }
00128
00129 };
00130
00131
00132 END_FUNAMBOL_NAMESPACE
00133
00134 #endif