Click here to Skip to main content
11,415,510 members (78,469 online)
Click here to Skip to main content
Add your own
alternative version

A reminder tool for .dan.g's ToDoList

, 25 Feb 2004
A simple reminder tool to remind you of your overdue tasks in ToDoList throughout the day
tdlremindertool_demo.zip
zlib.dll
iconv.dll
libxml2.dll
TDLReminderTool.exe
Reminder.wav
tdlremindertool_src.zip
Projects
TDLReminderTool
TDLReminderTool.dsw
TDLReminderTool.clw
TDLReminderTool.dsp
res
TDLReminderTool.ico
Reminder.wav
// TODOList.cpp: implementation of the CTODOList class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "TDLReminderTool.h"
#include "TODOList.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

CTODOList::CTODOList()
{
	m_ProjectName	="";
	m_FileFormat	="";
	m_NextUniqueID	="";
	m_LastSortBy	="";
	m_FileVersion	="";
	m_LastSortDir	="";
	m_LastModfified	="";
	m_Tasks.clear();
}

CTODOList::~CTODOList()
{
	m_Tasks.clear();
}

CTODOList::CTODOList(const string& ProjectName,const string& FileFormat,const string& NextUniqueID,
			  const string& LastSortBy,const string& FileVersion,const string& LastSortDir,const string& LastModfified)
{
	m_ProjectName	=	ProjectName;
	m_FileFormat	=	FileFormat;
	m_NextUniqueID	=	NextUniqueID;
	m_LastSortBy	=	LastSortBy;
	m_FileVersion	=	FileVersion;
	m_LastSortDir	=	LastSortDir;
	m_LastModfified	=	LastModfified;

}

void CTODOList::setProjectName(const string& ProjectName)
{
	m_ProjectName = ProjectName;
}
void CTODOList::setFileFormat(const string& FileFormat)
{
	m_FileFormat = FileFormat;
}
void CTODOList::setNextUniqueID(const string& NextUniqueID)
{
	m_NextUniqueID = NextUniqueID;
}
void CTODOList::setLastSortBy(const string& LastSortBy)
{
	m_LastSortBy = LastSortBy;
}
void CTODOList::setFileVersion(const string& FileVersion)
{
	m_FileVersion = FileVersion;
}
void CTODOList::setLastSortDir(const string& LastSortDir)
{
	m_LastSortDir = LastSortDir;
}
void CTODOList::setLastModfified(const string& LastModfified)
{
	m_LastModfified = LastModfified;
}

string CTODOList::getProjectName()
{
	return m_ProjectName;
}
string CTODOList::getFileFormat()
{
	return m_FileFormat;
}
string CTODOList::getNextUniqueID()
{
	return m_NextUniqueID;
}
string CTODOList::getLastSortBy()
{
	return m_LastSortBy;
}
string CTODOList::getFileVersion()
{
	return m_FileVersion;
}
string CTODOList::getLastSortDir()
{
	return m_LastSortDir;
}
string CTODOList::getLastModfified()
{
	return m_LastModfified;
}

void CTODOList::addTask(CTask task)
{
	m_Tasks.push_back(task);
}

vector<CTask> CTODOList::getTasks()
{
	return m_Tasks;
}














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 has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author

Alberto Bar-Noy
Team Leader www.unitronics.com
Israel Israel
No Biography provided

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.150427.4 | Last Updated 26 Feb 2004
Article Copyright 2004 by Alberto Bar-Noy
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid