Click here to Skip to main content
15,895,827 members
Articles / Desktop Programming / WTL

RSS Reader Plug-in for Internet Explorer

Rate me:
Please Sign up or sign in to vote.
5.00/5 (12 votes)
16 Jul 2007CPOL4 min read 317.7K   1.3K   32  
This is a toolbar for the Internet Explorer which shows information from RSS taken from the Internet.
/*
	Project		: RSS Reader plugin for Internet Explorer
	File Name	: RRPRssItem.h
	Date		: 
	Purpose		: It encapsulates RSS Item information
	Note		: Used by RRPRssParser
	Send comments 
	or Bugs to	: prafulla_t@users.sourceforge.net
*/
#pragma once

#include "StdAfx.h"

//Class to encapsulate RSS Item
class RRPRssItem
{
public:
	RRPRssItem(void);
	RRPRssItem(const char* t,const char* l,const char* d) { 
		this->title = new char[strlen(t) + 1];
		strcpy(this->title ,t );
		this->link = new char[strlen(l) + 1];
		strcpy(this->link , l);
		this->description = new char[strlen(d) + 1];
		strcpy(this->description , d);
	};
	~RRPRssItem(void);

	void setTitle(const char* title) { 
		if(this->title)
			delete this->title;
		this->title = new char[strlen(title) + 1];
		strcpy(this->title ,title );
		
	};
	void setLink(const char* link) { 
		if(this->link)
			delete this->link;
		this->link = new char[strlen(link) + 1];
		strcpy(this->link ,link );
	};
	void setDescription(const char* description) { 
		if(this->description)
			delete this->description;
		this->description = new char[strlen(description) + 1];
		strcpy(this->description ,description );
	};
	const char* getTitle() { return title; };
	const char* getLink() { return link; };
	const char* getDescription() { return description; };
	CString removeTags(CString html,BOOL &hasImage,BOOL &hasTable);
	CString removeSpaces(CString str);
	
private:
	char* title,*description;
	char* link;
};

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
India India
Quote : "Life is all about solving problems and enjoying their solutions !! "

Comments and Discussions