calendarui/views/dayview/tsrc/unittests/unittest_calendayitem/calendayutils.h
changeset 57 bb2d3e476f29
parent 55 2c54b51f39c4
child 63 a3cb48f6c889
equal deleted inserted replaced
55:2c54b51f39c4 57:bb2d3e476f29
     1 /*
       
     2  * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
       
     3  * All rights reserved.
       
     4  * This component and the accompanying materials are made available
       
     5  * under the terms of "Eclipse Public License v1.0"
       
     6  * which accompanies this distribution, and is available
       
     7  * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8  *
       
     9  * Initial Contributors:
       
    10  * Nokia Corporation - initial contribution.
       
    11  *
       
    12  * Contributors:
       
    13  *
       
    14  * Description:  CalenDayUtils utility class header.
       
    15  *
       
    16  */
       
    17 
       
    18 #ifndef CALENDAYUTILS_H_
       
    19 #define CALENDAYUTILS_H_
       
    20 
       
    21 class CalenDayUtils
       
    22 	{
       
    23 public:
       
    24 	static CalenDayUtils *instance()
       
    25 		{
       
    26 		}
       
    27 	~CalenDayUtils()
       
    28 		{
       
    29 		}
       
    30 
       
    31 	qreal screenWidth()
       
    32 		{
       
    33 		return 0;
       
    34 		}
       
    35 	qreal hourElementWidth()
       
    36 		{
       
    37 		return 0;
       
    38 		}
       
    39 	qreal hourElementHeight()
       
    40 		{
       
    41 		return 0;
       
    42 		}
       
    43 	qreal contentWidth()
       
    44 		{
       
    45 		return 0;
       
    46 		}
       
    47 
       
    48 	Qt::Orientation orientation()
       
    49 		{
       
    50 		return Qt::Vertical;
       
    51 		}
       
    52 
       
    53 	HbMainWindow* mainWindow()
       
    54 		{
       
    55 		return 0;
       
    56 		}
       
    57 
       
    58 	bool isHorizontalSwipe(qreal angle)
       
    59 		{
       
    60 		Q_UNUSED(angle);
       
    61 		return false;
       
    62 		}
       
    63 
       
    64 	void getEventValidStartEndTime( QDateTime& start, QDateTime& end, const AgendaEntry& entry, QDateTime& currentDate )
       
    65         {
       
    66 	    }
       
    67 
       
    68 protected:
       
    69 	CalenDayUtils()
       
    70 		{
       
    71 		}
       
    72 	};
       
    73 
       
    74 #endif /* CALENDAYUTILS_H_ */