Click here to Skip to main content
15,892,746 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 153K   3.4K   61  
A simple reminder tool to remind you of your overdue tasks in ToDoList throughout the day
// Task.h: interface for the CTask class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_TASK_H__306BA398_5486_4A71_9CE2_48947A96ED1C__INCLUDED_)
#define AFX_TASK_H__306BA398_5486_4A71_9CE2_48947A96ED1C__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "Comment.h"
//<TASK STARTDATESTRING="10/02/2004" PRIORITY="6" DUEDATESTRING="18/02/2004" TITLE="Task1" PERSON="Alberto" TIMEESTIMATE="10.00000000" FILEREFPATH="C:\My Documents\reg_ma.pdf" ID="1" DUEDATE="38035.69523148" PERCENTDONE="5" STARTDATE="38027.69523148" POS="2">
class CTask  
{
public:
	CTask();
	virtual ~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);

	void setStartDateString(const string& StarDateString);
	void setPriority(const string& Priority);
	void setDueDateString(const string& DueDateString);
	void setTitle(const string& Title);
	void setPerson(const string& Person);
	void setTimeEstimate(const string& TimeEstimate);
	void setFileRefPath(const string& FileRefPath);
	void setID(const string& ID);
	void setDueDate(const string& DueDate);
	void setPercentDone(const string& PercentDone);
	void setStartDate(const string& StartDate);
	void setPOS(const string& POS);
	void setDoneDateString(const string& DoneDateString);
	void setDoneDate(const string& DoneDate);
	void setWebColor(const string& WebColor);
	void setColor(const string& Color);

	void setComment(const string& comment);

	string getStartDateString();
	string getPriority();
	string getDueDateString();
	string getTitle();
	string getPerson();
	string getTimeEstimate();
	string getFileRefPath();
	string getID();
	string getDueDate();
	string getPercentDone();
	string getStartDate();
	string getPOS();
	string getDoneDateString();
	string getDoneDate();
	string getWebColor();
	string getColor();

	string getComment();
	
	void addSubTask(CTask task);
	vector<CTask> getSubTasks();

private:
	vector<CTask> m_SubTasks;

	//  ID="1" DUEDATE="38035.69523148" PERCENTDONE="5" STARTDATE="38027.69523148" POS="2">	
	string m_StartDateString;
	string m_Priority;
	string m_DueDateString;
	string m_Title;
	string m_Person;
	string m_TimeEstimate;
	string m_FileRefPath;
	string m_ID;
	string m_DueDate;
	string m_PercentDone;
	string m_StartDate;
	string m_POS;
	string m_DoneDateString;
	string m_DoneDate;
	string m_WebColor;
	string m_Color;

	CComment m_Comment;

};

#endif // !defined(AFX_TASK_H__306BA398_5486_4A71_9CE2_48947A96ED1C__INCLUDED_)

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