- Timestamp:
- Nov 6, 2013 8:05:11 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/pjsua2/pjsip/include/pjsua2/account.hpp
r4639 r4644 1 1 /* $Id$ */ 2 2 /* 3 * Copyright (C) 20 08-2012Teluu Inc. (http://www.teluu.com)3 * Copyright (C) 2013 Teluu Inc. (http://www.teluu.com) 4 4 * 5 5 * This program is free software; you can redistribute it and/or modify … … 25 25 */ 26 26 #include <pjsua-lib/pjsua.h> 27 #include <pjsua2/types.hpp> 27 #include <pjsua2/persistent.hpp> 28 #include <pjsua2/siptypes.hpp> 28 29 29 30 /** … … 46 47 * Account registration config. This will be specified in AccountConfig. 47 48 */ 48 struct AccountRegConfig 49 struct AccountRegConfig : public PersistentObject 49 50 { 50 51 /** … … 138 139 */ 139 140 unsigned proxyUse; 141 142 public: 143 /** 144 * Read this object from a container node. 145 * 146 * @param node Container to read values from. 147 */ 148 virtual void readObject(const ContainerNode &node) throw(Error); 149 150 /** 151 * Write this object to a container node. 152 * 153 * @param node Container to write values to. 154 */ 155 virtual void writeObject(ContainerNode &node) const throw(Error); 156 140 157 }; 141 158 … … 147 164 * AccountConfig. 148 165 */ 149 struct AccountSipConfig 166 struct AccountSipConfig : public PersistentObject 150 167 { 151 168 /** … … 221 238 */ 222 239 TransportId transportId; 240 241 public: 242 /** 243 * Read this object from a container node. 244 * 245 * @param node Container to read values from. 246 */ 247 virtual void readObject(const ContainerNode &node) throw(Error); 248 249 /** 250 * Write this object to a container node. 251 * 252 * @param node Container to write values to. 253 */ 254 virtual void writeObject(ContainerNode &node) const throw(Error); 223 255 }; 224 256 … … 226 258 * Account's call settings. This will be specified in AccountConfig. 227 259 */ 228 struct AccountCallConfig 260 struct AccountCallConfig : public PersistentObject 229 261 { 230 262 /** … … 265 297 unsigned timerSessExpiresSec; 266 298 299 public: 300 /** 301 * Read this object from a container node. 302 * 303 * @param node Container to read values from. 304 */ 305 virtual void readObject(const ContainerNode &node) throw(Error); 306 307 /** 308 * Write this object to a container node. 309 * 310 * @param node Container to write values to. 311 */ 312 virtual void writeObject(ContainerNode &node) const throw(Error); 267 313 }; 268 314 … … 270 316 * Account presence config. This will be specified in AccountConfig. 271 317 */ 272 struct AccountPresConfig 318 struct AccountPresConfig : public PersistentObject 273 319 { 274 320 /** … … 317 363 */ 318 364 string pidfTupleId; 365 366 public: 367 /** 368 * Read this object from a container node. 369 * 370 * @param node Container to read values from. 371 */ 372 virtual void readObject(const ContainerNode &node) throw(Error); 373 374 /** 375 * Write this object to a container node. 376 * 377 * @param node Container to write values to. 378 */ 379 virtual void writeObject(ContainerNode &node) const throw(Error); 319 380 }; 320 381 … … 323 384 * in AccountConfig. 324 385 */ 325 struct AccountMwiConfig 386 struct AccountMwiConfig : public PersistentObject 326 387 { 327 388 /** … … 342 403 */ 343 404 unsigned expirationSec; 405 406 public: 407 /** 408 * Read this object from a container node. 409 * 410 * @param node Container to read values from. 411 */ 412 virtual void readObject(const ContainerNode &node) throw(Error); 413 414 /** 415 * Write this object to a container node. 416 * 417 * @param node Container to write values to. 418 */ 419 virtual void writeObject(ContainerNode &node) const throw(Error); 344 420 }; 345 421 … … 348 424 * specified in AccountConfig. 349 425 */ 350 struct AccountNatConfig 426 struct AccountNatConfig : public PersistentObject 351 427 { 352 428 /** … … 561 637 */ 562 638 string udpKaData; 639 640 public: 641 /** 642 * Read this object from a container node. 643 * 644 * @param node Container to read values from. 645 */ 646 virtual void readObject(const ContainerNode &node) throw(Error); 647 648 /** 649 * Write this object to a container node. 650 * 651 * @param node Container to write values to. 652 */ 653 virtual void writeObject(ContainerNode &node) const throw(Error); 563 654 }; 564 655 … … 567 658 * specified in AccountConfig. 568 659 */ 569 struct AccountMediaConfig 660 struct AccountMediaConfig : public PersistentObject 570 661 { 571 662 /** … … 618 709 */ 619 710 pjsua_ipv6_use ipv6Use; 711 712 public: 713 /** 714 * Read this object from a container node. 715 * 716 * @param node Container to read values from. 717 */ 718 virtual void readObject(const ContainerNode &node) throw(Error); 719 720 /** 721 * Write this object to a container node. 722 * 723 * @param node Container to write values to. 724 */ 725 virtual void writeObject(ContainerNode &node) const throw(Error); 620 726 }; 621 727 … … 623 729 * Account video config. This will be specified in AccountConfig. 624 730 */ 625 struct AccountVideoConfig 731 struct AccountVideoConfig : public PersistentObject 626 732 { 627 733 /** … … 694 800 */ 695 801 unsigned rateControlBandwidth; 802 803 public: 804 /** 805 * Read this object from a container node. 806 * 807 * @param node Container to read values from. 808 */ 809 virtual void readObject(const ContainerNode &node) throw(Error); 810 811 /** 812 * Write this object to a container node. 813 * 814 * @param node Container to write values to. 815 */ 816 virtual void writeObject(ContainerNode &node) const throw(Error); 696 817 }; 697 818 … … 699 820 * Account configuration. 700 821 */ 701 struct AccountConfig 822 struct AccountConfig : public PersistentObject 702 823 { 703 824 /** … … 777 898 void fromPj(const pjsua_acc_config &prm, const pjsua_media_config *mcfg); 778 899 900 /** 901 * Read this object from a container node. 902 * 903 * @param node Container to read values from. 904 */ 905 virtual void readObject(const ContainerNode &node) throw(Error); 906 907 /** 908 * Write this object to a container node. 909 * 910 * @param node Container to write values to. 911 */ 912 virtual void writeObject(ContainerNode &node) const throw(Error); 779 913 }; 780 914
Note: See TracChangeset
for help on using the changeset viewer.