- 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/endpoint.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 … … 24 24 * @brief PJSUA2 Base Agent Operation 25 25 */ 26 #include <pjsua2/types.hpp> 26 #include <pjsua2/persistent.hpp> 27 #include <pjsua2/siptypes.hpp> 27 28 28 29 /** PJSUA2 API is inside pj namespace */ … … 162 163 ////////////////////////////////////////////////////////////////////////////// 163 164 164 struct UaConfig 165 struct UaConfig : public PersistentObject 165 166 { 166 167 /** … … 265 266 */ 266 267 pjsua_config toPj() const; 268 269 /** 270 * Read this object from a container. 271 * 272 * @param node Container to write values from. 273 */ 274 virtual void readObject(const ContainerNode &node) throw(Error); 275 276 /** 277 * Write this object to a container. 278 * 279 * @param node Container to write values to. 280 */ 281 virtual void writeObject(ContainerNode &node) const throw(Error); 282 267 283 }; 268 284 … … 307 323 * Lib::init(). 308 324 */ 309 struct LogConfig 325 struct LogConfig : public PersistentObject 310 326 { 311 327 /** Log incoming and outgoing SIP message? Yes! */ … … 350 366 /** Generate pjsua_logging_config. */ 351 367 pjsua_logging_config toPj() const; 368 369 /** 370 * Read this object from a container. 371 * 372 * @param node Container to write values from. 373 */ 374 virtual void readObject(const ContainerNode &node) throw(Error); 375 376 /** 377 * Write this object to a container. 378 * 379 * @param node Container to write values to. 380 */ 381 virtual void writeObject(ContainerNode &node) const throw(Error); 352 382 }; 353 383 … … 357 387 * when calling Lib::init(). 358 388 */ 359 struct MediaConfig 389 struct MediaConfig : public PersistentObject 360 390 { 361 391 public: … … 555 585 /** Export */ 556 586 pjsua_media_config toPj() const; 587 588 /** 589 * Read this object from a container. 590 * 591 * @param node Container to write values from. 592 */ 593 virtual void readObject(const ContainerNode &node) throw(Error); 594 595 /** 596 * Write this object to a container. 597 * 598 * @param node Container to write values to. 599 */ 600 virtual void writeObject(ContainerNode &node) const throw(Error); 557 601 }; 558 602 … … 561 605 * Endpoint configuration 562 606 */ 563 struct EpConfig 607 struct EpConfig : public PersistentObject 564 608 { 565 609 /** UA config */ … … 571 615 /** Media config */ 572 616 MediaConfig medConfig; 617 618 /** 619 * Read this object from a container. 620 * 621 * @param node Container to write values from. 622 */ 623 virtual void readObject(const ContainerNode &node) throw(Error); 624 625 /** 626 * Write this object to a container. 627 * 628 * @param node Container to write values to. 629 */ 630 virtual void writeObject(ContainerNode &node) const throw(Error); 631 573 632 }; 574 633
Note: See TracChangeset
for help on using the changeset viewer.