calendarui/inc/calendateutils.h
changeset 45 b6db4fd4947b
parent 23 fd30d51f876b
equal deleted inserted replaced
23:fd30d51f876b 45:b6db4fd4947b
    60      * @return EFalse : Out of range
    60      * @return EFalse : Out of range
    61      */
    61      */
    62     static bool isValidDay( const QDateTime& time );
    62     static bool isValidDay( const QDateTime& time );
    63 
    63 
    64     /**
    64     /**
    65      * Return ETrue if aTime is NULL
       
    66      * @param aTime time to be compared against NULL time
       
    67      */
       
    68     static bool isNullTime( QDateTime& time );
       
    69 
       
    70     /**
       
    71      * Return Min or Max time if aTime goes out of bounds. 
    65      * Return Min or Max time if aTime goes out of bounds. 
    72      * Valid range is [CalenDateUtils::MinTime(), CalenDateUtils::MaxTime]
    66      * Valid range is [CalenDateUtils::MinTime(), CalenDateUtils::MaxTime]
    73      * @param aTime time to be checked
    67      * @param aTime time to be checked
    74      * @return aTime, if aTime in [CalenDateUtils::MinTime(), CalenDateUtils::MaxTime]
    68      * @return aTime, if aTime in [CalenDateUtils::MinTime(), CalenDateUtils::MaxTime]
    75      *         CalenDateUtils::MinTime(), if aTime < CalenDateUtils::MinTime()
    69      *         CalenDateUtils::MinTime(), if aTime < CalenDateUtils::MinTime()
   123      * Given aDate = DD::MM::YY @ hh:mm:ss, it returns a QDateTime obj DD::MM::YY @ 08:00 am
   117      * Given aDate = DD::MM::YY @ hh:mm:ss, it returns a QDateTime obj DD::MM::YY @ 08:00 am
   124      * @param: aDate, which has the DD::MM::YY
   118      * @param: aDate, which has the DD::MM::YY
   125      */
   119      */
   126     static QDateTime defaultTime( const QDateTime& date );
   120     static QDateTime defaultTime( const QDateTime& date );
   127     
   121     
   128     static QDateTime pastOf(const QDateTime& dateTime, int numOfDays);
       
   129         
       
   130     static QDateTime futureOf(const QDateTime& dateTime, int numOfDays);
   122     static QDateTime futureOf(const QDateTime& dateTime, int numOfDays);
   131     
   123     
   132    
   124    
   133 private:
   125 private:
   134     // Hiding constructor, because this is static utility class.
   126     // Hiding constructor, because this is static utility class.