- Timestamp:
- Oct 23, 2013 5:34:48 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/pjsua2/pjsip/include/pjsua2/account.hpp
r4608 r4631 799 799 }; 800 800 801 801 802 /** 802 803 * Account information. Application can query the account information … … 824 825 * (reg_uri is not empty). 825 826 */ 826 bool hasRegistration;827 bool regIsConfigured; 827 828 828 829 /** … … 830 831 * (has active registration session). 831 832 */ 832 bool isRegistered;833 bool regIsActive; 833 834 834 835 /** 835 836 * An up to date expiration interval for account registration session. 836 837 */ 837 int expiresSec;838 int regExpiresSec; 838 839 839 840 /** … … 842 843 * status code of the registration. 843 844 */ 844 pjsip_status_code status;845 pjsip_status_code regStatus; 845 846 846 847 /** 847 848 * String describing the registration status. 848 849 */ 849 string statusText;850 string regStatusText; 850 851 851 852 /** … … 867 868 string onlineStatusText; 868 869 870 public: 871 void fromPj(const pjsua_acc_info &pai); 869 872 }; 870 873 … … 909 912 * SIP status code received. 910 913 */ 911 intcode;914 pjsip_status_code code; 912 915 913 916 /** … … 1090 1093 /** Virtual destructor */ 1091 1094 virtual ~AccountCallback() {} 1095 1096 /** 1097 * Get the account associated with this callback. 1098 */ 1099 Account *account() 1100 { return acc; } 1092 1101 1093 1102 /** … … 1191 1200 virtual void onMwiInfo(OnMwiInfoParam &prm) 1192 1201 {} 1202 1203 protected: 1204 AccountCallback() 1205 : acc(NULL) 1206 {} 1207 1208 private: 1209 Account *acc; 1210 1211 /** Set the account. Must only be called by Account class */ 1212 void setAccount(Account *the_acc) 1213 { acc = the_acc; } 1214 1215 friend class Account; 1193 1216 }; 1194 1217 … … 1210 1233 { 1211 1234 public: 1235 /** 1236 * Constructor. 1237 */ 1238 Account(AccountCallback *cb, Token user_data); 1239 1240 /** 1241 * Destructor. 1242 */ 1243 ~Account(); 1244 1245 /** 1246 * Create the account. 1247 * 1248 * @param cfg The account config. 1249 * @param make_default Make this the default account. 1250 */ 1251 void create(const AccountConfig &cfg, 1252 bool make_default=false) throw(Error); 1253 1254 /** 1255 * Modify the account to use the specified account configuration. 1256 * Depending on the changes, this may cause unregistration or 1257 * reregistration on the account. 1258 * 1259 * @param cfg New account config to be applied to the account. 1260 */ 1261 void modify(const AccountConfig &acc) throw(Error); 1262 1212 1263 /** 1213 1264 * Check if this account is still valid. … … 1260 1311 * @return Account info. 1261 1312 */ 1262 AccountInfo getInfo() const; 1263 1264 /** 1265 * Modify the account to use the specified account configuration. 1266 * Depending on the changes, this may cause unregistration or 1267 * reregistration on the account. 1268 * 1269 * @param cfg New account config to be applied to the account. 1270 */ 1271 void modify(const AccountConfig &acc) throw(Error); 1313 AccountInfo getInfo() const throw(Error); 1272 1314 1273 1315 /** … … 1311 1353 friend class Endpoint; 1312 1354 1313 Account(); 1355 private: 1356 pjsua_acc_id id; 1357 AccountCallback *cb; 1358 Token userData; 1314 1359 }; 1315 1360
Note: See TracChangeset
for help on using the changeset viewer.