diff -r c198609911f9 -r fd30d51f876b calendarui/inc/calenagendautils.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/calendarui/inc/calenagendautils.h Mon May 03 12:30:32 2010 +0300 @@ -0,0 +1,67 @@ +/* +* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: Static utility functions. + * - date utils to help comparisions and calculations witg + * dates and times. + * +*/ + + +#ifndef CALENAGENDAUTILS_H +#define CALENAGENDAUTILS_H + +// INCLUDES + +#include "agendaentry.h" +#include // Q_DECL_EXPORT macro + +#ifdef CALENDATEUTILS_DLL +#define CALENAGENDAUTIL_EXPORT Q_DECL_EXPORT +#else +#define CALENAGENDAUTIL_EXPORT Q_DECL_IMPORT +#endif + +// FORWARD DECLARATIONS +class CCalInstance; +class CCalEntryView; +class CCalInstanceView; + +// CLASS DECLARATION +NONSHARABLE_CLASS( CALENAGENDAUTIL_EXPORT CalenAgendaUtils ) + { + public: + + /** + * Removes entries ending aDay at midnight. + **/ + static void removeEntriesEndingAtMidnightL( QList& list, + const QDateTime& day ); + + /** + * Checks that if entry ends at starting midnight of the day, + * but has started earlier. + * Such entries are not shown in day that they end, because end time + * is just marking the end of previous day. + * @returns ETrue, if entry ends at starting midnight of day, but starts before that + * EFalse, otherwise + **/ + static bool endsAtStartOfDayL( AgendaEntry& entry, + const QDateTime& day ); + + }; + +#endif // CALENAGENDAUTILS_H + + +// End of File