|
/*
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.
Quote : "Life is all about solving problems and enjoying their solutions !! "