|
// 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.
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
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.