⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sipmsg.hxx

📁 Vovida 社区开源的 SIP 协议源码
💻 HXX
📖 第 1 页 / 共 3 页
字号:
	///set the contentlength object as length.	void setContentLength( const SipContentLength& length);    	///set the contentlength object as length.	void setContentLength( const Data& length);        //@}     	/**@name ContentType Header Methods           */        //@{	/// get the number of ContentType items 	const SipContentType& getContentType( ) const;	/** set or add another ContentType item, if the index is -1,	 * it is appended to the current list */	void setContentType(const SipContentType& item);            //@}     	/**@name ContentDisposition Header Methods          */        //@{	/// get the contentdisposition item	const SipContentDisposition& getContentDisposition( ) const;	///set ContentDisposition item	void setContentDisposition(const SipContentDisposition& item);    	///set ContentDisposition item	void setContentDisposition(const Data& item);         //@} 	/**@name ContentData Header Methods           */        //@{	/// get the number of ContentData items 	int getNumContentData() const;	/// Get the i'th ContentData item. If i is -1, it gets the last one 	Sptr<SipContentData> getContentData( int i=-1) const;	/** set or add another ContentData item, if the index is -1,	 * it is appended to the current list */	void setContentData(const SipContentData* item, int index=-1);	/** Set number of ContentData items.If i is less than current	 * number then the extras are deleted. */	void setNumContentData(int i);	/// return the encoded content data list.	Data encodeContentDataList() const;	///return the entire content data list.	const vector<SipContentData*>& getContentDataList() const;	///copy the contents of contentdata list from src to this object.	void copyContentData(const SipMsg& src);	///remove the content data object at location index.	void removeContentData(int index = -1);      	/** compare the content data objects of this object to that	 * contained in the src object. */	bool compareContentData(const SipMsg& src) const;        /** delete all of the current content datas */        void flushContentData();                   //@}                                                    	/**@name Date Header Methods          */        //@{	/// Get the current Date header 	const SipDate& getDate() const;	///Set the Date header using SipDate	void setDate( const SipDate& );    	/// Set the Date header using text data	void setDate( const Data& textData);        //@}	/**@name Encryption Header Methods          */        //@{	/// Get the current Encryption header 	const SipEncryption& getEncryption() const;	/// Set the Encryption header 	void setEncryption( const SipEncryption& );	/// Set the Encryption header using text data 	void setEncryption( const Data& textData);           //@} 	/**@name SubsNotifyEvent Header Methods           */        //@{	/// get the number of SubsNotifyEvent items 	int getNumSubsNotifyEvent() const;	/// Get the i'th SubsNotifyEvent item. If i is -1, it gets the last one 	const SipSubsNotifyEvent& getSubsNotifyEvent( int i=-1) const;	/** set or add another SubsNotifyEvent item, if the index is	 * -1, it is appended to the current list */	void setSubsNotifyEvent(const SipSubsNotifyEvent& item, int index=-1);    	/** set or add another SubsNotifyEvent item, if the index is	 * -1, it is appended to the current list */	void setSubsNotifyEvent(const Data& item, int index=-1);	/// remove the SipSubsNotifyEvent from the list at location index.	void removeSubsNotifyEvent(int index = -1);	/** Set number of SubsNotifyEvent items.If i is less than	 * current number then the extras are deleted. */	void setNumSubsNotifyEvent(int i);	///remove all items from SubsNotify list.	void flushSubsNotifyEvent(); 	///return the encoded subsnotify list.	Data encodeSubsNotifyEvent() const;	///copy the entire subs notify list from srcObject to this object.	void copySubsNotifyEvent(const SipMsg& srcObject); 	///compare subs notify objects of this object to the src object.	bool compareSubsNotifyEvent(const SipMsg& src) const;        //@}	/**@name Expires Header Methods          */        //@{	/// Get the current Expires header 	const SipExpires& getExpires() const;	/// Set the Expires header 	void setExpires( const SipExpires& );    	void setExpires( const Data& );        //@}	/**@name From Header Methods           */        //@{	/// Get the current From header 	const SipFrom& getFrom() const;	/// Set the From header 	void setFrom( const SipFrom& );	/// Set the From header 	void setFrom( const Data& textData);        //@}	/**@name Mime Version Methods          */        //@{	///get the mime version	const SipMimeVersion& getMimeVersion() const;	/// Set the mimeversion  header 	void setMimeVersion( const SipMimeVersion& );	/// Set the mimeversion  header 	void setMimeVersion( const Data& textData);        //@}	/**@name RecordRoute Header Methods           */        //@{	/// get the number of RecordRoute items 	int getNumRecordRoute() const;	/// Get the i'th RecordRoute item. If i is -1, it gets the last one 	const SipRecordRoute& getRecordRoute( int i=-1) const;	/** set or add another RecordRoute item, if the index is -1,	 * it is appended to the current list */	void setRecordRoute(const SipRecordRoute& item, int index=-1);	/** set or add another RecordRoute item, if the index is -1,	 * it is appended to the current list */	void setRecordRoute(const Data&  item, int index=-1);	/** Set number of RecordRoute items. If i is less than current	 * number then the extras are deleted.  */	void setNumRecordRoute(int i);     	///copy the entire recordroute list from src, to this object.	void copyRecordRoute(const SipMsg& src);	///remove all record route items from the list.	void flushrecordrouteList();	///return the entire recordrout list.	SipRecordRouteList getrecordrouteList() const;	///add an item into the list.	void addRecordRoute(SipRecordRoute* recordroute);	///return the encoded record route list.	Data  encodeRecordRouteList() const;	///compare the record route objects of this object to the src object	bool compareRecordRoute(const SipMsg& src) const;            /// highest in the command, refers to this element        void recordRoutePushFront(const SipRecordRoute& item);        ///Get the first route        const SipRecordRoute& recordRouteFront() const;        ///Get the last route        const SipRecordRoute& recordRouteBack() const;        ///Check if Record route header is empty        bool recordRouteEmpty() const;        //@}        	/**@name Supported Header Methods          */        //@{	///return the number of Supported items.	int getNumSupported() const;	/// Get the i'th Supported item. If i is -1, it gets the last one	const SipSupported& getSupported( int i=-1) const;	/** set or add another Supported item, if the index is -1, it	 * is appended to the current list */	void setSupported(SipSupported item, int index=-1);    	/** set or add another Supported item, if the index is -1, it	 * is appended to the current list */	void setSupported(const Data&item, int index=-1);	/** set number of Supported items.If i is less than current	 * number then the extras are deleted. */	void setNumSupported(int i);	///copy all supported items from src, to this object.	void copySupported(const SipMsg& src);	/// remove all items from the supported list.	void flushsupportedList();	///return the entire supported list.	const vector<SipSupported*>& getsupportedList() const;	/// add another item in the supported list.	void addSupported(SipSupported* supported);      	///return the encoded supported list.	Data  encodeSupportedList() const;	/** compare the Supported objects in this SipMsg, to the src	 * SipMsg object. */	bool compareSupported(const SipMsg& src) const;             //@}	/**@name Content Language Header Methods          */        //@{	///return the number of contentlanguage items.	int getNumContentLanguage() const;	/// Get the i'th ContentLanguage item. If i is -1, it gets the last one 	const SipContentLanguage& getContentLanguage( int i=-1) const;	/** set or add another Contentlanguage item, if the index is	 * -1, it is appended to the current list */	void setContentLanguage(const SipContentLanguage& item, int index=-1);    	/** set or add another Contentlanguage item, if the index is	 * -1, it is appended to the current list  */	void setContentLanguage(const Data& item, int index=-1);	///copy the content language list from src, to this object.	void copyContentLanguage(const SipMsg& src);	///remove all items from content language list.	void flushContentLanguageList();	///return the entire content language list.	const vector<SipContentLanguage*>& getContentLanguageList() const;	///add another item into the content language list.	void addContentLanguage(SipContentLanguage* ContentLanguage);	/** Set number of ContentLanguage items.If i is less than	 * current number then the extras are deleted.*/	void setNumContentLanguage(int i);	///return the encoded content language list.	Data  encodeContentLanguageList() const;	///	bool compareContentLanguage(const SipMsg&) const;        //@}	//-----------Timestamp Header Methods ------------------	/// Get the current Timestamp header 	const SipTimestamp& getTimestamp() const;	/// Set the Timestamp header 	void setTimestamp( const SipTimestamp& );	/// Set the Timestamp header 	void setTimestamp( const Data& textData);   	/**@name To Header Methods          */        //@{	/// Get the current To header 	const SipTo& getTo() const;	/// Set the To header 	void setTo( const SipTo& );	///	void setTo( const Data& textData);        //@} 	/**@name Via Header Methods          */        //@{	/// get the number of Via items 	int getNumVia() const;	/// Get the i'th Via item. If i is -1, it gets the last one 	const SipVia& getVia( int i=-1) const;	///remove the Via item at location given by index.	void removeVia(int index=-1);	/** set or add another Via item, if the index is -1, it is	 * appended to the current list */	void setVia(const SipVia& item, int index=-1);	/** set or add another Via item, if the index is -1, it is	 * appended to the current list */	void setVia(const Data& item, int index=-1);	/** Set number of Via items. If i is less than current number	 * then the extras are deleted. */	void setNumVia(int i);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -