calendarui/inc/calenagendautils.h
author hgs
Mon, 28 Jun 2010 15:22:02 +0530
changeset 45 b6db4fd4947b
parent 23 fd30d51f876b
child 55 2c54b51f39c4
child 58 ef813d54df51
permissions -rw-r--r--
201025

/*
* 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 <qglobal.h> // 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:
        
        /**
         * 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 endsAtStartOfDay( AgendaEntry& entry,
                                                        const QDateTime& day );

    };

#endif // CALENAGENDAUTILS_H


// End of File