Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

RSS Reader Plug-in for Internet Explorer

, 17 Jul 2007 CPOL
This is a toolbar for the Internet Explorer which shows information from RSS taken from the Internet.
rssreader_exe.zip
Setup.exe
rssreader_src.zip
RssReader_src
RRPRssFetcher
RRPRssFetcher
res
RRPRssFetcher.ico
toolbar.bmp
RRPRssFetcher.vcproj.TEKAWADE.Prafulla V Tekawade.user
RSSReaderplugin
Debug
res
RssReaderPlugin.dll.manifest
RRPComInterfaceImplementor.rgs
RssReaderPlugin.aps
RssReaderPlugin.def
RssReaderPlugin.dsp
RssReaderPlugin.dsw
RssReaderPlugin.opt
RssReaderPlugin.plg
RssReaderPlugin.tlb
RssReaderPlugin.vcproj.TEKAWADE.Prafulla V Tekawade.user
RssReaderPluginps.def
RssReaderPluginps.mk
Setup.iss
/*
	Project		: RSS Reader plugin for Internet Explorer
	File name	: RRPConfigurationManager.h
	Date		: 
	Purpose		: It is the configuration manager.It reads from the config.xml file
				  and provides single point access to configuration settings
	Note		: It is a Singlton class(Implments Singleton Pattern GoF)
	Send comments 
	or Bugs to	: prafulla_t@users.sourceforge.net
*/

#pragma once

#include "tinyxml.h"
#include "RRPToolbar.h"
#include <vector>
class RRPToolbar;


typedef struct NewsButtonInfo {
	char *title;
	char *link;
}NewsButtonInfo;



class RRPConfigurationManager {
public:
	RRPConfigurationManager(void);
	~RRPConfigurationManager(void);
	void addNews(char *title,char *link);
	void modifyNews(int index,char *title,char *link);
	void removeNews(unsigned int  index);
	char* getInstallationDirectory();



	unsigned int getSize() {
		return newsButtonVector.size();
	};

	BOOL isModified() {
		BOOL temp = modified;
		modified = false;
		return temp;
	};

	BOOL deleteOnClose() {
		return deleteOnCloseFlag;
	};

	//Returns the news button info at the specified index
	NewsButtonInfo* getItem(unsigned int index) {
		if(index < getSize())
			return newsButtonVector[index];
		return NULL;
	};

	//Sets toolbar
	void setToolbar(RRPToolbar *ptr) {
		this->toolbar = ptr;
	};

	//Gets the toolbar
	RRPToolbar* getToolbar() {
		return toolbar;
	}
	


private:
	void parse();

	void writeDefaultConfigurationFile();
	void writeConfigurationFile();
	BOOL modified;
	
	RRPToolbar *toolbar;
	char *configFile;
	char *rssDir;
	HFILE fileHandle;
	CString __configFilePath;
	TiXmlDocument *doc;
	std::vector<NewsButtonInfo *> newsButtonVector;
	FILETIME lastWriteOld;
	FILETIME creationOld;
	FILETIME lastAccessedOld;

	BOOL deleteOnCloseFlag;
};

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)

Share

About the Author

PrafullaT

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

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.1411023.1 | Last Updated 17 Jul 2007
Article Copyright 2007 by PrafullaT
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid