Click here to Skip to main content
12,698,899 members (22,877 online)
Click here to Skip to main content

Stats

130.5K views
3.2K downloads
61 bookmarked
Posted

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
// 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

You may also be interested in...

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