📄 rssitem.h
字号:
// RSSItem.h: interface for the CRSSItem class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_RSSITEM_H__7660DDC2_5936_4C6F_B583_1112D66E7A8D__INCLUDED_)
#define AFX_RSSITEM_H__7660DDC2_5936_4C6F_B583_1112D66E7A8D__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "StdDate.h"
#include "RSSElement.h"
#include "RSSCategory.h"
#include "RSSSource.h"
#include "RSSGuid.h"
#include "RssEnclosure.h"
class CRSSChannel;
class CRSSItem : public CRSSElement
{
public:
CRSSSource* GetSource();
void SetSource( CRSSSource* pSource );
CStdDate* GetPubDate();
void SetPubDate( CStdDate* pDate );
CString GetLink();
void SetLink( CString link );
CRSSGuid* GetGuid();
void SetGuid( CRSSGuid* pGuid);
CRSSEnclosure* GetEnclosure();
void SetEnclosure( CRSSEnclosure* pEnclosure);
CString GetDescription();
void SetDescription( CString description );
CString GetComments();
void SetComments( CString comments );
CRSSCategory* GetCategory( BOOL bFirst = FALSE );
BOOL RemoveCategory( int iIndex );
int AddCategory( CRSSCategory* category );
BOOL GetReadStatus();
void SetReadStatus( BOOL readStatus = TRUE );
BOOL GetRedFlag();
void SetRedFlag( BOOL redfalg = TRUE );
CString GetAuthor();
void SetAuthor( CString author );
CString GetTitle();
void SetTitle( CString title );
CStdDate* GetRetakeDate(){ return m_RetakeDate; };
void SetRetakeDate( CStdDate* date ){ m_RetakeDate = date; };
CRSSItem(CRSSChannel* pChannel = NULL);
virtual ~CRSSItem();
CRSSChannel* GetParentChannel(){return m_pParentChannel;};
private:
CRSSChannel* m_pParentChannel;
///项目元素下所有子元素。
CString m_Title; //标题。
CString m_Link; //链接。
CString m_Description; //描述。
CString m_Author; //作者。
CString m_Comments; //注释。
CStdDate* m_PubDate; //出版日期。
CRSSEnclosure* m_Enclosure; //媒体格式。
CRSSGuid* m_Guid; //唯一标识。
CRSSSource* m_Source; //频道源。
CObArray m_Categorys; //类别数组。
/////
BOOL m_bReadStatus; //读状态。
BOOL m_bRedFlag; //重要标记。
CStdDate* m_RetakeDate; //取回时间
int m_iCurrentCategory;
};
#endif // !defined(AFX_RSSITEM_H__7660DDC2_5936_4C6F_B583_1112D66E7A8D__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -