/[resiprocate]/main/resip/dum/InviteSession.cxx
ViewVC logotype

Diff of /main/resip/dum/InviteSession.cxx

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 7042 by nash, Mon Apr 9 07:02:41 2007 UTC revision 7044 by sgodin, Mon Apr 9 16:38:05 2007 UTC
# Line 372  Line 372 
372     }     }
373  }  }
374    
375  void  class InviteSessionProvideOfferExCommand : public DumCommandAdapter
 InviteSession::provideOfferCommand(const SdpContents& offer, DialogUsageManager::EncryptionLevel level, const SdpContents* alternative)  
 {  
    class InviteSessionProvideOfferCommand : public DumCommandAdapter  
376     {     {
377     public:     public:
378        InviteSessionProvideOfferCommand(InviteSession& inviteSession,     InviteSessionProvideOfferExCommand(InviteSession& inviteSession,
379           const SdpContents& offer,           const SdpContents& offer,
380           DialogUsageManager::EncryptionLevel level,           DialogUsageManager::EncryptionLevel level,
381           const SdpContents* alternative)           const SdpContents* alternative)
# Line 394  Line 391 
391    
392        virtual std::ostream& encodeBrief(std::ostream& strm) const        virtual std::ostream& encodeBrief(std::ostream& strm) const
393        {        {
394           return strm << "InviteSessionProvideOfferCommand";        return strm << "InviteSessionProvideOfferExCommand";
395        }        }
396     private:     private:
397        InviteSession& mInviteSession;        InviteSession& mInviteSession;
# Line 403  Line 400 
400        std::auto_ptr<const SdpContents> mAlternative;        std::auto_ptr<const SdpContents> mAlternative;
401     };     };
402    
403     mDum.post(new InviteSessionProvideOfferCommand(*this, offer, level, alternative));  void
404    InviteSession::provideOfferCommand(const SdpContents& offer, DialogUsageManager::EncryptionLevel level, const SdpContents* alternative)
405    {
406       mDum.post(new InviteSessionProvideOfferExCommand(*this, offer, level, alternative));
407  }  }
408    
409  void  void
# Line 412  Line 412 
412     return provideOffer(offer, mCurrentEncryptionLevel, 0);     return provideOffer(offer, mCurrentEncryptionLevel, 0);
413  }  }
414    
 void  
 InviteSession::provideOfferCommand(const SdpContents& offer)  
 {  
415     class InviteSessionProvideOfferCommand : public DumCommandAdapter     class InviteSessionProvideOfferCommand : public DumCommandAdapter
416     {     {
417     public:     public:
# Line 438  Line 435 
435        SdpContents mOffer;        SdpContents mOffer;
436     };     };
437    
438    void
439    InviteSession::provideOfferCommand(const SdpContents& offer)
440    {
441     mDum.post(new InviteSessionProvideOfferCommand(*this, offer));     mDum.post(new InviteSessionProvideOfferCommand(*this, offer));
442  }  }
443    
# Line 741  Line 741 
741     }     }
742  }  }
743    
 void  
 InviteSession::referCommand(const NameAddr& referTo, bool referSub)  
 {  
744     class InviteSessionReferCommand : public DumCommandAdapter     class InviteSessionReferCommand : public DumCommandAdapter
745     {     {
746     public:     public:
# Line 771  Line 768 
768        bool mReferSub;        bool mReferSub;
769     };     };
770    
771    void
772    InviteSession::referCommand(const NameAddr& referTo, bool referSub)
773    {
774     mDum.post(new InviteSessionReferCommand(*this, referTo, referSub));     mDum.post(new InviteSessionReferCommand(*this, referTo, referSub));
775  }  }
776    
# Line 820  Line 820 
820     }     }
821  }  }
822    
823  void  class InviteSessionReferExCommand : public DumCommandAdapter
 InviteSession::referCommand(const NameAddr& referTo, InviteSessionHandle sessionToReplace, bool referSub)  
 {  
    class InviteSessionReferCommand : public DumCommandAdapter  
824     {     {
825     public:     public:
826        InviteSessionReferCommand(InviteSession& inviteSession, const NameAddr& referTo, InviteSessionHandle sessionToReplace, bool referSub)     InviteSessionReferExCommand(InviteSession& inviteSession, const NameAddr& referTo, InviteSessionHandle sessionToReplace, bool referSub)
827           : mInviteSession(inviteSession),           : mInviteSession(inviteSession),
828             mReferTo(referTo),             mReferTo(referTo),
829             mSessionToReplace(sessionToReplace),             mSessionToReplace(sessionToReplace),
# Line 842  Line 839 
839    
840        virtual std::ostream& encodeBrief(std::ostream& strm) const        virtual std::ostream& encodeBrief(std::ostream& strm) const
841        {        {
842           return strm << "InviteSessionReferCommand";        return strm << "InviteSessionReferExCommand";
843        }        }
844    
845     private:     private:
# Line 852  Line 849 
849        bool mReferSub;        bool mReferSub;
850     };     };
851    
852     mDum.post(new InviteSessionReferCommand(*this, referTo, sessionToReplace, referSub));  void
853    InviteSession::referCommand(const NameAddr& referTo, InviteSessionHandle sessionToReplace, bool referSub)
854    {
855       mDum.post(new InviteSessionReferExCommand(*this, referTo, sessionToReplace, referSub));
856  }  }
857    
858  void  void

Legend:
Removed from v.7042  
changed lines
  Added in v.7044

webmaster AT resiprocate DOT org
ViewVC Help
Powered by ViewVC 1.1.27