DCL 3.7.4
Loading...
Searching...
No Matches
RecentIcon Class Reference

#include <LinkUtility.h>

Public Member Functions

 RecentIcon (TextTemplate *pSource, int nRecentHour)
void assign (TextTemplate *pDest, DateTime dt)

Protected Attributes

TextTemplate__pNew
TextTemplate__pOld
DateTime __dtBase

Detailed Description

Definition at line 123 of file LinkUtility.h.

Constructor & Destructor Documentation

◆ RecentIcon()

RecentIcon::RecentIcon ( TextTemplate * pSource,
int nRecentHour )

Definition at line 385 of file LinkUtility.cpp.

389{
390 time_t tNow = time(NULL);
391 tNow -= nRecentHour * 60 * 60;
392 __dtBase.assign(tNow);
393
394 if (pSource) {
395 __pNew = pSource->atP(L"_NEW");
396 __pOld = pSource->atP(L"_OLD");
397 }
398}
#define NULL
Definition Config.h:312
DateTime __dtBase
TextTemplate * __pOld
TextTemplate * __pNew

Member Function Documentation

◆ assign()

void RecentIcon::assign ( TextTemplate * pDest,
DateTime dt )

Definition at line 400 of file LinkUtility.cpp.

404{
405 if (__dtBase < dt) {
406 if (__pNew)
407 pDest->assign(L"_RECENT", *__pNew);
408 }
409 else {
410 if (__pOld)
411 pDest->assign(L"_RECENT", *__pOld);
412 }
413}

Member Data Documentation

◆ __dtBase

DateTime RecentIcon::__dtBase
protected

Definition at line 128 of file LinkUtility.h.

◆ __pNew

TextTemplate* RecentIcon::__pNew
protected

Definition at line 126 of file LinkUtility.h.

◆ __pOld

TextTemplate* RecentIcon::__pOld
protected

Definition at line 127 of file LinkUtility.h.


The documentation for this class was generated from the following files: