?? 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 + -