Click here to Skip to main content
15,881,588 members
Articles / Desktop Programming / MFC

A reminder tool for .dan.g's ToDoList

Rate me:
Please Sign up or sign in to vote.
3.60/5 (14 votes)
25 Feb 2004 152.7K   3.4K   61  
A simple reminder tool to remind you of your overdue tasks in ToDoList throughout the day
// Task.cpp: implementation of the CTask class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "TDLReminderTool.h"
#include "Task.h"

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

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

CTask::CTask()
{
	m_StartDateString	="";
	m_Priority			="";
	m_DueDateString		="";
	m_Title				="";
	m_Person			="";
	m_TimeEstimate		="";
	m_FileRefPath		="";
	m_ID				="";
	m_DueDate			="";
	m_PercentDone		="";
	m_StartDate			="";
	m_POS				="";
}

CTask::~CTask()
{
	m_SubTasks.clear();
}

CTask::CTask(const string& StartDateString,const string& Priority,const string& DueDateString,
			 const string& Title,const string& Person,const string& TimeEstimate,const string& FileRefPath,
			 const string& ID,const string& DueDate,const string& PercentDone,const string& StartDate,const string& POS)
{
	m_StartDateString	= StartDateString;
	m_Priority			= Priority;
	m_DueDateString		= DueDateString;
	m_Title				= Title;
	m_Person			= Person;
	m_TimeEstimate		= TimeEstimate;
	m_FileRefPath		= FileRefPath;
	m_ID				= ID;
	m_DueDate			= DueDate;
	m_PercentDone		= PercentDone;
	m_StartDate			= StartDate;
	m_POS				= POS;

}

void CTask::setStartDateString(const string& StartDateString)
{
	m_StartDateString = StartDateString;
}

void CTask::setPriority(const string& Priority)
{
	m_Priority = Priority;
}

void CTask::setDueDateString(const string& DueDateString)
{
	m_DueDateString = DueDateString;
}

void CTask::setTitle(const string& Title)
{
	m_Title	= Title;
}

void CTask::setPerson(const string& Person)
{
	m_Person = Person;
}

void CTask::setTimeEstimate(const string& TimeEstimate)
{
	m_TimeEstimate = TimeEstimate;
}

void CTask::setFileRefPath(const string& FileRefPath)
{
	m_FileRefPath = FileRefPath;
}

void CTask::setID(const string& ID)
{
	m_ID = ID;
}

void CTask::setDueDate(const string& DueDate)
{
	m_DueDate = DueDate;
}

void CTask::setPercentDone(const string& PercentDone)
{
	m_PercentDone = PercentDone;
}

void CTask::setStartDate(const string& StartDate)
{
	m_StartDate	= StartDate;
}

void CTask::setPOS(const string& POS)
{
	m_POS = POS;
}


string CTask::getStartDateString()
{
	return m_StartDateString;
}

string CTask::getPriority()
{
	return m_Priority;
}

string CTask::getDueDateString()
{
	return m_DueDateString;
}

string CTask::getTitle()
{
	return m_Title;
}

string CTask::getPerson()
{
	return m_Person;
}

string CTask::getTimeEstimate()
{
	return m_TimeEstimate;
}

string CTask::getFileRefPath()
{
	return m_FileRefPath;
}

string CTask::getID()
{
	return m_ID;
}

string CTask::getDueDate()
{
	return m_DueDate;
}

string CTask::getPercentDone()
{
	return m_PercentDone;
}

string CTask::getStartDate()
{
	return m_StartDate;
}

string CTask::getPOS()
{
	return m_POS;
}

void CTask::addSubTask(CTask task)
{
	m_SubTasks.push_back(task);
}
vector<CTask> CTask::getSubTasks()
{
	return m_SubTasks;
}


void CTask::setDoneDateString(const string& DoneDateString)
{
	m_DoneDateString = DoneDateString;
}
void CTask::setDoneDate(const string& DoneDate)
{
	m_DoneDate = DoneDate;
}

string CTask::getDoneDateString()
{
	return m_DoneDateString;
}
string CTask::getDoneDate()
{
	return m_DoneDate;
}

void CTask::setWebColor(const string& WebColor)
{
	m_WebColor = WebColor;
}
void CTask::setColor(const string& Color)
{
	m_Color = Color;
}

string CTask::getWebColor()
{
	return m_WebColor;
}
string CTask::getColor()
{
	return m_Color;
}

void CTask::setComment(const string& comment)
{
	m_Comment.setComment(comment);
}

string CTask::getComment()
{
	return m_Comment.getComment();
}























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


Written By
Team Leader www.unitronics.com
Israel Israel
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions